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 org.geotools.xml.schema.Attribute;
19: import org.geotools.xml.schema.AttributeValue;
20:
21: /**
22: * <p>
23: * DOCUMENT ME!
24: * </p>
25: *
26: * @author dzwiers
27: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/xml/src/main/java/org/geotools/xml/schema/impl/AttributeValueGT.java $
28: */
29: public class AttributeValueGT implements AttributeValue {
30: private String value;
31: private Attribute attribute;
32:
33: private AttributeValueGT() {
34: // do nothing
35: }
36:
37: /**
38: * Creates a new AttributeValueGT object.
39: *
40: * @param attribute DOCUMENT ME!
41: * @param value DOCUMENT ME!
42: */
43: public AttributeValueGT(Attribute attribute, String value) {
44: this .attribute = attribute;
45: this .value = value;
46: }
47:
48: /**
49: * @see org.geotools.xml.schema.AttributeValue#getValue()
50: */
51: public String getValue() {
52: return value;
53: }
54:
55: /**
56: * @see org.geotools.xml.schema.AttributeValue#getAttribute()
57: */
58: public Attribute getAttribute() {
59: return attribute;
60: }
61: }
|