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;
17:
18: /**
19: * <p>
20: * DOCUMENT ME!
21: * </p>
22: *
23: * @author dzwiers
24: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/xml/src/main/java/org/geotools/xml/schema/Facet.java $
25: */
26: public interface Facet {
27: /** DOCUMENT ME! */
28: public static int ENUMERATION = 1;
29:
30: /** DOCUMENT ME! */
31: public static int FRACTIONDIGITS = 2;
32:
33: /** DOCUMENT ME! */
34: public static int LENGTH = 3;
35:
36: /** DOCUMENT ME! */
37: public static int MAXEXCLUSIVE = 4;
38:
39: /** DOCUMENT ME! */
40: public static int MAXINCLUSIVE = 5;
41:
42: /** DOCUMENT ME! */
43: public static int MAXLENGTH = 6;
44:
45: /** DOCUMENT ME! */
46: public static int MINEXCLUSIVE = 7;
47:
48: /** DOCUMENT ME! */
49: public static int MININCLUSIVE = 8;
50:
51: /** DOCUMENT ME! */
52: public static int MINLENGTH = 9;
53:
54: /** DOCUMENT ME! */
55: public static int PATTERN = 10;
56:
57: /** DOCUMENT ME! */
58: public static int TOTALDIGITS = 11;
59:
60: /** DOCUMENT ME! */
61: public static int WHITESPACE = 12;
62:
63: /**
64: * The Facet Type -- selected from one of the above constant values
65: *
66: */
67: public int getFacetType();
68:
69: /**
70: * The facet's constraint
71: *
72: */
73: public String getValue();
74: }
|