Public Member Functions | Static Public Attributes

org.exolab.castor.xml.schema.Facet Class Reference

Inheritance diagram for org.exolab.castor.xml.schema.Facet:
org.exolab.castor.xml.schema.Annotated org.exolab.castor.xml.schema.Structure

List of all members.

Public Member Functions

 Facet (String name, String value)
String getName ()
String getValue ()
boolean isMultivalued ()
int toInt () throws NumberFormatException
long toLong () throws NumberFormatException
short toShort () throws NumberFormatException
float toFloat () throws NumberFormatException
double toDouble () throws NumberFormatException
byte toByte () throws NumberFormatException
short getStructureType ()
void validate () throws ValidationException

Static Public Attributes

static final String ENUMERATION = "enumeration"
static final String LENGTH = "length"
static final String PATTERN = "pattern"
static final String PRECISION = "precision"
static final String MAX_EXCLUSIVE = "maxExclusive"
static final String MAX_INCLUSIVE = "maxInclusive"
static final String MIN_EXCLUSIVE = "minExclusive"
static final String MIN_INCLUSIVE = "minInclusive"
static final String MAX_LENGTH = "maxLength"
static final String MIN_LENGTH = "minLength"
static final String WHITESPACE = "whiteSpace"
static final String TOTALDIGITS = "totalDigits"
static final String FRACTIONDIGITS = "fractionDigits"

Detailed Description

Represents the base type for XML Schema Facets

Author:
Keith Visco
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:09:31

Constructor & Destructor Documentation

org.exolab.castor.xml.schema.Facet.Facet ( String  name,
String  value 
)

Creates a new Facet with the given name

Parameters:
name the name of the Facet
value the value of the Facet

Member Function Documentation

String org.exolab.castor.xml.schema.Facet.getName (  ) 

Returns the name of this Facet

Returns:
the name of this Facet

Referenced by org.exolab.castor.xml.schema.SimpleType.addFacet(), org.exolab.castor.xml.schema.FacetList.contains(), org.exolab.castor.builder.types.XSType.getFacets(), org.exolab.castor.xml.schema.SchemaNames.getStructureName(), org.exolab.castor.xml.schema.SimpleType.hasFacet(), org.exolab.castor.xml.schema.FacetListEnumerator.hasMoreElements(), org.exolab.castor.xml.schema.FacetListEnumerator.nextElement(), org.exolab.castor.xml.schema.SimpleType.removeFacet(), org.exolab.castor.builder.types.XSTime.setFacets(), org.exolab.castor.builder.types.XSString.setFacets(), org.exolab.castor.builder.types.XSShort.setFacets(), org.exolab.castor.builder.types.XSQName.setFacets(), org.exolab.castor.builder.types.XSNormalizedString.setFacets(), org.exolab.castor.builder.types.XSLong.setFacets(), org.exolab.castor.builder.types.XSInteger.setFacets(), org.exolab.castor.builder.types.XSInt.setFacets(), org.exolab.castor.builder.types.XSGYearMonth.setFacets(), org.exolab.castor.builder.types.XSGYear.setFacets(), org.exolab.castor.builder.types.XSGMonthDay.setFacets(), org.exolab.castor.builder.types.XSGMonth.setFacets(), org.exolab.castor.builder.types.XSGDay.setFacets(), org.exolab.castor.builder.types.XSFloat.setFacets(), org.exolab.castor.builder.types.XSDuration.setFacets(), org.exolab.castor.builder.types.XSDouble.setFacets(), org.exolab.castor.builder.types.XSDecimal.setFacets(), org.exolab.castor.builder.types.XSDate.setFacets(), and org.exolab.castor.builder.types.XSByte.setFacets().

short org.exolab.castor.xml.schema.Facet.getStructureType (  )  [virtual]

Returns the type of this Schema Structure

Returns:
the type of this Schema Structure

Implements org.exolab.castor.xml.schema.Structure.

boolean org.exolab.castor.xml.schema.Facet.isMultivalued (  ) 

Returns true if this Facet can occur more than once, such as the "enumeration" facet.

Returns:
true if this Facet can occur more than once.
byte org.exolab.castor.xml.schema.Facet.toByte (  )  throws NumberFormatException

Returns a byte representation of the value of this facet

Returns:
a byte representation of the value of this facet

Referenced by org.exolab.castor.builder.types.XSByte.setFacets().

double org.exolab.castor.xml.schema.Facet.toDouble (  )  throws NumberFormatException

Returns a double representation of the value of this facet

Returns:
a double representation of the value of this facet

Referenced by org.exolab.castor.builder.types.XSDouble.setFacets().

float org.exolab.castor.xml.schema.Facet.toFloat (  )  throws NumberFormatException

Returns a double representation of the value of this facet

Returns:
a double representation of the value of this facet

Referenced by org.exolab.castor.builder.types.XSFloat.setFacets().

int org.exolab.castor.xml.schema.Facet.toInt (  )  throws NumberFormatException
long org.exolab.castor.xml.schema.Facet.toLong (  )  throws NumberFormatException

Returns a long representation of the value of this facet

Returns:
a long representation of the value of this facet

Referenced by org.exolab.castor.xml.schema.SimpleType.getLength(), org.exolab.castor.xml.schema.SimpleType.getMaxLength(), org.exolab.castor.xml.schema.SimpleType.getMinLength(), and org.exolab.castor.builder.types.XSLong.setFacets().

short org.exolab.castor.xml.schema.Facet.toShort (  )  throws NumberFormatException

Returns an short representation of the value of this facet

Returns:
an short representation of the value of this facet

Referenced by org.exolab.castor.builder.types.XSShort.setFacets().

void org.exolab.castor.xml.schema.Facet.validate (  )  throws ValidationException [virtual]

Checks the validity of this Schema defintion.

Exceptions:
ValidationException when this Schema definition is invalid.

Implements org.exolab.castor.xml.schema.Structure.


Member Data Documentation

final String org.exolab.castor.xml.schema.Facet.ENUMERATION = "enumeration" [static]
final String org.exolab.castor.xml.schema.Facet.FRACTIONDIGITS = "fractionDigits" [static]
final String org.exolab.castor.xml.schema.Facet.LENGTH = "length" [static]
final String org.exolab.castor.xml.schema.Facet.MAX_EXCLUSIVE = "maxExclusive" [static]
final String org.exolab.castor.xml.schema.Facet.MAX_INCLUSIVE = "maxInclusive" [static]
final String org.exolab.castor.xml.schema.Facet.MAX_LENGTH = "maxLength" [static]
final String org.exolab.castor.xml.schema.Facet.MIN_EXCLUSIVE = "minExclusive" [static]
final String org.exolab.castor.xml.schema.Facet.MIN_INCLUSIVE = "minInclusive" [static]
final String org.exolab.castor.xml.schema.Facet.MIN_LENGTH = "minLength" [static]
final String org.exolab.castor.xml.schema.Facet.PATTERN = "pattern" [static]
final String org.exolab.castor.xml.schema.Facet.PRECISION = "precision" [static]
final String org.exolab.castor.xml.schema.Facet.TOTALDIGITS = "totalDigits" [static]
final String org.exolab.castor.xml.schema.Facet.WHITESPACE = "whiteSpace" [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties