org.apache.ws.jaxme.generator.sg

Interface Facet

Known Implementing Classes:
FacetImpl

public interface Facet

Author:
Jochen Wiedmann

Nested Class Summary

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.
String
getValue()
If the facet has the types MAX_EXCLUSIVE, MIN_EXCLUSIVE, MAX_INCLUSIVE, or MIN_INCLUSIVE: Returns the facet value.
String[]
getValues()
If the facet has the types ENUMERATION or PATTERN: Used to fetch the possible values.

Field Details

ENUMERATION

public static final Facet.Type ENUMERATION
The facet type enumeration. Use the method getValues() to query for the values.

FRACTION_DIGITS

public static final Facet.Type FRACTION_DIGITS
The facet type fractionDigits. Use the method getNumValue() to query for the values.

LENGTH

public static final Facet.Type LENGTH
The facet type length. Use the method getNumValue() to query for the values.

MAX_EXCLUSIVE

public static final Facet.Type MAX_EXCLUSIVE
The facet type maxExclusive. Use the method getValue() to query for the value.

MAX_INCLUSIVE

public static final Facet.Type MAX_INCLUSIVE
The facet type maxInclusive. Use the method getValue() to query for the value.

MAX_LENGTH

public static final Facet.Type MAX_LENGTH
The facet type maxLength. Use the method getNumValue() to query for the values.

MIN_EXCLUSIVE

public static final Facet.Type MIN_EXCLUSIVE
The facet type minExclusive. Use the method getValue() to query for the value.

MIN_INCLUSIVE

public static final Facet.Type MIN_INCLUSIVE
The facet type minInclusive. Use the method getValue() to query for the value.

MIN_LENGTH

public static final Facet.Type MIN_LENGTH
The facet type minLength. Use the method getNumValue() to query for the values.

PATTERN

public static final Facet.Type PATTERN
The facet type pattern. Use the method getValues() to query for the values.

TOTAL_DIGITS

public static final Facet.Type TOTAL_DIGITS
The facet type totalDigits. Use the method getNumValue() to query for the values.

Method Details

getNumValue

public long getNumValue()

getType

public Facet.Type getType()
Returns the facet type.

getValue

public String getValue()

getValues

public String[] getValues()
If the facet has the types ENUMERATION or PATTERN: Used to fetch the possible values.