org.apache.ws.jaxme.xs.impl

Class XSSchemaImpl

public class XSSchemaImpl extends Object implements XSSchema

Implementation of an XML Schema, as defined by the XSSchema interface.

Author: Jochen Wiedmann

Constructor Summary
XSSchemaImpl(XSContext pContext, XsESchema pSchema)

Creates a new logical schema by loading data, which represents the given syntactical schema pSchema and uses the given context pContext for acquiring additional information.

Method Summary
voidadd(XSIdentityConstraint ic)
voidadd(XSKeyRef rf)
voidadd(XSAnnotation pAnnotation)
voidadd(XSType pType)
voidadd(XSGroup pGroup)
voidadd(XSAttributeGroup pGroup)
voidadd(XSAttribute pAttribute)
voidadd(XSElement pElement)
voidadd(XSNotation pNotation)
protected voidaddChild(Object pChild)

Adds a new child to the array returned by getChilds.

XSAnnotation[]getAnnotations()
XSAttributegetAttribute(XsQName pQName)
XSAttributeGroupgetAttributeGroup(XsQName pName)
XSAttributeGroup[]getAttributeGroups()
XSAttribute[]getAttributes()
XSType[]getBuiltinTypes()
Object[]getChilds()
XSContextgetContext()
XSElementgetElement(XsQName pName)
XSElement[]getElements()
XSGroupgetGroup(XsQName pName)
XSGroup[]getGroups()
MapgetIdentityConstraints()
MapgetKeyRefs()
LocatorgetLocator()
AttributesgetOpenAttributes()
XSObjectgetParentObject()
XsAnyURIgetTargetNamespace()
XSTypegetType(XsQName pName)
XSType[]getTypes()
protected XsESchemagetXsESchema()
XSObjectFactorygetXSObjectFactory()
XSSchemagetXSSchema()
booleanisTopLevelObject()
protected booleanisValidated()
voidredefine(XSType pType)
voidredefine(XSGroup pGroup)
voidredefine(XSAttributeGroup pGroup)
protected voidreplace(Object pOldChild, Object pNewChild)

Replaces the existing child pOldChild with the replacement object pNewChild.

protected voidvalidate(Object pChild)
voidvalidate()

Constructor Detail

XSSchemaImpl

public XSSchemaImpl(XSContext pContext, XsESchema pSchema)

Creates a new logical schema by loading data, which represents the given syntactical schema pSchema and uses the given context pContext for acquiring additional information.

Method Detail

add

public void add(XSIdentityConstraint ic)

add

public void add(XSKeyRef rf)

add

public void add(XSAnnotation pAnnotation)

add

public void add(XSType pType)

add

public void add(XSGroup pGroup)

add

public void add(XSAttributeGroup pGroup)

add

public void add(XSAttribute pAttribute)

add

public void add(XSElement pElement)

add

public void add(XSNotation pNotation)

addChild

protected void addChild(Object pChild)

Adds a new child to the array returned by getChilds.

getAnnotations

public XSAnnotation[] getAnnotations()

getAttribute

public XSAttribute getAttribute(XsQName pQName)

getAttributeGroup

public XSAttributeGroup getAttributeGroup(XsQName pName)

getAttributeGroups

public XSAttributeGroup[] getAttributeGroups()

getAttributes

public XSAttribute[] getAttributes()

getBuiltinTypes

public XSType[] getBuiltinTypes()

getChilds

public Object[] getChilds()

getContext

public XSContext getContext()

getElement

public XSElement getElement(XsQName pName)

getElements

public XSElement[] getElements()

getGroup

public XSGroup getGroup(XsQName pName)

getGroups

public XSGroup[] getGroups()

getIdentityConstraints

public Map getIdentityConstraints()

getKeyRefs

public Map getKeyRefs()

getLocator

public Locator getLocator()

getOpenAttributes

public Attributes getOpenAttributes()

getParentObject

public XSObject getParentObject()

getTargetNamespace

public XsAnyURI getTargetNamespace()

getType

public XSType getType(XsQName pName)

getTypes

public XSType[] getTypes()

getXsESchema

protected XsESchema getXsESchema()

getXSObjectFactory

public XSObjectFactory getXSObjectFactory()

getXSSchema

public XSSchema getXSSchema()

isTopLevelObject

public boolean isTopLevelObject()

isValidated

protected boolean isValidated()

redefine

public void redefine(XSType pType)

redefine

public void redefine(XSGroup pGroup)

redefine

public void redefine(XSAttributeGroup pGroup)

replace

protected void replace(Object pOldChild, Object pNewChild)

Replaces the existing child pOldChild with the replacement object pNewChild. This method is used from within the various redefine() methods.

validate

protected void validate(Object pChild)

validate

public void validate()