com.im.ijc.core/1 5.9.4

com.im.ijc.core.xml.beans
Class ColorPersister

java.lang.Object
  extended by com.im.df.api.util.xml.BasicPersister<Color>
      extended by com.im.ijc.core.xml.beans.ColorPersister
All Implemented Interfaces:
BasicPersisterInit, StateFactory, StateFactory.Reader, StateFactory.Writer, Cloneable

public class ColorPersister
extends BasicPersister<Color>

Persists a Color object. Can persist the object as an attribute, or as the element content.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.im.df.api.util.xml.StateFactory
StateFactory.EnvReporter, StateFactory.FinishableBean, StateFactory.Reader, StateFactory.Writer
 
Constructor Summary
ColorPersister()
           
 
Method Summary
 boolean isPrimitive(Class clazz)
          Serialize as an attribute
protected  Object readAttribute(Object prototype)
           
protected  Object readElement(Object prototype)
           
protected  void writeAttribute()
           
protected  void writeElement()
           
 
Methods inherited from class com.im.df.api.util.xml.BasicPersister
addError, canInstantiate, clearErrors, create, createAttribute, createElement, createInstance, createInstance, createLog, createReader, createState, createWriter, defaultReadBean, defaultWriteBean, enterElement, enterElement, getAttribute, getAttribute, getBean, getBeanClass, getBufferedErrors, getClass, getConfiguredQName, getContext, getCurrentClassLoader, getEnv, getNode, getPropertyValue, getQName, getStorage, getType, init, leaveElement, loadObject, popElement, pushElement, read, readAttr, readAttr, readAttr, readBeanProperties, readBeanProperty, readCollection, readCollection, readCollectionProperty, readMap, readMapProperty, readObjectPolymorphic, readObjectStatic, readPrimitiveProperty, setBean, setBeanClass, setClassBeanInfo, setContext, setEnv, setNode, setPropertyAttributes, setQName, setStorage, storeObject, throwWrappedIOException, throwWrappedIOException, write, write, write, writeArray, writeAttr, writeAttr, writeAttr, writeAttr, writeAttr, writeCollection, writeCollection, writeCollection, writeMap, writeMap, writeObject, writeObjectPolymorphic, writeObjectStatic, writeProperty, writeSuperclass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorPersister

public ColorPersister()
Method Detail

isPrimitive

public boolean isPrimitive(Class clazz)
Serialize as an attribute

Specified by:
isPrimitive in interface StateFactory
Overrides:
isPrimitive in class BasicPersister<Color>

readAttribute

protected Object readAttribute(Object prototype)
                        throws IOException
Overrides:
readAttribute in class BasicPersister<Color>
Throws:
IOException

readElement

protected Object readElement(Object prototype)
                      throws IOException
Overrides:
readElement in class BasicPersister<Color>
Throws:
IOException

writeAttribute

protected void writeAttribute()
                       throws IOException
Overrides:
writeAttribute in class BasicPersister<Color>
Throws:
IOException

writeElement

protected void writeElement()
                     throws IOException
Overrides:
writeElement in class BasicPersister<Color>
Throws:
IOException

com.im.ijc.core/1 5.9.4