net.sf.jaxme.xs
Interface XSAttribute

All Superinterfaces:
XSAttributable, XSObject
All Known Subinterfaces:
JAXBAttribute
All Known Implementing Classes:
JAXBAttributeImpl, XSAttributeImpl

public interface XSAttribute
extends XSObject, XSAttributable

Interface of a schema attribute.

Author:
Jochen Wiedmann

Method Summary
 XSAnnotation[] getAnnotations()
          Returns the attributes set of annotations.
 XsQName getName()
          Returns the attributes name.
 XSType getType()
          Returns the attributes type.
 boolean isGlobal()
          Returns whether the attribute is global.
 boolean isOptional()
          Returns whether the attribute is optional.
 void setGlobal(boolean pGlobal)
          Sets whether the attribute is global.
 
Methods inherited from interface net.sf.jaxme.xs.XSObject
getLocator, getParentObject, getXSSchema, isTopLevelObject, validate
 

Method Detail

isGlobal

public boolean isGlobal()

Returns whether the attribute is global.


setGlobal

public void setGlobal(boolean pGlobal)

Sets whether the attribute is global.


getName

public XsQName getName()

Returns the attributes name. Note, that an attribute always has a name, unlike types.


getType

public XSType getType()

Returns the attributes type.


isOptional

public boolean isOptional()

Returns whether the attribute is optional.


getAnnotations

public XSAnnotation[] getAnnotations()

Returns the attributes set of annotations.