org.apache.ws.jaxme.generator.sg.impl
Class FacetImpl

java.lang.Object
  extended by org.apache.ws.jaxme.generator.sg.impl.FacetImpl
All Implemented Interfaces:
Facet

public class FacetImpl
extends java.lang.Object
implements Facet

Author:
Jochen Wiedmann

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.ws.jaxme.generator.sg.Facet
Facet.Type
 
Field Summary
 
Fields inherited from interface org.apache.ws.jaxme.generator.sg.Facet
ENUMERATION, FRACTION_DIGITS, LENGTH, MAX_EXCLUSIVE, MAX_INCLUSIVE, MAX_LENGTH, MIN_EXCLUSIVE, MIN_INCLUSIVE, MIN_LENGTH, PATTERN, TOTAL_DIGITS
 
Constructor Summary
FacetImpl(XSType pType, XSEnumeration[] pEnumerations)
          Creates a new enumeration facet.
 
Method Summary
 long getNumValue()
          If the facet has the types Facet.FRACTION_DIGITS or Facet.TOTAL_DIGITS: Returns the facet value.
 Facet.Type getType()
          Returns the facet type.
 java.lang.String getValue()
          If the facet has the types Facet.MAX_EXCLUSIVE, Facet.MIN_EXCLUSIVE, Facet.MAX_INCLUSIVE, or Facet.MIN_INCLUSIVE: Returns the facet value.
 java.lang.String[] getValues()
          If the facet has the types Facet.ENUMERATION or Facet.PATTERN: Used to fetch the possible values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacetImpl

public FacetImpl(XSType pType,
                 XSEnumeration[] pEnumerations)

Creates a new enumeration facet.

Method Detail

getType

public Facet.Type getType()
Description copied from interface: Facet

Returns the facet type.

Specified by:
getType in interface Facet

getValues

public java.lang.String[] getValues()
Description copied from interface: Facet

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

Specified by:
getValues in interface Facet

getValue

public java.lang.String getValue()
Description copied from interface: Facet

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

Specified by:
getValue in interface Facet

getNumValue

public long getNumValue()
Description copied from interface: Facet

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

Specified by:
getNumValue in interface Facet