286N/A/*
286N/A * reserved comment block
286N/A * DO NOT REMOVE OR ALTER!
286N/A */
286N/A/*
286N/A * Copyright 2003,2004 The Apache Software Foundation.
286N/A *
286N/A * Licensed under the Apache License, Version 2.0 (the "License");
286N/A * you may not use this file except in compliance with the License.
286N/A * You may obtain a copy of the License at
286N/A *
286N/A * http://www.apache.org/licenses/LICENSE-2.0
286N/A *
286N/A * Unless required by applicable law or agreed to in writing, software
286N/A * distributed under the License is distributed on an "AS IS" BASIS,
286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
286N/A * See the License for the specific language governing permissions and
286N/A * limitations under the License.
286N/A */
286N/A
286N/Apackage com.sun.org.apache.xerces.internal.xs;
286N/A
286N/A/**
286N/A * The interface represents the namespace schema information information item.
286N/A * Each namespace schema information information item corresponds to an XML
286N/A * Schema with a unique namespace name.
286N/A */
286N/Apublic interface XSNamespaceItem {
286N/A /**
286N/A * [schema namespace]: A namespace name or <code>null</code> if absent.
286N/A */
286N/A public String getSchemaNamespace();
286N/A
286N/A /**
286N/A * [schema components]: a list of top-level components, i.e. element
286N/A * declarations, attribute declarations, etc.
286N/A * @param objectType The type of the declaration, i.e.
286N/A * <code>ELEMENT_DECLARATION</code>. Note that
286N/A * <code>XSTypeDefinition.SIMPLE_TYPE</code> and
286N/A * <code>XSTypeDefinition.COMPLEX_TYPE</code> can also be used as the
286N/A * <code>objectType</code> to retrieve only complex types or simple
286N/A * types, instead of all types.
286N/A * @return A list of top-level definition of the specified type in
286N/A * <code>objectType</code> or an empty <code>XSNamedMap</code> if no
286N/A * such definitions exist.
286N/A */
286N/A public XSNamedMap getComponents(short objectType);
286N/A
286N/A /**
286N/A * [annotations]: a set of annotations if it exists, otherwise an empty
286N/A * <code>XSObjectList</code>.
286N/A */
286N/A public XSObjectList getAnnotations();
286N/A
286N/A /**
286N/A * Convenience method. Returns a top-level element declaration.
286N/A * @param name The name of the declaration.
286N/A * @return A top-level element declaration or <code>null</code> if such a
286N/A * declaration does not exist.
286N/A */
286N/A public XSElementDeclaration getElementDeclaration(String name);
286N/A
286N/A /**
286N/A * Convenience method. Returns a top-level attribute declaration.
286N/A * @param name The name of the declaration.
286N/A * @return A top-level attribute declaration or <code>null</code> if such
286N/A * a declaration does not exist.
286N/A */
286N/A public XSAttributeDeclaration getAttributeDeclaration(String name);
286N/A
286N/A /**
286N/A * Convenience method. Returns a top-level simple or complex type
286N/A * definition.
286N/A * @param name The name of the definition.
286N/A * @return An <code>XSTypeDefinition</code> or <code>null</code> if such
286N/A * a definition does not exist.
286N/A */
286N/A public XSTypeDefinition getTypeDefinition(String name);
286N/A
286N/A /**
286N/A * Convenience method. Returns a top-level attribute group definition.
286N/A * @param name The name of the definition.
286N/A * @return A top-level attribute group definition or <code>null</code> if
286N/A * such a definition does not exist.
286N/A */
286N/A public XSAttributeGroupDefinition getAttributeGroup(String name);
286N/A
286N/A /**
286N/A * Convenience method. Returns a top-level model group definition.
286N/A * @param name The name of the definition.
286N/A * @return A top-level model group definition definition or
286N/A * <code>null</code> if such a definition does not exist.
286N/A */
286N/A public XSModelGroupDefinition getModelGroupDefinition(String name);
286N/A
286N/A /**
286N/A * Convenience method. Returns a top-level notation declaration.
286N/A * @param name The name of the declaration.
286N/A * @return A top-level notation declaration or <code>null</code> if such
286N/A * a declaration does not exist.
286N/A */
286N/A public XSNotationDeclaration getNotationDeclaration(String name);
286N/A
286N/A /**
286N/A * [document location] - a list of location URIs for the documents that
286N/A * contributed to the <code>XSModel</code>.
286N/A */
286N/A public StringList getDocumentLocations();
286N/A
286N/A}