Additional top-level classes in compilation unit: OneAttr, Container, SmallContainer, LargeContainer.
XSAttributeCheck is used to check the validity of attributes
appearing in the schema document. It
- reports an error for invalid element (invalid namespace, invalid name)
- reports an error for invalid attribute (invalid namespace, invalid name)
- reports an error for invalid attribute value
- return compiled values for attriute values
- provide default value for missing optional attributes
- provide default value for incorrect attribute values
But it's the caller's responsibility to check whether a required attribute
is present.
Things need revisiting:
- Whether to return non-schema attributes/values
- Do we need to update NamespaceScope and ErrorReporter when reset()?
- Should have the datatype validators return compiled value
- use symbol table instead of many hashtables
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private static int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private static final String | |
| private static final String | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| private static final String | |
| private static final String | |
| pack-priv Object[][] | |
| private static final Hashtable | |
| private static final Hashtable | |
| private static final XSSimpleType[] | |
| protected Vector | |
| protected Hashtable | |
| pack-priv int | |
| protected XSDHandler | |
| protected boolean[] | |
| private static boolean[] | |
| protected SymbolTable | |
| private static Object[] | |
| private static final XIntPool | |
| pack-priv static final int | |
| pack-priv static final int | |
| private static final XInt | |
| private static final XInt | |
| private static final XInt | |
| private static final XInt | |
| private static final XInt | |
| private static final XInt | |
| private static final XInt | |
| private static final XInt | |
| private static final XInt | |
| private static final XInt | |
| private static final XInt | |
| private static final XInt | |
| private static final XInt | |
| private static final XInt | |
| private static final XInt | |
| private static final XInt |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object[] | Returns: an array containing attribute valueswhich element to check element, boolean whether a child of <schema> or <redefine> isGlobal, XSDocumentInfo the document where the element lives in schemaDoc)Check whether the specified element conforms to the attributes restriction an array of attribute values is returned. |
| public Object[] | Returns: an array containing attribute valueswhich element to check element, boolean whether a child of <schema> or <redefine> isGlobal, XSDocumentInfo the document where the element lives in schemaDoc, boolean whether to tread enumeration value as QName enumAsQName)Check whether the specified element conforms to the attributes restriction an array of attribute values is returned. |
| public void | |
| protected Object[] | |
| public static String | |
| pack-priv void | |
| public void | |
| public void | |
| public void | |
| private Object |
| ATTIDX_ABSTRACT | back to summary |
|---|---|
| public static final int ATTIDX_ABSTRACT | |
| ATTIDX_AFORMDEFAULT | back to summary |
|---|---|
| public static final int ATTIDX_AFORMDEFAULT | |
| ATTIDX_BASE | back to summary |
|---|---|
| public static final int ATTIDX_BASE | |
| ATTIDX_BLOCK | back to summary |
|---|---|
| public static final int ATTIDX_BLOCK | |
| ATTIDX_BLOCKDEFAULT | back to summary |
|---|---|
| public static final int ATTIDX_BLOCKDEFAULT | |
| ATTIDX_COUNT | back to summary |
|---|---|
| private static int ATTIDX_COUNT | |
| ATTIDX_DEFAULT | back to summary |
|---|---|
| public static final int ATTIDX_DEFAULT | |
| ATTIDX_EFORMDEFAULT | back to summary |
|---|---|
| public static final int ATTIDX_EFORMDEFAULT | |
| ATTIDX_ENUMNSDECLS | back to summary |
|---|---|
| public static final int ATTIDX_ENUMNSDECLS | |
| ATTIDX_FINAL | back to summary |
|---|---|
| public static final int ATTIDX_FINAL | |
| ATTIDX_FINALDEFAULT | back to summary |
|---|---|
| public static final int ATTIDX_FINALDEFAULT | |
| ATTIDX_FIXED | back to summary |
|---|---|
| public static final int ATTIDX_FIXED | |
| ATTIDX_FORM | back to summary |
|---|---|
| public static final int ATTIDX_FORM | |
| ATTIDX_FROMDEFAULT | back to summary |
|---|---|
| public static final int ATTIDX_FROMDEFAULT | |
| ATTIDX_ID | back to summary |
|---|---|
| public static final int ATTIDX_ID | |
| ATTIDX_ISRETURNED | back to summary |
|---|---|
| public static final int ATTIDX_ISRETURNED | |
| ATTIDX_ITEMTYPE | back to summary |
|---|---|
| public static final int ATTIDX_ITEMTYPE | |
| ATTIDX_MAXOCCURS | back to summary |
|---|---|
| public static final int ATTIDX_MAXOCCURS | |
| ATTIDX_MEMBERTYPES | back to summary |
|---|---|
| public static final int ATTIDX_MEMBERTYPES | |
| ATTIDX_MINOCCURS | back to summary |
|---|---|
| public static final int ATTIDX_MINOCCURS | |
| ATTIDX_MIXED | back to summary |
|---|---|
| public static final int ATTIDX_MIXED | |
| ATTIDX_NAME | back to summary |
|---|---|
| public static final int ATTIDX_NAME | |
| ATTIDX_NAMESPACE | back to summary |
|---|---|
| public static final int ATTIDX_NAMESPACE | |
| ATTIDX_NAMESPACE_LIST | back to summary |
|---|---|
| public static final int ATTIDX_NAMESPACE_LIST | |
| ATTIDX_NILLABLE | back to summary |
|---|---|
| public static final int ATTIDX_NILLABLE | |
| ATTIDX_NONSCHEMA | back to summary |
|---|---|
| public static final int ATTIDX_NONSCHEMA | |
| ATTIDX_PROCESSCONTENTS | back to summary |
|---|---|
| public static final int ATTIDX_PROCESSCONTENTS | |
| ATTIDX_PUBLIC | back to summary |
|---|---|
| public static final int ATTIDX_PUBLIC | |
| ATTIDX_REF | back to summary |
|---|---|
| public static final int ATTIDX_REF | |
| ATTIDX_REFER | back to summary |
|---|---|
| public static final int ATTIDX_REFER | |
| ATTIDX_SCHEMALOCATION | back to summary |
|---|---|
| public static final int ATTIDX_SCHEMALOCATION | |
| ATTIDX_SOURCE | back to summary |
|---|---|
| public static final int ATTIDX_SOURCE | |
| ATTIDX_SUBSGROUP | back to summary |
|---|---|
| public static final int ATTIDX_SUBSGROUP | |
| ATTIDX_SYSTEM | back to summary |
|---|---|
| public static final int ATTIDX_SYSTEM | |
| ATTIDX_TARGETNAMESPACE | back to summary |
|---|---|
| public static final int ATTIDX_TARGETNAMESPACE | |
| ATTIDX_TYPE | back to summary |
|---|---|
| public static final int ATTIDX_TYPE | |
| ATTIDX_USE | back to summary |
|---|---|
| public static final int ATTIDX_USE | |
| ATTIDX_VALUE | back to summary |
|---|---|
| public static final int ATTIDX_VALUE | |
| ATTIDX_VERSION | back to summary |
|---|---|
| public static final int ATTIDX_VERSION | |
| ATTIDX_XML_LANG | back to summary |
|---|---|
| public static final int ATTIDX_XML_LANG | |
| ATTIDX_XPATH | back to summary |
|---|---|
| public static final int ATTIDX_XPATH | |
| ATTRIBUTE_N | back to summary |
|---|---|
| private static final String ATTRIBUTE_N | |
| ATTRIBUTE_R | back to summary |
|---|---|
| private static final String ATTRIBUTE_R | |
| DT_ANYURI | back to summary |
|---|---|
| protected static final int DT_ANYURI | |
| DT_BLOCK | back to summary |
|---|---|
| protected static final int DT_BLOCK | |
| DT_BLOCK1 | back to summary |
|---|---|
| protected static final int DT_BLOCK1 | |
| DT_BOOLEAN | back to summary |
|---|---|
| protected static final int DT_BOOLEAN | |
| DT_COUNT | back to summary |
|---|---|
| protected static final int DT_COUNT | |
| DT_FINAL | back to summary |
|---|---|
| protected static final int DT_FINAL | |
| DT_FINAL1 | back to summary |
|---|---|
| protected static final int DT_FINAL1 | |
| DT_FINAL2 | back to summary |
|---|---|
| protected static final int DT_FINAL2 | |
| DT_FORM | back to summary |
|---|---|
| protected static final int DT_FORM | |
| DT_ID | back to summary |
|---|---|
| protected static final int DT_ID | |
| DT_LANGUAGE | back to summary |
|---|---|
| protected static final int DT_LANGUAGE | |
| DT_MAXOCCURS | back to summary |
|---|---|
| protected static final int DT_MAXOCCURS | |
| DT_MAXOCCURS1 | back to summary |
|---|---|
| protected static final int DT_MAXOCCURS1 | |
| DT_MEMBERTYPES | back to summary |
|---|---|
| protected static final int DT_MEMBERTYPES | |
| DT_MINOCCURS1 | back to summary |
|---|---|
| protected static final int DT_MINOCCURS1 | |
| DT_NAMESPACE | back to summary |
|---|---|
| protected static final int DT_NAMESPACE | |
| DT_NCNAME | back to summary |
|---|---|
| protected static final int DT_NCNAME | |
| DT_NONNEGINT | back to summary |
|---|---|
| protected static final int DT_NONNEGINT | |
| DT_POSINT | back to summary |
|---|---|
| protected static final int DT_POSINT | |
| DT_PROCESSCONTENTS | back to summary |
|---|---|
| protected static final int DT_PROCESSCONTENTS | |
| DT_QNAME | back to summary |
|---|---|
| protected static final int DT_QNAME | |
| DT_STRING | back to summary |
|---|---|
| protected static final int DT_STRING | |
| DT_TOKEN | back to summary |
|---|---|
| protected static final int DT_TOKEN | |
| DT_USE | back to summary |
|---|---|
| protected static final int DT_USE | |
| DT_WHITESPACE | back to summary |
|---|---|
| protected static final int DT_WHITESPACE | |
| DT_XPATH | back to summary |
|---|---|
| protected static final int DT_XPATH | |
| DT_XPATH1 | back to summary |
|---|---|
| protected static final int DT_XPATH1 | |
| ELEMENT_N | back to summary |
|---|---|
| private static final String ELEMENT_N | |
| ELEMENT_R | back to summary |
|---|---|
| private static final String ELEMENT_R | |
| fArrayPool | back to summary |
|---|---|
| pack-priv Object[][] fArrayPool | |
| fEleAttrsMapG | back to summary |
|---|---|
| private static final Hashtable<K, V> fEleAttrsMapG | |
| fEleAttrsMapL | back to summary |
|---|---|
| private static final Hashtable<K, V> fEleAttrsMapL | |
| fExtraDVs | back to summary |
|---|---|
| private static final XSSimpleType[] fExtraDVs | |
| fNamespaceList | back to summary |
|---|---|
| protected Vector<E> fNamespaceList | |
| fNonSchemaAttrs | back to summary |
|---|---|
| protected Hashtable<K, V> fNonSchemaAttrs | |
| fPoolPos | back to summary |
|---|---|
| pack-priv int fPoolPos | |
| fSchemaHandler | back to summary |
|---|---|
| protected XSDHandler fSchemaHandler | |
| fSeen | back to summary |
|---|---|
| protected boolean[] fSeen | |
| fSeenTemp | back to summary |
|---|---|
| private static boolean[] fSeenTemp | |
| fSymbolTable | back to summary |
|---|---|
| protected SymbolTable fSymbolTable | |
| fTempArray | back to summary |
|---|---|
| private static Object[] fTempArray | |
| fXIntPool | back to summary |
|---|---|
| private static final XIntPool fXIntPool | |
| INC_POOL_SIZE | back to summary |
|---|---|
| pack-priv static final int INC_POOL_SIZE | |
| INIT_POOL_SIZE | back to summary |
|---|---|
| pack-priv static final int INIT_POOL_SIZE | |
| INT_ANY_ANY | back to summary |
|---|---|
| private static final XInt INT_ANY_ANY | |
| INT_ANY_LAX | back to summary |
|---|---|
| private static final XInt INT_ANY_LAX | |
| INT_ANY_LIST | back to summary |
|---|---|
| private static final XInt INT_ANY_LIST | |
| INT_ANY_NOT | back to summary |
|---|---|
| private static final XInt INT_ANY_NOT | |
| INT_ANY_SKIP | back to summary |
|---|---|
| private static final XInt INT_ANY_SKIP | |
| INT_ANY_STRICT | back to summary |
|---|---|
| private static final XInt INT_ANY_STRICT | |
| INT_EMPTY_SET | back to summary |
|---|---|
| private static final XInt INT_EMPTY_SET | |
| INT_QUALIFIED | back to summary |
|---|---|
| private static final XInt INT_QUALIFIED | |
| INT_UNBOUNDED | back to summary |
|---|---|
| private static final XInt INT_UNBOUNDED | |
| INT_UNQUALIFIED | back to summary |
|---|---|
| private static final XInt INT_UNQUALIFIED | |
| INT_USE_OPTIONAL | back to summary |
|---|---|
| private static final XInt INT_USE_OPTIONAL | |
| INT_USE_PROHIBITED | back to summary |
|---|---|
| private static final XInt INT_USE_PROHIBITED | |
| INT_USE_REQUIRED | back to summary |
|---|---|
| private static final XInt INT_USE_REQUIRED | |
| INT_WS_COLLAPSE | back to summary |
|---|---|
| private static final XInt INT_WS_COLLAPSE | |
| INT_WS_PRESERVE | back to summary |
|---|---|
| private static final XInt INT_WS_PRESERVE | |
| INT_WS_REPLACE | back to summary |
|---|---|
| private static final XInt INT_WS_REPLACE | |
| XSAttributeChecker | back to summary |
|---|---|
| public XSAttributeChecker(XSDHandler schemaHandler) | |
| checkAttributes | back to summary |
|---|---|
| public Object[] checkAttributes(Element element, boolean isGlobal, XSDocumentInfo schemaDoc) Check whether the specified element conforms to the attributes restriction
an array of attribute values is returned. the caller must call
| |
| checkAttributes | back to summary |
|---|---|
| public Object[] checkAttributes(Element element, boolean isGlobal, XSDocumentInfo schemaDoc, boolean enumAsQName) Check whether the specified element conforms to the attributes restriction
an array of attribute values is returned. the caller must call
| |
| checkNonSchemaAttributes | back to summary |
|---|---|
| public void checkNonSchemaAttributes(XSGrammarBucket grammarBucket) | |
| getAvailableArray | back to summary |
|---|---|
| protected Object[] getAvailableArray() | |
| normalize | back to summary |
|---|---|
| public static String normalize(String content, short ws) | |
| reportSchemaError | back to summary |
|---|---|
| pack-priv void reportSchemaError(String key, Object[] args, Element ele) | |
| reset | back to summary |
|---|---|
| public void reset(SymbolTable symbolTable) | |
| resolveNamespace | back to summary |
|---|---|
| public void resolveNamespace(Element element, Attr[] attrs, SchemaNamespaceSupport nsSupport) | |
| returnAttrArray | back to summary |
|---|---|
| public void returnAttrArray(Object[] attrArray, XSDocumentInfo schemaDoc) | |
| validate | back to summary |
|---|---|
| private Object validate(Object[] attrValues, String attr, String ivalue, int dvIndex, XSDocumentInfo schemaDoc) throws InvalidDatatypeValueException | |