org.apache.cxf.aegis.type.java5
Class EnumType

java.lang.Object
  extended by org.apache.cxf.aegis.type.Type
      extended by org.apache.cxf.aegis.type.java5.EnumType

public class EnumType
extends Type


Field Summary
 
Fields inherited from class org.apache.cxf.aegis.type.Type
typeClass
 
Constructor Summary
EnumType()
           
 
Method Summary
 boolean isComplex()
           
 java.lang.Object readObject(MessageReader reader, Context context)
          Read in the XML fragment and create an object.
 void setTypeClass(java.lang.Class typeClass)
           
 void writeObject(java.lang.Object object, MessageWriter writer, Context context)
          Writes the object to the MessageWriter.
 void writeSchema(org.jdom.Element root)
          If this type should correspond to a global, named, schema type, here is where the type object adds it to the schema.
 
Methods inherited from class org.apache.cxf.aegis.type.Type
addToSchemaElement, equals, getDependencies, getMaxOccurs, getMinOccurs, getSchemaType, getTypeClass, getTypeMapping, hashCode, hasMaxOccurs, hasMinOccurs, isAbstract, isNillable, isWriteOuter, setAbstract, setNillable, setSchemaType, setTypeMapping, setWriteOuter, toString, usesUtilityTypes, usesXmime
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnumType

public EnumType()
Method Detail

readObject

public java.lang.Object readObject(MessageReader reader,
                                   Context context)
Description copied from class: Type
Read in the XML fragment and create an object.

Specified by:
readObject in class Type
Returns:

writeObject

public void writeObject(java.lang.Object object,
                        MessageWriter writer,
                        Context context)
Description copied from class: Type
Writes the object to the MessageWriter.

Specified by:
writeObject in class Type

setTypeClass

public void setTypeClass(java.lang.Class typeClass)
Overrides:
setTypeClass in class Type
Parameters:
typeClass - The typeClass to set.

writeSchema

public void writeSchema(org.jdom.Element root)
Description copied from class: Type
If this type should correspond to a global, named, schema type, here is where the type object adds it to the schema.

Overrides:
writeSchema in class Type
Parameters:
root - root of the XSD document.

isComplex

public boolean isComplex()
Overrides:
isComplex in class Type
Returns:
True if a complex type schema must be written.


Apache CXF