1 /*
2  * reserved comment block
3  * DO NOT REMOVE OR ALTER!
4  */
5 /*
6  * Licensed to the Apache Software Foundation (ASF) under one or more
7  * contributor license agreements.  See the NOTICE file distributed with
8  * this work for additional information regarding copyright ownership.
9  * The ASF licenses this file to You under the Apache License, Version 2.0
10  * (the "License"); you may not use this file except in compliance with
11  * the License.  You may obtain a copy of the License at
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */
21 
22 package com.sun.org.apache.xerces.internal.xs;
23 
24 /**
25  * The <code>XSObject</code> is a base object for the XML Schema component
26  * model.
27  */
28 public interface XSObject {
29     /**
30      *  The <code>type</code> of this object, i.e.
31      * <code>ELEMENT_DECLARATION</code>.
32      */
getType()33     public short getType();
34 
35     /**
36      * The name of type <code>NCName</code>, as defined in XML Namespaces, of
37      * this declaration specified in the <code>{name}</code> property of the
38      * component or <code>null</code> if the definition of this component
39      * does not have a <code>{name}</code> property. For anonymous types,
40      * the processor must construct and expose an anonymous type name that
41      * is distinct from the name of every named type and the name of every
42      * other anonymous type.
43      */
getName()44     public String getName();
45 
46     /**
47      *  The [target namespace] of this object, or <code>null</code> if it is
48      * unspecified.
49      */
getNamespace()50     public String getNamespace();
51 
52     /**
53      * A namespace schema information item corresponding to the target
54      * namespace of the component, if it is globally declared; or
55      * <code>null</code> otherwise.
56      */
getNamespaceItem()57     public XSNamespaceItem getNamespaceItem();
58 
59 }
60