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