public class XSAttributeImpl extends XSOpenAttrsImpl implements XSAttribute
Modifier | Constructor and Description |
---|---|
protected |
XSAttributeImpl(XSObject pParent,
XsTAttribute pBaseAttribute) |
Modifier and Type | Method and Description |
---|---|
XSAnnotation[] |
getAnnotations()
Returns the attributes set of annotations.
|
java.lang.String |
getDefault()
Returns the attributes "default" value or null, if no such
attribute is set.
|
java.lang.String |
getFixed()
Returns the attributes "fixed" value or null, if no such
attribute is set.
|
XsQName |
getName()
Returns the attributes name.
|
XSType |
getType()
Returns the attributes type.
|
protected XsTAttribute |
getXsTAttribute() |
boolean |
isGlobal()
Returns whether the attribute is global.
|
protected boolean |
isInnerSimpleType() |
boolean |
isOptional()
Returns whether the attribute is optional.
|
protected boolean |
isReference() |
protected boolean |
isValidated() |
void |
validate()
Validates the objects internal state.
|
getOpenAttributes
getLocator, getParentObject, getXsObject, getXSSchema, isTopLevelObject, validateAllIn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOpenAttributes
getLocator, getParentObject, getXSSchema, isTopLevelObject
protected XSAttributeImpl(XSObject pParent, XsTAttribute pBaseAttribute) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected XsTAttribute getXsTAttribute()
protected boolean isReference()
protected boolean isInnerSimpleType()
public boolean isGlobal()
XSAttribute
Returns whether the attribute is global.
isGlobal
in interface XSAttribute
public XsQName getName()
XSAttribute
Returns the attributes name. Note, that an attribute always has a name, unlike types.
getName
in interface XSAttribute
public XSType getType()
XSAttribute
Returns the attributes type.
getType
in interface XSAttribute
public XSAnnotation[] getAnnotations()
XSAttribute
Returns the attributes set of annotations.
getAnnotations
in interface XSAttribute
protected boolean isValidated()
public void validate() throws org.xml.sax.SAXException
XSObject
Validates the objects internal state.
validate
in interface XSObject
validate
in class XSObjectImpl
org.xml.sax.SAXException
public boolean isOptional()
XSAttribute
Returns whether the attribute is optional.
isOptional
in interface XSAttribute
public java.lang.String getDefault()
XSAttribute
Returns the attributes "default" value or null, if no such attribute is set.
getDefault
in interface XSAttribute
public java.lang.String getFixed()
XSAttribute
Returns the attributes "fixed" value or null, if no such attribute is set.
getFixed
in interface XSAttribute