net.sf.jaxme.xs.impl
Class XSObjectImpl

java.lang.Object
  extended bynet.sf.jaxme.xs.impl.XSObjectImpl
All Implemented Interfaces:
XSObject
Direct Known Subclasses:
XSAnnotationImpl, XSAnyImpl, XSAppinfoImpl, XSAttributeGroupImpl, XSAttributeImpl, XSDocumentationImpl, XSElementImpl, XSEnumerationImpl, XSGroupImpl, XSNotationImpl, XSTypeImpl, XSWildcardImpl

public abstract class XSObjectImpl
extends java.lang.Object
implements XSObject

Author:
Jochen Wiedmann

Constructor Summary
protected XSObjectImpl(XSObject pParent, XsObject pBaseObject)
           
 
Method Summary
 org.xml.sax.Locator getLocator()
          Returns the objects location.
 XSObject getParentObject()
          Returns either of the following: If the object is the schema itself, returns null.
protected  XsObject getXsObject()
           
 XSSchema getXSSchema()
          Returns the objects schema.
 boolean isTopLevelObject()
          Returns whether the object is a top-level object.
 void validate()
          Validates the objects internal state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSObjectImpl

protected XSObjectImpl(XSObject pParent,
                       XsObject pBaseObject)
Method Detail

getParentObject

public XSObject getParentObject()
Description copied from interface: XSObject

Returns either of the following:

Specified by:
getParentObject in interface XSObject

getXSSchema

public XSSchema getXSSchema()
Description copied from interface: XSObject

Returns the objects schema.

Specified by:
getXSSchema in interface XSObject

isTopLevelObject

public boolean isTopLevelObject()
Description copied from interface: XSObject

Returns whether the object is a top-level object. This is the case for the XsESchema itself and for all its childs only.

Specified by:
isTopLevelObject in interface XSObject

getLocator

public org.xml.sax.Locator getLocator()
Description copied from interface: XSObject

Returns the objects location.

Specified by:
getLocator in interface XSObject

getXsObject

protected XsObject getXsObject()

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
Throws:
org.xml.sax.SAXException