public class XmlSchemaAttrInfo extends Object
Constructor and Description |
---|
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.
|
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.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.Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.