Package com.im.df.impl.xml
Class ColorPersister
- java.lang.Object
-
- com.im.df.api.util.xml.BasicPersister<Color>
-
- com.im.df.impl.xml.ColorPersister
-
- All Implemented Interfaces:
com.im.df.api.util.xml.BasicPersisterInit,com.im.df.api.util.xml.IJCPersister,com.im.df.api.util.xml.IJCPersister.Reader,com.im.df.api.util.xml.IJCPersister.Writer,Cloneable
public class ColorPersister extends com.im.df.api.util.xml.BasicPersister<Color>
Persists aColorobject. Can persist the object as an attribute, or as the element content.- Author:
- svata
-
-
Constructor Summary
Constructors Constructor Description ColorPersister()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisPrimitive(Class clazz)Serialize as an attributeprotected ObjectreadAttribute(Object prototype)protected ObjectreadElement(Object prototype)protected voidwriteAttribute()protected voidwriteElement()-
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, getPersisterRegistry, getPropertyValue, getQName, getStorage, getType, init, leaveElement, loadObject, popElement, pushElement, read, readAttr, readAttr, readAttr, readBeanProperties, readBeanProperty, readCollection, readCollection, readCollection, readCollectionProperty, readMap, readMapProperty, readObjectPolymorphic, readObjectStatic, readPrimitiveProperty, setBean, setBeanClass, setClassBeanInfo, setContext, setEnv, setNode, setPersisterRegistry, 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
-
-
-
-
Method Detail
-
isPrimitive
public boolean isPrimitive(Class clazz)
Serialize as an attribute- Specified by:
isPrimitivein interfacecom.im.df.api.util.xml.IJCPersister- Overrides:
isPrimitivein classcom.im.df.api.util.xml.BasicPersister<Color>
-
readAttribute
protected Object readAttribute(Object prototype) throws IOException
- Overrides:
readAttributein classcom.im.df.api.util.xml.BasicPersister<Color>- Throws:
IOException
-
readElement
protected Object readElement(Object prototype) throws IOException
- Overrides:
readElementin classcom.im.df.api.util.xml.BasicPersister<Color>- Throws:
IOException
-
writeAttribute
protected void writeAttribute() throws IOException- Overrides:
writeAttributein classcom.im.df.api.util.xml.BasicPersister<Color>- Throws:
IOException
-
writeElement
protected void writeElement() throws IOException- Overrides:
writeElementin classcom.im.df.api.util.xml.BasicPersister<Color>- Throws:
IOException
-
-