org.exolab.castor.xml.schema
public class Facet extends Annotated
Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:31 $
| Field Summary | |
|---|---|
| static String | ENUMERATION |
| static String | FRACTIONDIGITS |
| static String | LENGTH |
| static String | MAX_EXCLUSIVE |
| static String | MAX_INCLUSIVE |
| static String | MAX_LENGTH |
| static String | MIN_EXCLUSIVE |
| static String | MIN_INCLUSIVE |
| static String | MIN_LENGTH |
| static String | PATTERN |
| static String | PRECISION |
| static String | TOTALDIGITS |
| static String | WHITESPACE |
| Constructor Summary | |
|---|---|
| Facet(String name, String value)
Creates a new Facet with the given name | |
| Method Summary | |
|---|---|
| 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. |
Parameters: name the name of the Facet value the value of the Facet
Returns: the name of this Facet
Returns: the type of this Schema Structure
Returns: the value of this facet
Returns: true if this Facet can occur more than once.
Returns: a byte representation of the value of this facet
Returns: a double representation of the value of this facet
Returns: a double representation of the value of this facet
Returns: an int representation of the value of this facet
Returns: a long representation of the value of this facet
Returns: an short representation of the value of this facet
Throws: ValidationException when this Schema definition is invalid.