public class Facet extends Annotated
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ENUMERATION |
static java.lang.String |
FRACTIONDIGITS |
static java.lang.String |
LENGTH |
static java.lang.String |
MAX_EXCLUSIVE |
static java.lang.String |
MAX_INCLUSIVE |
static java.lang.String |
MAX_LENGTH |
static java.lang.String |
MIN_EXCLUSIVE |
static java.lang.String |
MIN_INCLUSIVE |
static java.lang.String |
MIN_LENGTH |
static java.lang.String |
PATTERN |
static java.lang.String |
PRECISION |
static java.lang.String |
TOTALDIGITS |
static java.lang.String |
WHITESPACE |
ANNOTATION, ANYTYPE, APPINFO, ATTRIBUTE, ATTRIBUTE_GROUP, COMPLEX_CONTENT, COMPLEX_TYPE, DOCUMENTATION, ELEMENT, FACET, GROUP, IDENTITY_FIELD, IDENTITY_SELECTOR, KEY, KEYREF, LIST, MODELGROUP, MODELGROUP_REF, REDEFINE, SCHEMA, SIMPLE_CONTENT, SIMPLE_TYPE, UNION, UNIQUE, UNKNOWN, WILDCARD| Constructor and Description |
|---|
Facet(java.lang.String name,
java.lang.String value)
Creates a new Facet with the given name
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Returns the name of this Facet
|
short |
getStructureType()
Returns the type of this Schema Structure
|
java.lang.String |
getValue()
Returns the character (String) representation of this facet
|
boolean |
isMultivalued()
Returns true if this Facet can occur more than once, such
as the "enumeration" facet.
|
byte |
toByte()
Returns a byte representation of the value of this facet
|
double |
toDouble()
Returns a double representation of the value of this facet
|
float |
toFloat()
Returns a double representation of the value of this facet
|
int |
toInt()
Returns an int representation of the value of this facet
|
long |
toLong()
Returns a long representation of the value of this facet
|
short |
toShort()
Returns an short representation of the value of this facet
|
void |
validate()
Checks the validity of this Schema defintion.
|
addAnnotation, getAnnotations, removeAnnotationpublic static final java.lang.String ENUMERATION
public static final java.lang.String LENGTH
public static final java.lang.String PATTERN
public static final java.lang.String PRECISION
public static final java.lang.String MAX_EXCLUSIVE
public static final java.lang.String MAX_INCLUSIVE
public static final java.lang.String MIN_EXCLUSIVE
public static final java.lang.String MIN_INCLUSIVE
public static final java.lang.String MAX_LENGTH
public static final java.lang.String MIN_LENGTH
public static final java.lang.String WHITESPACE
public static final java.lang.String TOTALDIGITS
public static final java.lang.String FRACTIONDIGITS
public Facet(java.lang.String name,
java.lang.String value)
name - the name of the Facetvalue - the value of the Facetpublic java.lang.String getName()
public java.lang.String getValue()
public boolean isMultivalued()
public int toInt()
throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic long toLong()
throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic short toShort()
throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic float toFloat()
throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic double toDouble()
throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic byte toByte()
throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic short getStructureType()
getStructureType in class Structurepublic void validate()
throws ValidationException
validate in class StructureValidationException - when this Schema definition
is invalid.Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com