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

Class XsObjectImpl

Implemented Interfaces:
XsObject
Known Direct 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

XsObjectImpl(XsObject pParent)

Method Summary

protected XsQName
asXsQName(String pName)
protected static XsQName
asXsQName(XsESchema pSchema, Locator pLocator, NamespaceSupport pNss, String pName)
XSContext
getContext()
Locator
getLocator()
Returns the SAX Locator with the instances location.
protected 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.

Constructor Details

XsObjectImpl

protected XsObjectImpl(XsObject pParent)

Method Details

asXsQName

protected XsQName asXsQName(String pName)
            throws SAXException

asXsQName

protected static XsQName asXsQName(XsESchema pSchema,
                                   Locator pLocator,
                                   NamespaceSupport pNss,
                                   String pName)
            throws SAXException

getContext

public XSContext getContext()

getLocator

public Locator getLocator()
Returns the SAX Locator with the instances location.
Specified by:
getLocator in interface XsObject

getNamespaceSupport

protected NamespaceSupport getNamespaceSupport()

getObjectFactory

public XsObjectFactory getObjectFactory()
Returns the object factory, that created this instance.
Specified by:
getObjectFactory in interface XsObject

getParentObject

public XsObject getParentObject()
Returns information on the parent object.
More precisely, returns either of the following:
  • If the object is the schema itself, returns null. The schema doesn't have a parent object.
  • If the object is a top-level object, returns the schema.
  • Otherwise returns the object in which the given object is embedded.
Specified by:
getParentObject in interface XsObject

getXsESchema

public XsESchema getXsESchema()
Returns the objects syntactical schema.
Specified by:
getXsESchema in interface XsObject

isTopLevelObject

public boolean isTopLevelObject()
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

isValidated

protected final boolean isValidated()

validate

public void validate()
            throws SAXException
Validates the internal state of the type, attribute, element, or whatever object.
Specified by:
validate in interface XsObject