Package com.im.df.impl.xml
Class BoxedPrimitivePersister
- java.lang.Object
-
- com.im.df.impl.xml.BoxedPrimitivePersister
-
- 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
public class BoxedPrimitivePersister extends Object implements com.im.df.api.util.xml.IJCPersister, com.im.df.api.util.xml.BasicPersisterInit, com.im.df.api.util.xml.IJCPersister.Reader, com.im.df.api.util.xml.IJCPersister.Writer
This class persists the boxed primitive types from java.lang (java.util) package.- Author:
- svata
-
-
Constructor Summary
Constructors Constructor Description BoxedPrimitivePersister()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
create(Object o)
com.im.df.api.util.xml.IJCPersister.Reader
createReader(org.openide.util.Lookup context, Class<?> expected, Node parent, com.im.commons.progress.DFEnvironmentRO env)
com.im.df.api.util.xml.IJCPersister.Writer
createWriter(org.openide.util.Lookup context, Object bean, com.im.commons.progress.DFEnvironmentRO env)
com.im.df.api.util.xml.PersisterRegistry
getPersisterRegistry()
QName
getQName(Object bean)
Class<?>
getType(Node n)
com.im.df.api.util.xml.IJCPersister
init()
boolean
isPrimitive(Class<?> type)
Object
read(String name, Object bean)
void
setBeanClass(Class<?> clazz)
void
setClassBeanInfo(BeanInfo classBeanInfo)
void
setPersisterRegistry(com.im.df.api.util.xml.PersisterRegistry persisterRegistry)
void
setPropertyAttributes(Map<String,String> propertyAttributes)
void
setQName(QName qName)
Node
write(String name, Node output)
-
-
-
Method Detail
-
getPersisterRegistry
public com.im.df.api.util.xml.PersisterRegistry getPersisterRegistry()
- Specified by:
getPersisterRegistry
in interfacecom.im.df.api.util.xml.IJCPersister
-
setPersisterRegistry
public void setPersisterRegistry(com.im.df.api.util.xml.PersisterRegistry persisterRegistry)
- Specified by:
setPersisterRegistry
in interfacecom.im.df.api.util.xml.IJCPersister
-
init
public com.im.df.api.util.xml.IJCPersister init()
- Specified by:
init
in interfacecom.im.df.api.util.xml.BasicPersisterInit
-
setBeanClass
public void setBeanClass(Class<?> clazz) throws IntrospectionException
- Specified by:
setBeanClass
in interfacecom.im.df.api.util.xml.BasicPersisterInit
- Throws:
IntrospectionException
-
setClassBeanInfo
public void setClassBeanInfo(BeanInfo classBeanInfo)
- Specified by:
setClassBeanInfo
in interfacecom.im.df.api.util.xml.BasicPersisterInit
-
setPropertyAttributes
public void setPropertyAttributes(Map<String,String> propertyAttributes)
- Specified by:
setPropertyAttributes
in interfacecom.im.df.api.util.xml.BasicPersisterInit
-
setQName
public void setQName(QName qName)
- Specified by:
setQName
in interfacecom.im.df.api.util.xml.BasicPersisterInit
-
read
public Object read(String name, Object bean) throws IOException
- Specified by:
read
in interfacecom.im.df.api.util.xml.IJCPersister.Reader
- Throws:
IOException
-
create
public Object create(Object o)
- Specified by:
create
in interfacecom.im.df.api.util.xml.IJCPersister.Reader
-
write
public Node write(String name, Node output) throws IOException
- Specified by:
write
in interfacecom.im.df.api.util.xml.IJCPersister.Writer
- Throws:
IOException
-
getQName
public QName getQName(Object bean)
- Specified by:
getQName
in interfacecom.im.df.api.util.xml.IJCPersister
-
isPrimitive
public boolean isPrimitive(Class<?> type)
- Specified by:
isPrimitive
in interfacecom.im.df.api.util.xml.IJCPersister
-
getType
public Class<?> getType(Node n)
- Specified by:
getType
in interfacecom.im.df.api.util.xml.IJCPersister
-
createReader
public com.im.df.api.util.xml.IJCPersister.Reader createReader(org.openide.util.Lookup context, Class<?> expected, Node parent, com.im.commons.progress.DFEnvironmentRO env)
- Specified by:
createReader
in interfacecom.im.df.api.util.xml.IJCPersister
-
createWriter
public com.im.df.api.util.xml.IJCPersister.Writer createWriter(org.openide.util.Lookup context, Object bean, com.im.commons.progress.DFEnvironmentRO env)
- Specified by:
createWriter
in interfacecom.im.df.api.util.xml.IJCPersister
-
-