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()
XSObject
Returns either of the following:
getParentObject
in interface XSObject
public XSSchema getXSSchema()
XSObject
Returns the objects schema.
getXSSchema
in interface XSObject
public boolean isTopLevelObject()
XSObject
Returns 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 XSObject
public org.xml.sax.Locator getLocator()
XSObject
Returns the objects location.
getLocator
in interface XSObject
protected XsObject getXsObject()
public void validate() throws org.xml.sax.SAXException
XSObject
Validates 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