org.apache.ws.jaxme.xs

Interface XSObject

Known Subinterfaces:
JAXBAny, JAXBAttribute, JAXBElement, JAXBEnumeration, JAXBGroup, JAXBSchema, JAXBType, JAXBWildcard, XSAnnotation, XSAny, XSAppinfo, XSAttribute, XSAttributeGroup, XSDocumentation, XSElement, XSEnumeration, XSGroup, XSIdentityConstraint, XSKeyRef, XSNotation, XSOpenAttrs, XSSchema, XSType, XSWildcard
Known Implementing Classes:
AbstractAtomicType, AbstractBuiltinType, AbstractListType, AbstractSimpleType, JAXBAttributeImpl, JAXBElementImpl, JAXBEnumerationImpl, JAXBGroupImpl, JAXBSchemaImpl, JAXBTypeImpl, JAXBWildcardImpl, JMChar, XSAnnotationImpl, XSAnyImpl, XSAnySimpleType, XSAnyType, XSAnyURI, XSAppinfoImpl, XSAttributeGroupImpl, XSAttributeImpl, XSBase64Binary, XSBoolean, XSByte, XSDate, XSDateTime, XSDecimal, XSDocumentationImpl, XSDouble, XSDuration, XSElementImpl, XSEntities, XSEntity, XSEnumerationImpl, XSFloat, XSGDay, XSGMonth, XSGMonthDay, XSGroupImpl, XSGYear, XSGYearMonth, XSHexBinary, XSIdentityConstraintImpl, XSID, XSIDREF, XSIDREFs, XSInt, XSInteger, XSKeyRefImpl, XSLanguage, XSLong, XSName, XSNCName, XSNegativeInteger, XSNMToken, XSNMTokens, XSNonNegativeInteger, XSNonPositiveInteger, XSNormalizedString, XSNotation, XSNotationImpl, XSObjectImpl, XSOpenAttrsImpl, XSPositiveInteger, XSQName, XSSchemaImpl, XSShort, XSString, XSTime, XSToken, XSTypeImpl, XSUnsignedByte, XSUnsignedInt, XSUnsignedLong, XSUnsignedShort, XSWildcardImpl

public interface XSObject

A common base interface for all other schema objects.
Author:
Jochen Wiedmann

Method Summary

Locator
getLocator()
Returns the objects location.
XSObject
getParentObject()
Returns either of the following:
  • If the object is the schema itself, returns null.
XSSchema
getXSSchema()
Returns the objects schema.
boolean
isTopLevelObject()
Returns whether the object is a top-level object.
void
validate()
Validates the objects internal state.

Method Details

getLocator

public Locator getLocator()
Returns the objects location.

getParentObject

public XSObject getParentObject()
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.

getXSSchema

public XSSchema getXSSchema()
Returns the objects schema.

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.

validate

public void validate()
            throws SAXException
Validates the objects internal state.