org.apache.ws.jaxme.xs
public interface XSSchema extends XSOpenAttrs
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(XSType pType) Adds a new type to the schema. |
void | add(XSGroup pGroup) Adds a new group to the schema. |
void | add(XSAttributeGroup pGroup) Adds a new attribute group to the schema. |
void | add(XSAttribute pAttribute) Adds a new attribute to the schema. |
void | add(XSElement pElement) Adds a new element to the schema. |
void | add(XSNotation pNotation) Adds a new notation 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. |
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. |
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. |
Map | getIdentityConstraints() Returns a map of XSIdentityConstraint objects. |
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(XSType pType) Redefines an existing type in the schema. |
void | redefine(XSGroup pGroup) Redefines an existing group in the schema. |
void | redefine(XSAttributeGroup pGroup) Redefines an existing attribute group in the schema. |
Adds a new annotation to the schema.
Adds a new type to the schema.
Adds a new group to the schema.
Adds a new attribute group to the schema.
Adds a new attribute to the schema.
Adds a new element to the schema.
Adds a new notation to the schema.
Adds a new identity constraint to the schema.
Adds a new key ref to the schema.
Returns the array of annotations.
Returns the attribute with the given name.
Returns the attribute group with the given name.
Returns the array of global attribute groups.
Returns the array of global attributes.
Returns the array of builtin types. This includes simple and complex types.
See Also: getTypes
Returns all the schema annotations, types, groups, attribute groups, elements, and attributes, in the order of declaration.
Returns the schemas context.
Returns the element with the given name.
Returns the array of global elements.
Returns the group with the given name.
Returns the array of global groups.
Returns a map of XSIdentityConstraint objects. The key is the constraints name. The map is immutable.
Returns a map of XSKeyRef objects. The key is the key refs name. The map is immutable.
Returns the schemas target namespace. Note, that a {@link XSSchema logical schema} can combine elements, attributes, groups, and types of various namespaces by importing other {@link org.apache.ws.jaxme.xs.xml.XsESchema syntactical schemas} with different namespaces. Thus the logical schemas target namespace is in fact the target namespace of the outermost syntactical schema.
Returns: Target namespace or null for null (default namespace)
Returns the type with the given name. This may be a builtin type or a type defined by the schema.
Returns the array of global types. This includes simple and complex types. The builtin types are not included.
See Also: getType
Returns the schemas object factory.
Redefines an existing type in the schema.
Redefines an existing group in the schema.
Redefines an existing attribute group in the schema.