public abstract class XSObjectImpl extends java.lang.Object implements XSObject
| Modifier | Constructor and Description |
|---|---|
protected |
XSObjectImpl(XSObject pParent,
XsObject pBaseObject) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public XSObject getParentObject()
XSObjectReturns either of the following:
getParentObject in interface XSObjectpublic XSSchema getXSSchema()
XSObjectReturns the objects schema.
getXSSchema in interface XSObjectpublic boolean isTopLevelObject()
XSObjectReturns whether the object is a top-level object. This is the case for the XsESchema itself and for all its childs only.
isTopLevelObject in interface XSObjectpublic org.xml.sax.Locator getLocator()
XSObjectReturns the objects location.
getLocator in interface XSObjectprotected XsObject getXsObject()
public void validate()
throws org.xml.sax.SAXException
XSObjectValidates the objects internal state.
protected final void validateAllIn(XSObject[] objects) throws org.xml.sax.SAXException
objects - Array must not have any null elements.org.xml.sax.SAXException