01: /*
02: * The contents of this file are subject to the terms
03: * of the Common Development and Distribution License
04: * (the "License"). You may not use this file except
05: * in compliance with the License.
06: *
07: * You can obtain a copy of the license at
08: * https://jwsdp.dev.java.net/CDDLv1.0.html
09: * See the License for the specific language governing
10: * permissions and limitations under the License.
11: *
12: * When distributing Covered Code, include this CDDL
13: * HEADER in each file and include the License file at
14: * https://jwsdp.dev.java.net/CDDLv1.0.html If applicable,
15: * add the following below this CDDL HEADER, with the
16: * fields enclosed by brackets "[]" replaced with your
17: * own identifying information: Portions Copyright [yyyy]
18: * [name of copyright owner]
19: */
20: package com.sun.xml.xsom;
21:
22: /**
23: * Facet for a simple type.
24: *
25: * @author
26: * Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
27: */
28: public interface XSFacet extends XSComponent {
29: /** Gets the name of the facet, such as "length". */
30: String getName();
31:
32: /** Gets the value of the facet. */
33: XmlString getValue();
34:
35: /** Returns true if this facet is "fixed". */
36: boolean isFixed();
37:
38: // well-known facet name constants
39: final static String FACET_LENGTH = "length";
40: final static String FACET_MINLENGTH = "minLength";
41: final static String FACET_MAXLENGTH = "maxLength";
42: final static String FACET_PATTERN = "pattern";
43: final static String FACET_ENUMERATION = "enumeration";
44: final static String FACET_TOTALDIGITS = "totalDigits";
45: final static String FACET_FRACTIONDIGITS = "fractionDigits";
46: final static String FACET_MININCLUSIVE = "minInclusive";
47: final static String FACET_MAXINCLUSIVE = "maxInclusive";
48: final static String FACET_MINEXCLUSIVE = "minExclusive";
49: final static String FACET_MAXEXCLUSIVE = "maxExclusive";
50: final static String FACET_WHITESPACE = "whiteSpace";
51: }
|