KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > impl > xs > XSNotationDecl


1 /*
2  * Copyright 2001-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.xerces.impl.xs;
18
19 import org.apache.xerces.xs.XSAnnotation;
20 import org.apache.xerces.xs.XSConstants;
21 import org.apache.xerces.xs.XSNamespaceItem;
22 import org.apache.xerces.xs.XSNotationDeclaration;
23
24 /**
25  * The XML representation for a NOTATION declaration
26  * schema component is a global <notation> element information item
27  *
28  * @xerces.internal
29  *
30  * @author Rahul Srivastava, Sun Microsystems Inc.
31  * @version $Id: XSNotationDecl.java,v 1.8 2004/10/06 15:14:54 mrglavas Exp $
32  */

33 public class XSNotationDecl implements XSNotationDeclaration {
34
35     // name of the group
36
public String JavaDoc fName = null;
37     // target namespace of the group
38
public String JavaDoc fTargetNamespace = null;
39     // public id of the notation
40
public String JavaDoc fPublicId = null;
41     // system id of the notation
42
public String JavaDoc fSystemId = null;
43
44     // optional annotation
45
public XSAnnotationImpl fAnnotation = null;
46
47     /**
48      * Get the type of the object, i.e ELEMENT_DECLARATION.
49      */

50     public short getType() {
51         return XSConstants.NOTATION_DECLARATION;
52     }
53
54     /**
55      * The <code>name</code> of this <code>XSObject</code> depending on the
56      * <code>XSObject</code> type.
57      */

58     public String JavaDoc getName() {
59         return fName;
60     }
61
62     /**
63      * The namespace URI of this node, or <code>null</code> if it is
64      * unspecified. defines how a namespace URI is attached to schema
65      * components.
66      */

67     public String JavaDoc getNamespace() {
68         return fTargetNamespace;
69     }
70
71     /**
72      * Optional if {public identifier} is present. A URI reference.
73      */

74     public String JavaDoc getSystemId() {
75         return fSystemId;
76     }
77
78     /**
79      * Optional if {system identifier} is present. A public identifier,
80      * as defined in [XML 1.0 (Second Edition)].
81      */

82     public String JavaDoc getPublicId() {
83         return fPublicId;
84     }
85
86     /**
87      * Optional. Annotation.
88      */

89     public XSAnnotation getAnnotation() {
90         return fAnnotation;
91     }
92
93     /**
94      * @see org.apache.xerces.xs.XSObject#getNamespaceItem()
95      */

96     public XSNamespaceItem getNamespaceItem() {
97         return null;
98     }
99
100 } // class XSNotationDecl
101
Popular Tags