net.sf.jaxme.xs.impl
Class XSElementImpl

java.lang.Object
  extended bynet.sf.jaxme.xs.impl.XSObjectImpl
      extended bynet.sf.jaxme.xs.impl.XSElementImpl
All Implemented Interfaces:
XSElement, XSObject
Direct Known Subclasses:
JAXBElementImpl

public class XSElementImpl
extends XSObjectImpl
implements XSElement

Author:
Jochen Wiedmann

Constructor Summary
protected XSElementImpl(XSObject pParent, XsTElement pBaseElement)
           
 
Method Summary
 XSAnnotation[] getAnnotations()
          Returns the array of annotations.
 XsQName getName()
          Returns the elements name.
 XSType getType()
          Returns the elements type.
protected  XsTElement getXsTElement()
           
 boolean isGlobal()
          Returns whether the element is global or not.
protected  boolean isInnerComplexType()
           
protected  boolean isInnerSimpleType()
           
protected  boolean isReference()
           
protected  boolean isValidated()
           
 void setGlobal(boolean pGlobal)
          Sets whether the element is global or not.
 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

XSElementImpl

protected XSElementImpl(XSObject pParent,
                        XsTElement pBaseElement)
                 throws org.xml.sax.SAXException
Method Detail

getXsTElement

protected XsTElement getXsTElement()

isReference

protected boolean isReference()

isInnerSimpleType

protected boolean isInnerSimpleType()

isInnerComplexType

protected boolean isInnerComplexType()

isGlobal

public boolean isGlobal()
Description copied from interface: XSElement

Returns whether the element is global or not.

Specified by:
isGlobal in interface XSElement

setGlobal

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

Sets whether the element is global or not.

Specified by:
setGlobal in interface XSElement

getName

public XsQName getName()
Description copied from interface: XSElement

Returns the elements name. Note that, unlike types, an element always has a name.

Specified by:
getName in interface XSElement

getType

public XSType getType()
Description copied from interface: XSElement

Returns the elements type.

Specified by:
getType in interface XSElement

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

getAnnotations

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

Returns the array of annotations.

Specified by:
getAnnotations in interface XSElement