Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.schema.facet
Class FacetEnumeration

    java.lang.Object
      com.bea.schema.SOMObject
          com.bea.schema.facet.SOMFacet
              com.bea.schema.facet.FacetEnumeration

All Implemented Interfaces:
  Serializable

public class FacetEnumeration
extends SOMFacet

enumeration constrains the value space to a specified set of values.

Version:
  1.0
Author:
  sharpe
See Also:
  Serialized Form

Field Summary

Fields inherited from class com.bea.schema.facet.SOMFacet
`duration, encoding, enumeration, fractionDigits, length, maxExclusive, maxInclusive, maxLength, minExclusive, minInclusive, minLength, pattern, period, precision, scale, totalDigits, whiteSpace`

Constructor Summary
`FacetEnumeration(String val)`

Method Summary
`boolean` | `containsValue(String value)` Tests if the specified value is an enumeration in this Facet.
`String` | `createDefault()`
`String` | `getID()` Returns a printable element tag for this Schema Object
`String` | `getValue()` valid values for the enumeration facet
`Iterator` | `getValues()` iterator over valid values for the enumeration facet
`void` | `setValue(String val)` Adds the enumeration value to the list of valid <enumeration> values.
`void` | `toXML(Writer rtn, int indent)` Outputs a formatted XML representation of SOMObject.

Methods inherited from class com.bea.schema.facet.SOMFacet
`getAttributes, getFacet, getFixed, getTagName, setFixed`

Methods inherited from class com.bea.schema.SOMObject
`addPrefixMapping, getContainmentXPath, getEffectivePrefixMappings, getID_UQ, getParent, getParentName, getParentSchema, getPrefixForTargetNamespace, getPrefixMapping, getTargetNamespace, getURIForPrefix, isCircularReference, isSchemaChild, msg, msg, removeNamespaceQualifier, removePrefixMapping, setIndent, setParent, setTargetNamespace, toString, toXML, toXML, toXML`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### FacetEnumeration

    public FacetEnumeration(String val)

Method Detail

### getID

    public String getID()

  Description copied from class: `SOMObject`
  Returns a printable element tag for this Schema Object

  Specified by:
    `getID` in class `SOMObject`
  Returns:
    String representation of the element tag

### getValue

    public String getValue()

  valid values for the enumeration facet

  Specified by:
    `getValue` in class `SOMFacet`
  Returns:
    A comma separated list of string values that represent the valid values for this enumeration facet.

### getValues

    public Iterator getValues()

  iterator over valid values for the enumeration facet

  Returns:
    iterator over valid value(s) (java.lang.String)

### containsValue

    public boolean containsValue(String value)

  Tests if the specified value is an enumeration in this Facet.

  Parameters:
    `value` - a String
  Returns:
    true if and only if the specified string exists in this facet, as determined by the equals method; false otherwise.

### setValue

    public void setValue(String val)

  Adds the enumeration value to the list of valid <enumeration> values.

  Specified by:
    `setValue` in class `SOMFacet`
  Parameters:
    `val` - new valid value for enumeration.

### toXML

    public void toXML(Writer rtn,
                      int indent)
               throws IOException

  Description copied from class: `SOMObject`
  Outputs a formatted XML representation of SOMObject.

  Overrides:
    `toXML` in class `SOMFacet`
  Throws:
    `IOException`

### createDefault

    public String createDefault()

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD