KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * Copyright 1999-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.*;
20
21 /**
22  * The XML representation for a group declaration
23  * schema component is a global <group> element information item
24  *
25  * @xerces.internal
26  *
27  * @author Sandy Gao, IBM
28  * @version $Id: XSGroupDecl.java,v 1.10 2004/10/06 15:14:55 mrglavas Exp $
29  */

30 public class XSGroupDecl implements XSModelGroupDefinition {
31
32     // name of the group
33
public String JavaDoc fName = null;
34     // target namespace of the group
35
public String JavaDoc fTargetNamespace = null;
36     // model group of the group
37
public XSModelGroupImpl fModelGroup = null;
38     // optional annotation
39
public XSAnnotationImpl fAnnotation = null;
40
41     /**
42      * Get the type of the object, i.e ELEMENT_DECLARATION.
43      */

44     public short getType() {
45         return XSConstants.MODEL_GROUP_DEFINITION;
46     }
47
48     /**
49      * The <code>name</code> of this <code>XSObject</code> depending on the
50      * <code>XSObject</code> type.
51      */

52     public String JavaDoc getName() {
53         return fName;
54     }
55
56     /**
57      * The namespace URI of this node, or <code>null</code> if it is
58      * unspecified. defines how a namespace URI is attached to schema
59      * components.
60      */

61     public String JavaDoc getNamespace() {
62         return fTargetNamespace;
63     }
64
65     /**
66      * {model group} A model group.
67      */

68     public XSModelGroup getModelGroup() {
69         return fModelGroup;
70     }
71
72     /**
73      * Optional. Annotation.
74      */

75     public XSAnnotation getAnnotation() {
76         return fAnnotation;
77     }
78     
79     /**
80      * @see org.apache.xerces.xs.XSObject#getNamespaceItem()
81      */

82     public XSNamespaceItem getNamespaceItem() {
83         // REVISIT: implement
84
return null;
85     }
86
87 } // class XSGroupDecl
88
Popular Tags