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

java.lang.Object
  extended by org.apache.ws.jaxme.xs.impl.XSObjectImpl
All Implemented Interfaces:
XSObject
Direct Known Subclasses:
XSAppinfoImpl, XSDocumentationImpl, XSEnumerationImpl, XSNotationImpl, XSOpenAttrsImpl

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.
protected  void validateAllIn(XSObject[] objects)
          Utility method used to call validate() on every element within an array.
 
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

validateAllIn

protected final void validateAllIn(XSObject[] objects)
                            throws org.xml.sax.SAXException
Utility method used to call validate() on every element within an array.

Parameters:
objects - Array must not have any null elements.
Throws:
org.xml.sax.SAXException