org.idoox.xml.schema
Interface SchemaHolder

All Known Subinterfaces:
Schema

Deprecated. Use Schema instead.

public interface SchemaHolder

This class is a holder of parsed schemas. It is able to parse another schema, return types and members.

Since:
1.0
Component:
Core

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

getSchemaType

public Type getSchemaType(QName name)
                   throws SchemaException
Deprecated. 
returns schema type of a given name

Parameters:
name - the name of the type
Returns:
the parsed type
Throws:
SchemaException - if the type has not been found

addSchemaType

public void addSchemaType(Type type)
                   throws SchemaException
Deprecated. 
registers a new type into the schema. If the type contains java mapping, it is registered into the java mapping table.

Parameters:
type - the type to be registered
Throws:
SchemaException - thrown if the type with the same name is already present in the schema

getSchemaType

public Type getSchemaType(java.lang.String namespaceURI,
                          java.lang.String localPart)
                   throws SchemaException
Deprecated. 
returns schema type of a given name

Parameters:
namespaceURI - namespaceURI of the type
localPart - name of the type
Returns:
the parsed type
Throws:
SchemaException - if the type has not been found

getSchemaElement

public Member getSchemaElement(QName name)
                        throws SchemaException
Deprecated. 
returns 'element' in the schema

Parameters:
name - the name of the element
Returns:
the parsed element
Throws:
SchemaException - if the element has not been found

addSchemaElement

public void addSchemaElement(Member member)
                      throws SchemaException
Deprecated. 
registers a new schema element into the schema.

Parameters:
member - the element to be registered
Throws:
SchemaException - thrown if the element with the same name is already present in the schema

getSchemaElement

public Member getSchemaElement(java.lang.String namespaceURI,
                               java.lang.String localPart)
                        throws SchemaException
Deprecated. 
returns 'element' in the schema

Parameters:
namespaceURI - the namespaceURI of the element
localPart - the name of the element
Returns:
the parsed element
Throws:
SchemaException - if the element has not been found

getSchemaGroup

public Type getSchemaGroup(QName name)
                    throws SchemaException
Deprecated. 
returns schema group with the given name

Parameters:
name - the name of the group
Returns:
the group
Throws:
SchemaException

addSchemaGroup

public void addSchemaGroup(Type group)
                    throws SchemaException
Deprecated. 
registers a new schema group into the schema.

Parameters:
group - the group to be registered
Throws:
SchemaException - thrown if the group with the same name is already present in the schema

getSchemaGroup

public Type getSchemaGroup(java.lang.String namespaceURI,
                           java.lang.String localPart)
                    throws SchemaException
Deprecated. 
returns schema group with the given name

Parameters:
namespaceURI - the namespaceURI of the group
localPart - the local name of the group
Returns:
the group
Throws:
SchemaException

getAttribute

public Attribute getAttribute(QName name)
                       throws SchemaException
Deprecated. 
returns attribute for a given name

Parameters:
name - the name of the attribute
Returns:
the attribute
Throws:
SchemaException

addAttribute

public void addAttribute(Attribute attr)
                  throws SchemaException
Deprecated. 
registers a new attribute into the schema.

Parameters:
attr - the attribute to be registered
Throws:
SchemaException - thrown if the attribute with the same name is already present in the schema

getAttribute

public Attribute getAttribute(java.lang.String namespaceURI,
                              java.lang.String localPart)
                       throws SchemaException
Deprecated. 
returns attribute for a given name

Parameters:
namespaceURI - the namespaceURI
localPart - the name
Returns:
the attribute
Throws:
SchemaException

getAttributeGroup

public AttributeGroup getAttributeGroup(QName name)
                                 throws SchemaException
Deprecated. 
returns attributeGroup for a given name

Parameters:
name - the name of the attributeGroup
Returns:
the attributeGroup
Throws:
SchemaException

getAttributeGroup

public AttributeGroup getAttributeGroup(java.lang.String namespaceURI,
                                        java.lang.String localPart)
                                 throws SchemaException
Deprecated. 
returns attributeGroup for a given name

Parameters:
namespaceURI - the namespaceURI
localPart - the name
Returns:
the attributeGroup
Throws:
SchemaException

addAttributeGroup

public void addAttributeGroup(AttributeGroup attrGroup)
                       throws SchemaException
Deprecated. 
registers a new attribute group into the schema.

Parameters:
attrGroup - the attribute group to be registered
Throws:
SchemaException - thrown if the attribute group with the same name is already present in the schema

getParser

public SchemaParser getParser()
Deprecated. 
returns the parser responsible for parsing xml schema documents into this schema representation.

Returns:
the parser

getNamespaces

public java.util.Set getNamespaces()
Deprecated. 
returns a set of parsed namespaces

Returns:
a set of namespaceURIs of parsed namespaces

getTypes

public java.util.Iterator getTypes(java.lang.String namespaceURI)
Deprecated. 
returns an iterator of types defined in the given namespace URI

Parameters:
namespaceURI - the namespaceURI
Returns:
iterator of Type

getElements

public java.util.Iterator getElements(java.lang.String namespaceURI)
Deprecated. 
returns an iterator of elements defined in the given namespace URI

Parameters:
namespaceURI - the namespaceURI
Returns:
iterator of Member

getGroups

public java.util.Iterator getGroups(java.lang.String namespaceURI)
Deprecated. 
returns an iterator of groups defined in the given namespace URI

Parameters:
namespaceURI - the namespaceURI
Returns:
iterator of Type[kind=group]

getAttributes

public java.util.Iterator getAttributes(java.lang.String namespaceURI)
Deprecated. 
returns an iterator of attributes defined in the given namespace URI

Parameters:
namespaceURI - the namespaceURI
Returns:
iterator of Attribute

getAttributeGroups

public java.util.Iterator getAttributeGroups(java.lang.String namespaceURI)
Deprecated. 
returns an iterator of attribute groups defined in the given namespace URI

Parameters:
namespaceURI - the namespaceURI
Returns:
iterator of AttributeGroup

toString

public java.lang.String toString()
Deprecated. 
returns human-readable string representation of the contained schema, useful mainly for debugging purposes

Returns:
the string representation of contained xml schema