org.exolab.castor.xml.schema
Class Facet
- java.io.Serializable
Represents the base type for XML Schema Facets
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:31 $
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 |
Facet(String name, String value) - Creates a new Facet with the given name
|
String | getName() - Returns the name of this Facet
|
short | getStructureType() - Returns the type of this Schema Structure
|
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.
|
ENUMERATION
public static final String ENUMERATION
FRACTIONDIGITS
public static final String FRACTIONDIGITS
LENGTH
public static final String LENGTH
MAX_EXCLUSIVE
public static final String MAX_EXCLUSIVE
MAX_INCLUSIVE
public static final String MAX_INCLUSIVE
MAX_LENGTH
public static final String MAX_LENGTH
MIN_EXCLUSIVE
public static final String MIN_EXCLUSIVE
MIN_INCLUSIVE
public static final String MIN_INCLUSIVE
MIN_LENGTH
public static final String MIN_LENGTH
PATTERN
public static final String PATTERN
PRECISION
public static final String PRECISION
TOTALDIGITS
public static final String TOTALDIGITS
WHITESPACE
public static final String WHITESPACE
Facet
public Facet(String name,
String value)
Creates a new Facet with the given name
name
- the name of the Facetvalue
- the value of the Facet
getName
public String getName()
Returns the name of this Facet
getStructureType
public short getStructureType()
Returns the type of this Schema Structure
- getStructureType in interface Structure
- the type of this Schema Structure
getValue
public String getValue()
Returns the character (String) representation of this facet
isMultivalued
public boolean isMultivalued()
Returns true if this Facet can occur more than once, such
as the "enumeration" facet.
- true if this Facet can occur more than once.
toByte
public byte toByte()
throws NumberFormatException
Returns a byte representation of the value of this facet
- a byte representation of the value of this facet
toDouble
public double toDouble()
throws NumberFormatException
Returns a double representation of the value of this facet
- a double representation of the value of this facet
toFloat
public float toFloat()
throws NumberFormatException
Returns a double representation of the value of this facet
- a double representation of the value of this facet
toInt
public int toInt()
throws NumberFormatException
Returns an int representation of the value of this facet
- an int representation of the value of this facet
toLong
public long toLong()
throws NumberFormatException
Returns a long representation of the value of this facet
- a long representation of the value of this facet
toShort
public short toShort()
throws NumberFormatException
Returns an short representation of the value of this facet
- an short representation of the value of this facet
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com