org.apache.ws.jaxme.generator.sg

Interface Facet

public interface Facet

Author: Jochen Wiedmann

Nested Class Summary
static classFacet.Type
Field Summary
static Facet.TypeENUMERATION

The facet type enumeration.

static Facet.TypeFRACTION_DIGITS

The facet type fractionDigits.

static Facet.TypeLENGTH

The facet type length.

static Facet.TypeMAX_EXCLUSIVE

The facet type maxExclusive.

static Facet.TypeMAX_INCLUSIVE

The facet type maxInclusive.

static Facet.TypeMAX_LENGTH

The facet type maxLength.

static Facet.TypeMIN_EXCLUSIVE

The facet type minExclusive.

static Facet.TypeMIN_INCLUSIVE

The facet type minInclusive.

static Facet.TypeMIN_LENGTH

The facet type minLength.

static Facet.TypePATTERN

The facet type pattern.

static Facet.TypeTOTAL_DIGITS

The facet type totalDigits.

Method Summary
longgetNumValue()

If the facet has the types {@link #FRACTION_DIGITS} or {@link #TOTAL_DIGITS}: Returns the facet value.

Facet.TypegetType()

Returns the facet type.

StringgetValue()

If the facet has the types {@link #MAX_EXCLUSIVE}, {@link #MIN_EXCLUSIVE}, {@link #MAX_INCLUSIVE}, or {@link #MIN_INCLUSIVE}: Returns the facet value.

String[]getValues()

If the facet has the types {@link #ENUMERATION} or {@link #PATTERN}: Used to fetch the possible values.

Field Detail

ENUMERATION

public static final Facet.Type ENUMERATION

The facet type enumeration. Use the method {@link #getValues} to query for the values.

FRACTION_DIGITS

public static final Facet.Type FRACTION_DIGITS

The facet type fractionDigits. Use the method {@link #getNumValue} to query for the values.

LENGTH

public static final Facet.Type LENGTH

The facet type length. Use the method {@link #getNumValue} to query for the values.

MAX_EXCLUSIVE

public static final Facet.Type MAX_EXCLUSIVE

The facet type maxExclusive. Use the method {@link #getValue} to query for the value.

MAX_INCLUSIVE

public static final Facet.Type MAX_INCLUSIVE

The facet type maxInclusive. Use the method {@link #getValue} to query for the value.

MAX_LENGTH

public static final Facet.Type MAX_LENGTH

The facet type maxLength. Use the method {@link #getNumValue} to query for the values.

MIN_EXCLUSIVE

public static final Facet.Type MIN_EXCLUSIVE

The facet type minExclusive. Use the method {@link #getValue} to query for the value.

MIN_INCLUSIVE

public static final Facet.Type MIN_INCLUSIVE

The facet type minInclusive. Use the method {@link #getValue} to query for the value.

MIN_LENGTH

public static final Facet.Type MIN_LENGTH

The facet type minLength. Use the method {@link #getNumValue} to query for the values.

PATTERN

public static final Facet.Type PATTERN

The facet type pattern. Use the method {@link #getValues} to query for the values.

TOTAL_DIGITS

public static final Facet.Type TOTAL_DIGITS

The facet type totalDigits. Use the method {@link #getNumValue} to query for the values.

Method Detail

getNumValue

public long getNumValue()

If the facet has the types {@link #FRACTION_DIGITS} or {@link #TOTAL_DIGITS}: Returns the facet value.

getType

public Facet.Type getType()

Returns the facet type.

getValue

public String getValue()

If the facet has the types {@link #MAX_EXCLUSIVE}, {@link #MIN_EXCLUSIVE}, {@link #MAX_INCLUSIVE}, or {@link #MIN_INCLUSIVE}: Returns the facet value.

getValues

public String[] getValues()

If the facet has the types {@link #ENUMERATION} or {@link #PATTERN}: Used to fetch the possible values.