|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XSSchema
This interface is what you are probably most interested in: The logical XML Schema representation.
Method Summary | |
---|---|
void |
add(XSAnnotation pAnnotation)
Adds a new annotation to the schema. |
void |
add(XSAttribute pAttribute)
Adds a new attribute to the schema. |
void |
add(XSAttributeGroup pGroup)
Adds a new attribute group to the schema. |
void |
add(XSElement pElement)
Adds a new element to the schema. |
void |
add(XSGroup pGroup)
Adds a new group to the schema. |
void |
add(XSIdentityConstraint ic)
Adds a new identity constraint to the schema. |
void |
add(XSKeyRef rf)
Adds a new key ref to the schema. |
void |
add(XSNotation pNotation)
Adds a new notation to the schema. |
void |
add(XSType pType)
Adds a new type to the schema. |
XSAnnotation[] |
getAnnotations()
Returns the array of annotations. |
XSAttribute |
getAttribute(XsQName pName)
Returns the attribute with the given name. |
XSAttributeGroup |
getAttributeGroup(XsQName pName)
Returns the attribute group with the given name. |
XSAttributeGroup[] |
getAttributeGroups()
Returns the array of global attribute groups. |
XSAttribute[] |
getAttributes()
Returns the array of global attributes. |
XSType[] |
getBuiltinTypes()
Returns the array of builtin types. |
java.lang.Object[] |
getChilds()
Returns all the schema annotations, types, groups, attribute groups, elements, and attributes, in the order of declaration. |
XSContext |
getContext()
Returns the schemas context. |
XSElement |
getElement(XsQName pName)
Returns the element with the given name. |
XSElement[] |
getElements()
Returns the array of global elements. |
XSGroup |
getGroup(XsQName pName)
Returns the group with the given name. |
XSGroup[] |
getGroups()
Returns the array of global groups. |
java.util.Map |
getIdentityConstraints()
Returns a map of XSIdentityConstraint objects. |
java.util.Map |
getKeyRefs()
Returns a map of XSKeyRef objects. |
XsAnyURI |
getTargetNamespace()
Returns the schemas target namespace. |
XSType |
getType(XsQName pName)
Returns the type with the given name. |
XSType[] |
getTypes()
Returns the array of global types. |
XSObjectFactory |
getXSObjectFactory()
Returns the schemas object factory. |
void |
redefine(XSAttributeGroup pGroup)
Redefines an existing attribute group in the schema. |
void |
redefine(XSGroup pGroup)
Redefines an existing group in the schema. |
void |
redefine(XSType pType)
Redefines an existing type in the schema. |
Methods inherited from interface org.apache.ws.jaxme.xs.XSOpenAttrs |
---|
getOpenAttributes |
Methods inherited from interface org.apache.ws.jaxme.xs.XSObject |
---|
getLocator, getParentObject, getXSSchema, isTopLevelObject, validate |
Method Detail |
---|
XSObjectFactory getXSObjectFactory()
Returns the schemas object factory.
XSContext getContext()
Returns the schemas context.
XsAnyURI getTargetNamespace()
Returns the schemas target namespace. Note, that a
logical schema
can combine elements,
attributes, groups, and types of various namespaces by
importing other syntactical schemas
with different namespaces. Thus
the logical schemas target namespace is in fact the
target namespace of the outermost syntactical schema.
XSAnnotation[] getAnnotations()
Returns the array of annotations.
XSType[] getTypes()
Returns the array of global types. This includes simple and complex types. The builtin types are not included.
getType(XsQName)
XSType[] getBuiltinTypes()
Returns the array of builtin types. This includes simple and complex types.
getTypes()
XSType getType(XsQName pName)
Returns the type with the given name. This may be a builtin type or a type defined by the schema.
XSGroup[] getGroups()
Returns the array of global groups.
XSGroup getGroup(XsQName pName)
Returns the group with the given name.
XSAttributeGroup[] getAttributeGroups()
Returns the array of global attribute groups.
XSAttributeGroup getAttributeGroup(XsQName pName)
Returns the attribute group with the given name.
XSElement[] getElements()
Returns the array of global elements.
XSElement getElement(XsQName pName)
Returns the element with the given name.
XSAttribute[] getAttributes()
Returns the array of global attributes.
XSAttribute getAttribute(XsQName pName)
Returns the attribute with the given name.
java.util.Map getIdentityConstraints()
Returns a map of XSIdentityConstraint objects. The key is the constraints name. The map is immutable.
java.util.Map getKeyRefs()
Returns a map of XSKeyRef objects. The key is the key refs name. The map is immutable.
java.lang.Object[] getChilds()
Returns all the schema annotations, types, groups, attribute groups, elements, and attributes, in the order of declaration.
void add(XSAnnotation pAnnotation)
Adds a new annotation to the schema.
void add(XSType pType) throws org.xml.sax.SAXException
Adds a new type to the schema.
org.xml.sax.SAXException
void redefine(XSType pType) throws org.xml.sax.SAXException
Redefines an existing type in the schema.
org.xml.sax.SAXException
void add(XSGroup pGroup) throws org.xml.sax.SAXException
Adds a new group to the schema.
org.xml.sax.SAXException
void redefine(XSGroup pGroup) throws org.xml.sax.SAXException
Redefines an existing group in the schema.
org.xml.sax.SAXException
void add(XSAttributeGroup pGroup) throws org.xml.sax.SAXException
Adds a new attribute group to the schema.
org.xml.sax.SAXException
void redefine(XSAttributeGroup pGroup) throws org.xml.sax.SAXException
Redefines an existing attribute group in the schema.
org.xml.sax.SAXException
void add(XSAttribute pAttribute) throws org.xml.sax.SAXException
Adds a new attribute to the schema.
org.xml.sax.SAXException
void add(XSElement pElement) throws org.xml.sax.SAXException
Adds a new element to the schema.
org.xml.sax.SAXException
void add(XSNotation pNotation) throws org.xml.sax.SAXException
Adds a new notation to the schema.
org.xml.sax.SAXException
void add(XSIdentityConstraint ic) throws org.xml.sax.SAXException
Adds a new identity constraint to the schema.
org.xml.sax.SAXException
void add(XSKeyRef rf) throws org.xml.sax.SAXException
Adds a new key ref to the schema.
org.xml.sax.SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |