net.sf.jaxme.xs.impl
Class XSAttributeImpl

java.lang.Object
  extended bynet.sf.jaxme.xs.impl.XSObjectImpl
      extended bynet.sf.jaxme.xs.impl.XSAttributeImpl
All Implemented Interfaces:
XSAttributable, XSAttribute, XSObject
Direct Known Subclasses:
JAXBAttributeImpl

public class XSAttributeImpl
extends XSObjectImpl
implements XSAttribute

Author:
Jochen Wiedmann

Constructor Summary
protected XSAttributeImpl(XSObject pParent, XsTAttribute pBaseAttribute)
           
 
Method Summary
 XSAnnotation[] getAnnotations()
          Returns the attributes set of annotations.
 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 setGlobal(boolean pGlobal)
          Sets whether the attribute is global.
 void validate()
          Validates the objects internal state.
 
Methods inherited from class net.sf.jaxme.xs.impl.XSObjectImpl
getLocator, getParentObject, getXsObject, getXSSchema, isTopLevelObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jaxme.xs.XSObject
getLocator, getParentObject, getXSSchema, isTopLevelObject
 

Constructor Detail

XSAttributeImpl

protected XSAttributeImpl(XSObject pParent,
                          XsTAttribute pBaseAttribute)
                   throws org.xml.sax.SAXException
Method Detail

getXsTAttribute

protected XsTAttribute getXsTAttribute()

isReference

protected boolean isReference()

isInnerSimpleType

protected boolean isInnerSimpleType()

isGlobal

public boolean isGlobal()
Description copied from interface: XSAttribute

Returns whether the attribute is global.

Specified by:
isGlobal in interface XSAttribute

setGlobal

public void setGlobal(boolean pGlobal)
Description copied from interface: XSAttribute

Sets whether the attribute is global.

Specified by:
setGlobal in interface XSAttribute

getName

public XsQName getName()
Description copied from interface: XSAttribute

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

Specified by:
getName in interface XSAttribute

getType

public XSType getType()
Description copied from interface: XSAttribute

Returns the attributes type.

Specified by:
getType in interface XSAttribute

getAnnotations

public XSAnnotation[] getAnnotations()
Description copied from interface: XSAttribute

Returns the attributes set of annotations.

Specified by:
getAnnotations in interface XSAttribute

isValidated

protected boolean isValidated()

validate

public void validate()
              throws org.xml.sax.SAXException
Description copied from interface: XSObject

Validates the objects internal state.

Specified by:
validate in interface XSObject
Overrides:
validate in class XSObjectImpl
Throws:
org.xml.sax.SAXException

isOptional

public boolean isOptional()
Description copied from interface: XSAttribute

Returns whether the attribute is optional.

Specified by:
isOptional in interface XSAttribute