public class XmlSchemaAttrInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private XmlSchemaAttribute |
attribute |
private XmlSchemaTypeInfo |
attrType |
private boolean |
isTopLevel |
| Constructor and Description |
|---|
XmlSchemaAttrInfo(XmlSchemaAttribute attribute) |
XmlSchemaAttrInfo(XmlSchemaAttribute attribute,
boolean isTopLevel) |
XmlSchemaAttrInfo(XmlSchemaAttribute attribute,
XmlSchemaTypeInfo attrType)
|
| Modifier and Type | Method and Description |
|---|---|
XmlSchemaAttribute |
getAttribute()
The underlying
XmlSchemaAttribute. |
XmlSchemaTypeInfo |
getType()
The attribute's value type.
|
boolean |
isTopLevel()
Whether the attribute exists in the global namespace.
|
(package private) void |
setType(XmlSchemaTypeInfo attrType) |
private final XmlSchemaAttribute attribute
private final boolean isTopLevel
private XmlSchemaTypeInfo attrType
public XmlSchemaAttrInfo(XmlSchemaAttribute attribute, XmlSchemaTypeInfo attrType)
XmlSchemaAttrInfo from the provided
XmlSchemaAttribute and XmlSchemaTypeInfo.
The XmlSchemaAttribute represents the XML attribute
definition after any references have been resolved, and merged with the
global definition.
attribute - The underlying XmlSchemaAttribute.attrType - The attribute's type.XmlSchemaAttrInfo(XmlSchemaAttribute attribute, boolean isTopLevel)
XmlSchemaAttrInfo(XmlSchemaAttribute attribute)
public XmlSchemaAttribute getAttribute()
XmlSchemaAttribute. 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 the XmlSchemaAttribute may 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. Use isTopLevel() instead.
public XmlSchemaTypeInfo getType()
public boolean isTopLevel()
XmlSchemaAttribute may have been made in order to merge a local
reference with the global definition,
XmlSchemaAttribute.isTopLevel() may no longer be accurate.void setType(XmlSchemaTypeInfo attrType)