org.apache.ws.jaxme.xs.xml.impl
Class XsObjectImpl

java.lang.Object
  extended by org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl
All Implemented Interfaces:
XsObject
Direct Known Subclasses:
ConnectionDetails, JAXBGlobalBindingsImpl, JAXBJavadocImpl, JAXBJavaTypeImpl, JAXBSchemaBindingsImpl.NameXmlTransformImpl, JAXBSchemaBindingsImpl.NameXmlTransformImpl.NameTransformationImpl, JAXBXsObjectImpl, TaminoAPI4JSG.InoDetails, XjcSerializable, XsEAppinfoImpl, XsEDocumentationImpl, XsTOpenAttrsImpl

public class XsObjectImpl
extends java.lang.Object
implements XsObject

Base class for all the types, attributes, elements, ...

Author:
Jochen Wiedmann

Constructor Summary
protected XsObjectImpl(XsObject pParent)
           
 
Method Summary
protected  XsQName asXsQName(java.lang.String pName)
           
protected static XsQName asXsQName(XsESchema pSchema, org.xml.sax.Locator pLocator, org.xml.sax.helpers.NamespaceSupport pNss, java.lang.String pName)
           
 XSContext getContext()
           
 org.xml.sax.Locator getLocator()
          Returns the SAX Locator with the instances location.
protected  org.xml.sax.helpers.NamespaceSupport getNamespaceSupport()
           
 XsObjectFactory getObjectFactory()
          Returns the object factory, that created this instance.
 XsObject getParentObject()
          Returns information on the parent object.
More precisely, returns either of the following: If the object is the schema itself, returns null.
 XsESchema getXsESchema()
          Returns the objects syntactical schema.
 boolean isTopLevelObject()
          Returns whether the object is a top-level object.
protected  boolean isValidated()
           
 void validate()
          Validates the internal state of the type, attribute, element, or whatever object.
 
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)
Method Detail

getXsESchema

public XsESchema getXsESchema()
Description copied from interface: XsObject
Returns the objects syntactical schema.

Specified by:
getXsESchema 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

getParentObject

public XsObject getParentObject()
Description copied from interface: XsObject
Returns information on the parent object.
More precisely, returns either of the following:

Specified by:
getParentObject in interface XsObject

getObjectFactory

public XsObjectFactory getObjectFactory()
Description copied from interface: XsObject
Returns the object factory, that created this instance.

Specified by:
getObjectFactory in interface XsObject

getLocator

public org.xml.sax.Locator getLocator()
Description copied from interface: XsObject
Returns the SAX Locator with the instances location.

Specified by:
getLocator in interface XsObject

getNamespaceSupport

protected org.xml.sax.helpers.NamespaceSupport getNamespaceSupport()

asXsQName

protected XsQName asXsQName(java.lang.String pName)
                     throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

asXsQName

protected static XsQName asXsQName(XsESchema pSchema,
                                   org.xml.sax.Locator pLocator,
                                   org.xml.sax.helpers.NamespaceSupport pNss,
                                   java.lang.String pName)
                            throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getContext

public XSContext getContext()

isValidated

protected final boolean isValidated()

validate

public void validate()
              throws org.xml.sax.SAXException
Description copied from interface: XsObject
Validates the internal state of the type, attribute, element, or whatever object.

Specified by:
validate in interface XsObject
Throws:
org.xml.sax.SAXException