org.apache.ws.jaxme.generator.sg
Interface Facet

All Known Implementing Classes:
FacetImpl

public interface Facet

Author:
Jochen Wiedmann

Nested Class Summary
static class Facet.Type
           
 
Field Summary
static Facet.Type ENUMERATION
          The facet type enumeration.
static Facet.Type FRACTION_DIGITS
          The facet type fractionDigits.
static Facet.Type LENGTH
          The facet type length.
static Facet.Type MAX_EXCLUSIVE
          The facet type maxExclusive.
static Facet.Type MAX_INCLUSIVE
          The facet type maxInclusive.
static Facet.Type MAX_LENGTH
          The facet type maxLength.
static Facet.Type MIN_EXCLUSIVE
          The facet type minExclusive.
static Facet.Type MIN_INCLUSIVE
          The facet type minInclusive.
static Facet.Type MIN_LENGTH
          The facet type minLength.
static Facet.Type PATTERN
          The facet type pattern.
static Facet.Type TOTAL_DIGITS
          The facet type totalDigits.
 
Method Summary
 long getNumValue()
          If the facet has the types FRACTION_DIGITS or TOTAL_DIGITS: Returns the facet value.
 Facet.Type getType()
          Returns the facet type.
 java.lang.String getValue()
          If the facet has the types MAX_EXCLUSIVE, MIN_EXCLUSIVE, MAX_INCLUSIVE, or MIN_INCLUSIVE: Returns the facet value.
 java.lang.String[] getValues()
          If the facet has the types ENUMERATION or PATTERN: Used to fetch the possible values.
 

Field Detail

ENUMERATION

static final Facet.Type ENUMERATION

The facet type enumeration. Use the method getValues() to query for the values.


FRACTION_DIGITS

static final Facet.Type FRACTION_DIGITS

The facet type fractionDigits. Use the method getNumValue() to query for the values.


LENGTH

static final Facet.Type LENGTH

The facet type length. Use the method getNumValue() to query for the values.


MAX_LENGTH

static final Facet.Type MAX_LENGTH

The facet type maxLength. Use the method getNumValue() to query for the values.


MAX_EXCLUSIVE

static final Facet.Type MAX_EXCLUSIVE

The facet type maxExclusive. Use the method getValue() to query for the value.


MAX_INCLUSIVE

static final Facet.Type MAX_INCLUSIVE

The facet type maxInclusive. Use the method getValue() to query for the value.


MIN_LENGTH

static final Facet.Type MIN_LENGTH

The facet type minLength. Use the method getNumValue() to query for the values.


MIN_EXCLUSIVE

static final Facet.Type MIN_EXCLUSIVE

The facet type minExclusive. Use the method getValue() to query for the value.


MIN_INCLUSIVE

static final Facet.Type MIN_INCLUSIVE

The facet type minInclusive. Use the method getValue() to query for the value.


PATTERN

static final Facet.Type PATTERN

The facet type pattern. Use the method getValues() to query for the values.


TOTAL_DIGITS

static final Facet.Type TOTAL_DIGITS

The facet type totalDigits. Use the method getNumValue() to query for the values.

Method Detail

getType

Facet.Type getType()

Returns the facet type.


getValues

java.lang.String[] getValues()

If the facet has the types ENUMERATION or PATTERN: Used to fetch the possible values.


getValue

java.lang.String getValue()

If the facet has the types MAX_EXCLUSIVE, MIN_EXCLUSIVE, MAX_INCLUSIVE, or MIN_INCLUSIVE: Returns the facet value.


getNumValue

long getNumValue()

If the facet has the types FRACTION_DIGITS or TOTAL_DIGITS: Returns the facet value.