01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2004-2006, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.xml.schema.impl;
17:
18: import java.net.URI;
19:
20: import org.geotools.xml.schema.Attribute;
21: import org.geotools.xml.schema.AttributeGroup;
22:
23: /**
24: * <p>
25: * DOCUMENT ME!
26: * </p>
27: *
28: * @author dzwiers
29: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/xml/src/main/java/org/geotools/xml/schema/impl/AttributeGroupGT.java $
30: */
31: public class AttributeGroupGT implements AttributeGroup {
32: private String anyAttributeNamespace;
33: private Attribute[] attributes;
34: private String id;
35: private String name;
36: private URI namespace;
37:
38: private AttributeGroupGT() {
39: // do nothing
40: }
41:
42: /**
43: * Creates a new AttributeGroupGT object.
44: *
45: * @param id DOCUMENT ME!
46: * @param name DOCUMENT ME!
47: * @param namespace DOCUMENT ME!
48: * @param attributes DOCUMENT ME!
49: * @param anyAttributeNamespace DOCUMENT ME!
50: */
51: public AttributeGroupGT(String id, String name, URI namespace,
52: Attribute[] attributes, String anyAttributeNamespace) {
53: this .id = id;
54: this .name = name;
55: this .namespace = namespace;
56: this .attributes = attributes;
57: this .anyAttributeNamespace = anyAttributeNamespace;
58: }
59:
60: /**
61: * @see org.geotools.xml.xsi.AttributeGroup#getAnyAttributeNameSpace()
62: */
63: public String getAnyAttributeNameSpace() {
64: return anyAttributeNamespace;
65: }
66:
67: /**
68: * @see org.geotools.xml.xsi.AttributeGroup#getAttributes()
69: */
70: public Attribute[] getAttributes() {
71: return attributes;
72: }
73:
74: /**
75: * @see org.geotools.xml.xsi.AttributeGroup#getId()
76: */
77: public String getId() {
78: return id;
79: }
80:
81: /**
82: * @see org.geotools.xml.xsi.AttributeGroup#getName()
83: */
84: public String getName() {
85: return name;
86: }
87:
88: /**
89: * @see org.geotools.xml.xsi.AttributeGroup#getNamespace()
90: */
91: public URI getNamespace() {
92: return namespace;
93: }
94: }
|