org.apache.xerces.impl.xs.psvi
Interface XSNamespaceItem

All Known Implementing Classes:
SchemaGrammar

public interface XSNamespaceItem

A read-only interface that represents a namespace schema information item.

Version:
$Id: XSNamespaceItem.java,v 1.2 2002/06/17 18:41:46 elena Exp $
Author:
Sandy Gao, IBM

Method Summary
 XSAttributeDeclaration getAttributeDecl(java.lang.String name)
          Convenience method.
 XSAttributeGroupDefinition getAttributeGroup(java.lang.String name)
          Convenience method.
 XSNamedMap getComponents(short objectType)
          Returns a list of top-level components, i.e.
 StringList getDocumentLocations()
          [document location]
 ObjectList getDocuments()
          [document]
 XSElementDeclaration getElementDecl(java.lang.String name)
          Convenience method.
 XSModelGroupDefinition getModelGroupDefinition(java.lang.String name)
          Convenience method.
 XSNotationDeclaration getNotationDecl(java.lang.String name)
          Convenience method.
 java.lang.String getSchemaNamespace()
          [schema namespace]
 XSTypeDefinition getTypeDefinition(java.lang.String name)
          Convenience method.
 

Method Detail

getSchemaNamespace

public java.lang.String getSchemaNamespace()
[schema namespace]

Returns:
The target namespace of this item.
See Also:
[schema namespace]

getComponents

public XSNamedMap getComponents(short objectType)
Returns a list of top-level components, i.e. element declarations, attribute declarations, etc.

Note that XSTypeDefinition#SIMPLE_TYPE and XSTypeDefinition#COMPLEX_TYPE can also be used as the objectType to retrieve only complex types or simple types, instead of all types.

Parameters:
objectType - The type of the declaration, i.e. ELEMENT_DECLARATION, ATTRIBUTE_DECLARATION, etc.
Returns:
A list of top-level definition of the specified type in objectType or null.

getTypeDefinition

public XSTypeDefinition getTypeDefinition(java.lang.String name)
Convenience method. Returns a top-level simple or complex type definition.

Parameters:
name - The name of the definition.
Returns:
An XSTypeDefinition or null if such definition does not exist.

getAttributeDecl

public XSAttributeDeclaration getAttributeDecl(java.lang.String name)
Convenience method. Returns a top-level attribute declaration.

Parameters:
name - The name of the declaration.
Returns:
A top-level attribute declaration or null if such declaration does not exist.

getElementDecl

public XSElementDeclaration getElementDecl(java.lang.String name)
Convenience method. Returns a top-level element declaration.

Parameters:
name - The name of the declaration.
Returns:
A top-level element declaration or null if such declaration does not exist.

getAttributeGroup

public XSAttributeGroupDefinition getAttributeGroup(java.lang.String name)
Convenience method. Returns a top-level attribute group definition.

Parameters:
name - The name of the definition.
Returns:
A top-level attribute group definition or null if such definition does not exist.

getModelGroupDefinition

public XSModelGroupDefinition getModelGroupDefinition(java.lang.String name)
Convenience method. Returns a top-level model group definition.

Parameters:
name - The name of the definition.
Returns:
A top-level model group definition definition or null if such definition does not exist.

getNotationDecl

public XSNotationDeclaration getNotationDecl(java.lang.String name)
Convenience method. Returns a top-level notation declaration.

Parameters:
name - The name of the declaration.
Returns:
A top-level notation declaration or null if such declaration does not exist.

getDocuments

public ObjectList getDocuments()
[document]

Returns:
a list of document information item
See Also:
[document]

getDocumentLocations

public StringList getDocumentLocations()
[document location]

Returns:
a list of document information item
See Also:
[document location]


Copyright © 1999-2002 Apache XML Project. All Rights Reserved.