net.sf.jaxme.xs.xml.impl
Class XsObjectImpl

java.lang.Object
  extended bynet.sf.jaxme.xs.xml.impl.XsObjectImpl
All Implemented Interfaces:
XsObject
Direct Known Subclasses:
JAXBGlobalBindingsImpl, JAXBJavadocImpl, JAXBJavaTypeImpl, JAXBSchemaBindingsImpl.NameXmlTransformationImpl, JAXBSchemaBindingsImpl.NameXmlTransformationImpl.NameTransformationImpl, JAXBXsObjectImpl, 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 static XsQName asXsQName(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 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 types, attributes, elements, ... 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)
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 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 static XsQName asXsQName(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 types, attributes, elements, ... internal state.

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