org.idoox.xml.schema
Class Facet.Enumeration

java.lang.Object
  extended byorg.idoox.xml.schema.Facet
      extended byorg.idoox.xml.schema.Facet.Enumeration
Enclosing class:
Facet

public static class Facet.Enumeration
extends Facet

This class represents the enumeration XML Schema facet.

Since:
4.7

Nested Class Summary
 
Nested classes inherited from class org.idoox.xml.schema.Facet
Facet.Enumeration, Facet.FacetEnum, Facet.FixableFacet, Facet.FractionDigits, Facet.Length, Facet.MaxExclusive, Facet.MaxInclusive, Facet.MaxLength, Facet.MinExclusive, Facet.MinInclusive, Facet.MinLength, Facet.Pattern, Facet.TotalDigits, Facet.WhiteSpace
 
Field Summary
static java.lang.String NAME
          Local name of this facet as it is printed and recognized in xml stream.
 
Fields inherited from class org.idoox.xml.schema.Facet
name, value
 
Constructor Summary
Facet.Enumeration(java.lang.String value, java.lang.String javaName)
          Creates a new enumeration facet representation.
 
Method Summary
 java.lang.String getJavaName()
          Returns java name into which to map this enumeration value.
 void setJavaName(java.lang.String javaName)
          Sets java name into which to map this enumeration value.
 java.lang.String toString()
          Returns stringified representation of this facet.
protected  void writeInnerXMLContent(TokenWriter writer)
          Customized routine writing also the inner content - java field associated with this enumeration value.
 
Methods inherited from class org.idoox.xml.schema.Facet
equals, getName, getValue, hashCode, writeAsXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
Local name of this facet as it is printed and recognized in xml stream.

See Also:
Constant Field Values
Constructor Detail

Facet.Enumeration

public Facet.Enumeration(java.lang.String value,
                         java.lang.String javaName)
                  throws SchemaException
Creates a new enumeration facet representation.

Parameters:
value - lexical value of the facet
javaName - (optional) name of the java field on to which to map this enumeration
Method Detail

writeInnerXMLContent

protected void writeInnerXMLContent(TokenWriter writer)
                             throws java.io.IOException
Customized routine writing also the inner content - java field associated with this enumeration value.

Overrides:
writeInnerXMLContent in class Facet
Parameters:
writer - writer to use
Throws:
java.io.IOException - no comment

getJavaName

public java.lang.String getJavaName()
Returns java name into which to map this enumeration value.


toString

public java.lang.String toString()
Returns stringified representation of this facet.

Overrides:
toString in class Facet
Returns:

setJavaName

public void setJavaName(java.lang.String javaName)
Sets java name into which to map this enumeration value.