org.apache.ws.jaxme.xs.impl
Class XSAttributeImpl

java.lang.Object
  extended by org.apache.ws.jaxme.xs.impl.XSObjectImpl
      extended by org.apache.ws.jaxme.xs.impl.XSOpenAttrsImpl
          extended by org.apache.ws.jaxme.xs.impl.XSAttributeImpl
All Implemented Interfaces:
XSAttributable, XSAttribute, XSObject, XSOpenAttrs
Direct Known Subclasses:
JAXBAttributeImpl

public class XSAttributeImpl
extends XSOpenAttrsImpl
implements XSAttribute

Author:
Jochen Wiedmann

Constructor Summary
protected XSAttributeImpl(XSObject pParent, XsTAttribute pBaseAttribute)
           
 
Method Summary
 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.
 
Methods inherited from class org.apache.ws.jaxme.xs.impl.XSOpenAttrsImpl
getOpenAttributes
 
Methods inherited from class org.apache.ws.jaxme.xs.impl.XSObjectImpl
getLocator, getParentObject, getXsObject, getXSSchema, isTopLevelObject, validateAllIn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ws.jaxme.xs.XSOpenAttrs
getOpenAttributes
 
Methods inherited from interface org.apache.ws.jaxme.xs.XSObject
getLocator, getParentObject, getXSSchema, isTopLevelObject
 

Constructor Detail

XSAttributeImpl

protected XSAttributeImpl(XSObject pParent,
                          XsTAttribute pBaseAttribute)
                   throws org.xml.sax.SAXException
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

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

getDefault

public java.lang.String getDefault()
Description copied from interface: XSAttribute

Returns the attributes "default" value or null, if no such attribute is set.

Specified by:
getDefault in interface XSAttribute

getFixed

public java.lang.String getFixed()
Description copied from interface: XSAttribute

Returns the attributes "fixed" value or null, if no such attribute is set.

Specified by:
getFixed in interface XSAttribute