Class XmlSchemaAttrInfo
java.lang.Object
org.apache.ws.commons.schema.walker.XmlSchemaAttrInfo
This represents a complete XML Schema Attribute, after references are
followed and types are defined.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final XmlSchemaAttributeprivate XmlSchemaTypeInfoprivate final boolean -
Constructor Summary
ConstructorsConstructorDescriptionXmlSchemaAttrInfo(XmlSchemaAttribute attribute) XmlSchemaAttrInfo(XmlSchemaAttribute attribute, boolean isTopLevel) XmlSchemaAttrInfo(XmlSchemaAttribute attribute, XmlSchemaTypeInfo attrType) -
Method Summary
Modifier and TypeMethodDescriptionThe underlyingXmlSchemaAttribute.getType()The attribute's value type.booleanWhether the attribute exists in the global namespace.(package private) voidsetType(XmlSchemaTypeInfo attrType)
-
Field Details
-
attribute
-
isTopLevel
private final boolean isTopLevel -
attrType
-
-
Constructor Details
-
XmlSchemaAttrInfo
Constructs a newXmlSchemaAttrInfofrom the providedXmlSchemaAttributeandXmlSchemaTypeInfo.The
XmlSchemaAttributerepresents the XML attribute definition after any references have been resolved, and merged with the global definition.- Parameters:
attribute- The underlyingXmlSchemaAttribute.attrType- The attribute's type.
-
XmlSchemaAttrInfo
XmlSchemaAttrInfo(XmlSchemaAttribute attribute, boolean isTopLevel) -
XmlSchemaAttrInfo
XmlSchemaAttrInfo(XmlSchemaAttribute attribute)
-
-
Method Details
-
getAttribute
The underlyingXmlSchemaAttribute. If the attribute was originally a reference, this instance is merged with the global attribute it referenced.The only exception is with
XmlSchemaAttribute.isTopLevel(). A copy of theXmlSchemaAttributemay have been made in order to properly merge a local reference with a global definition. When that happens,XmlSchemaAttribute.isTopLevel()may not return the correct result. UseisTopLevel()instead. -
getType
The attribute's value type. -
isTopLevel
public boolean isTopLevel()Whether the attribute exists in the global namespace. Because a copy ofXmlSchemaAttributemay have been made in order to merge a local reference with the global definition,XmlSchemaAttribute.isTopLevel()may no longer be accurate. -
setType
-