Home » xmlbeans-2.5.0-src » org.apache » xmlbeans » [javadoc | source]

    1   /*   Copyright 2004 The Apache Software Foundation
    2    *
    3    *   Licensed under the Apache License, Version 2.0 (the "License");
    4    *   you may not use this file except in compliance with the License.
    5    *   You may obtain a copy of the License at
    6    *
    7    *       http://www.apache.org/licenses/LICENSE-2.0
    8    *
    9    *   Unless required by applicable law or agreed to in writing, software
   10    *   distributed under the License is distributed on an "AS IS" BASIS,
   11    *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   12    *   See the License for the specific language governing permissions and
   13    *  limitations under the License.
   14    */
   15   
   16   package org.apache.xmlbeans;
   17   
   18   import javax.xml.namespace.QName;
   19   
   20   /**
   21    * Represents the attribute structure allowed on a complex type.
   22    * 
   23    * @see SchemaType#getAttributeModel
   24    */ 
   25   public interface SchemaAttributeModel
   26   {
   27       /**
   28        * Returns an array containing all the attributes in the model.
   29        */
   30       SchemaLocalAttribute[] getAttributes();
   31   
   32       /**
   33        * Returns the attribute with the given name.
   34        */
   35       SchemaLocalAttribute getAttribute(QName name);
   36   
   37       /**
   38        * QNameSet representing the attribute wildcard specification.
   39        */
   40       QNameSet getWildcardSet();
   41   
   42       /**
   43        * Returns the processing code ({@link #STRICT}, {@link #LAX}, {@link #SKIP}).
   44        * Returns 0 ({@link #NONE}) if no wildcard specified.
   45        */
   46       int getWildcardProcess();
   47   
   48       /** See {@link #getWildcardProcess} */
   49       static final int NONE = 0;
   50       /** Strict wildcard processing. See {@link #getWildcardProcess} */
   51       static final int STRICT = 1;
   52       /** Lax wildcard processing. See {@link #getWildcardProcess} */
   53       static final int LAX = 2;
   54       /** Skip wildcard processing. See {@link #getWildcardProcess} */
   55       static final int SKIP = 3;
   56   }

Home » xmlbeans-2.5.0-src » org.apache » xmlbeans » [javadoc | source]