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.Element;
19: import org.geotools.xml.schema.ElementValue;
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/ElementValueGT.java $
28: */
29: public class ElementValueGT implements ElementValue {
30: private Element element;
31: private Object value;
32:
33: private ElementValueGT() {
34: // do nothing
35: }
36:
37: /**
38: * Creates a new ElementValueGT object.
39: *
40: * @param element DOCUMENT ME!
41: * @param value DOCUMENT ME!
42: */
43: public ElementValueGT(Element element, Object value) {
44: this .element = element;
45: this .value = value;
46: }
47:
48: /**
49: * @see org.geotools.xml.schema.ElementValue#getElement()
50: */
51: public Element getElement() {
52: return element;
53: }
54:
55: /**
56: * @see org.geotools.xml.schema.ElementValue#getValue()
57: */
58: public Object getValue() {
59: return value;
60: }
61: }
|