|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Schema
instead.
This class is a holder of parsed schemas. It is able to parse another schema, return types and members.
Method Summary | |
void |
addAttribute(Attribute attr)
Deprecated. registers a new attribute into the schema. |
void |
addAttributeGroup(AttributeGroup attrGroup)
Deprecated. registers a new attribute group into the schema. |
void |
addSchemaElement(Member member)
Deprecated. registers a new schema element into the schema. |
void |
addSchemaGroup(Type group)
Deprecated. registers a new schema group into the schema. |
void |
addSchemaType(Type type)
Deprecated. registers a new type into the schema. |
Attribute |
getAttribute(QName name)
Deprecated. returns attribute for a given name |
Attribute |
getAttribute(java.lang.String namespaceURI,
java.lang.String localPart)
Deprecated. returns attribute for a given name |
AttributeGroup |
getAttributeGroup(QName name)
Deprecated. returns attributeGroup for a given name |
AttributeGroup |
getAttributeGroup(java.lang.String namespaceURI,
java.lang.String localPart)
Deprecated. returns attributeGroup for a given name |
java.util.Iterator |
getAttributeGroups(java.lang.String namespaceURI)
Deprecated. returns an iterator of attribute groups defined in the given namespace URI |
java.util.Iterator |
getAttributes(java.lang.String namespaceURI)
Deprecated. returns an iterator of attributes defined in the given namespace URI |
java.util.Iterator |
getElements(java.lang.String namespaceURI)
Deprecated. returns an iterator of elements defined in the given namespace URI |
java.util.Iterator |
getGroups(java.lang.String namespaceURI)
Deprecated. returns an iterator of groups defined in the given namespace URI |
java.util.Set |
getNamespaces()
Deprecated. returns a set of parsed namespaces |
SchemaParser |
getParser()
Deprecated. returns the parser responsible for parsing xml schema documents into this schema representation. |
Member |
getSchemaElement(QName name)
Deprecated. returns 'element' in the schema |
Member |
getSchemaElement(java.lang.String namespaceURI,
java.lang.String localPart)
Deprecated. returns 'element' in the schema |
Type |
getSchemaGroup(QName name)
Deprecated. returns schema group with the given name |
Type |
getSchemaGroup(java.lang.String namespaceURI,
java.lang.String localPart)
Deprecated. returns schema group with the given name |
Type |
getSchemaType(QName name)
Deprecated. returns schema type of a given name |
Type |
getSchemaType(java.lang.String namespaceURI,
java.lang.String localPart)
Deprecated. returns schema type of a given name |
java.util.Iterator |
getTypes(java.lang.String namespaceURI)
Deprecated. returns an iterator of types defined in the given namespace URI |
java.lang.String |
toString()
Deprecated. returns human-readable string representation of the contained schema, useful mainly for debugging purposes |
Method Detail |
public Type getSchemaType(QName name) throws SchemaException
name
- the name of the type
SchemaException
- if the type has not been foundpublic void addSchemaType(Type type) throws SchemaException
type
- the type to be registered
SchemaException
- thrown if the type with the same
name is already present in the schemapublic Type getSchemaType(java.lang.String namespaceURI, java.lang.String localPart) throws SchemaException
namespaceURI
- namespaceURI of the typelocalPart
- name of the type
SchemaException
- if the type has not been foundpublic Member getSchemaElement(QName name) throws SchemaException
name
- the name of the element
SchemaException
- if the element has not been foundpublic void addSchemaElement(Member member) throws SchemaException
member
- the element to be registered
SchemaException
- thrown if the element with the same
name is already present in the schemapublic Member getSchemaElement(java.lang.String namespaceURI, java.lang.String localPart) throws SchemaException
namespaceURI
- the namespaceURI of the elementlocalPart
- the name of the element
SchemaException
- if the element has not been foundpublic Type getSchemaGroup(QName name) throws SchemaException
name
- the name of the group
SchemaException
public void addSchemaGroup(Type group) throws SchemaException
group
- the group to be registered
SchemaException
- thrown if the group with the same
name is already present in the schemapublic Type getSchemaGroup(java.lang.String namespaceURI, java.lang.String localPart) throws SchemaException
namespaceURI
- the namespaceURI of the grouplocalPart
- the local name of the group
SchemaException
public Attribute getAttribute(QName name) throws SchemaException
name
- the name of the attribute
SchemaException
public void addAttribute(Attribute attr) throws SchemaException
attr
- the attribute to be registered
SchemaException
- thrown if the attribute with the same
name is already present in the schemapublic Attribute getAttribute(java.lang.String namespaceURI, java.lang.String localPart) throws SchemaException
namespaceURI
- the namespaceURIlocalPart
- the name
SchemaException
public AttributeGroup getAttributeGroup(QName name) throws SchemaException
name
- the name of the attributeGroup
SchemaException
public AttributeGroup getAttributeGroup(java.lang.String namespaceURI, java.lang.String localPart) throws SchemaException
namespaceURI
- the namespaceURIlocalPart
- the name
SchemaException
public void addAttributeGroup(AttributeGroup attrGroup) throws SchemaException
attrGroup
- the attribute group to be registered
SchemaException
- thrown if the attribute group with the same
name is already present in the schemapublic SchemaParser getParser()
public java.util.Set getNamespaces()
public java.util.Iterator getTypes(java.lang.String namespaceURI)
namespaceURI
- the namespaceURI
public java.util.Iterator getElements(java.lang.String namespaceURI)
namespaceURI
- the namespaceURI
public java.util.Iterator getGroups(java.lang.String namespaceURI)
namespaceURI
- the namespaceURI
public java.util.Iterator getAttributes(java.lang.String namespaceURI)
namespaceURI
- the namespaceURI
public java.util.Iterator getAttributeGroups(java.lang.String namespaceURI)
namespaceURI
- the namespaceURI
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |