001: /*
002: * GeoTools - OpenSource mapping toolkit
003: * http://geotools.org
004: * (C) 2004-2006, GeoTools Project Managment Committee (PMC)
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation;
009: * version 2.1 of the License.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: */
016: package org.geotools.xml.schema.impl;
017:
018: import java.net.URI;
019:
020: import org.geotools.xml.schema.Attribute;
021: import org.geotools.xml.schema.SimpleType;
022:
023: /**
024: * <p>
025: * DOCUMENT ME!
026: * </p>
027: *
028: * @author dzwiers
029: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/xml/src/main/java/org/geotools/xml/schema/impl/AttributeGT.java $
030: */
031: public class AttributeGT implements Attribute {
032: private String defualT;
033: private String fixed;
034: private String id;
035: private String name;
036: private URI namespace;
037: private int use;
038: private SimpleType type;
039: private boolean form;
040:
041: private AttributeGT() {
042: // do nothing
043: }
044:
045: /**
046: * Creates a new AttributeGT object.
047: *
048: * @param id DOCUMENT ME!
049: * @param name DOCUMENT ME!
050: * @param namespace DOCUMENT ME!
051: * @param type DOCUMENT ME!
052: * @param use DOCUMENT ME!
053: * @param defaulT DOCUMENT ME!
054: * @param fixed DOCUMENT ME!
055: * @param form DOCUMENT ME!
056: */
057: public AttributeGT(String id, String name, URI namespace,
058: SimpleType type, int use, String defaulT, String fixed,
059: boolean form) {
060: this .id = id;
061: this .name = name;
062: this .namespace = namespace;
063: this .type = type;
064: this .use = use;
065: this .defualT = defaulT;
066: this .fixed = fixed;
067: this .form = form;
068: }
069:
070: /**
071: * @see org.geotools.xml.schema.Attribute#getDefault()
072: */
073: public String getDefault() {
074: return defualT;
075: }
076:
077: /**
078: * @see org.geotools.xml.schema.Attribute#getFixed()
079: */
080: public String getFixed() {
081: return fixed;
082: }
083:
084: /**
085: * @see org.geotools.xml.schema.Attribute#isForm()
086: */
087: public boolean isForm() {
088: return form;
089: }
090:
091: /**
092: * @see org.geotools.xml.schema.Attribute#getId()
093: */
094: public String getId() {
095: return id;
096: }
097:
098: /**
099: * @see org.geotools.xml.schema.Attribute#getName()
100: */
101: public String getName() {
102: return name;
103: }
104:
105: /**
106: * @see org.geotools.xml.schema.Attribute#getUse()
107: */
108: public int getUse() {
109: return use;
110: }
111:
112: /**
113: * @see org.geotools.xml.schema.Attribute#getSimpleType()
114: */
115: public SimpleType getSimpleType() {
116: return type;
117: }
118:
119: /**
120: * @see org.geotools.xml.schema.Attribute#getNamespace()
121: */
122: public URI getNamespace() {
123: return namespace;
124: }
125: }
|