Package com.im.df.api.util.xml
Interface IJCPersister
-
- All Known Implementing Classes:
BasicPersister
public interface IJCPersister
Definition of persisting IJC specific objects (DFItems, renderers, widgets, etc.) to XML.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
IJCPersister.FinishableBean
Deprecated.static interface
IJCPersister.Reader
static interface
IJCPersister.Writer
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IJCPersister.Reader
createReader(org.openide.util.Lookup context, java.lang.Class<?> expectedType, org.w3c.dom.Node parent, com.im.commons.progress.DFEnvironmentRO env)
Returns a reader instance for the parent and the prototype bean.IJCPersister.Writer
createWriter(org.openide.util.Lookup context, java.lang.Object bean, com.im.commons.progress.DFEnvironmentRO env)
Returns a writer instance for the bean.PersisterRegistry
getPersisterRegistry()
Get PersistentRegistry for creating child factories.javax.xml.namespace.QName
getQName(java.lang.Object bean)
java.lang.Class<?>
getType(org.w3c.dom.Node n)
boolean
isPrimitive(java.lang.Class<?> type)
void
setPersisterRegistry(PersisterRegistry persisterRegistry)
Set PersistentRegistry for creating child factories.
-
-
-
Method Detail
-
getType
java.lang.Class<?> getType(org.w3c.dom.Node n)
- Returns:
- The type of the bean to be deserialized
-
getQName
javax.xml.namespace.QName getQName(java.lang.Object bean)
- Returns:
- QName of the element to be created
-
isPrimitive
boolean isPrimitive(java.lang.Class<?> type)
- Returns:
- If true, the Factory is willing to write to an attribute
-
createWriter
IJCPersister.Writer createWriter(org.openide.util.Lookup context, java.lang.Object bean, com.im.commons.progress.DFEnvironmentRO env)
Returns a writer instance for the bean.
-
getPersisterRegistry
PersisterRegistry getPersisterRegistry()
Get PersistentRegistry for creating child factories.- Returns:
- persistent registry. If persistent registry is not set return PersistentRegistry.getDefault()
-
setPersisterRegistry
void setPersisterRegistry(PersisterRegistry persisterRegistry)
Set PersistentRegistry for creating child factories.- Parameters:
persisterRegistry
- default persistent registry
-
createReader
IJCPersister.Reader createReader(org.openide.util.Lookup context, java.lang.Class<?> expectedType, org.w3c.dom.Node parent, com.im.commons.progress.DFEnvironmentRO env)
Returns a reader instance for the parent and the prototype bean. Note that the prototype bean may be null.
-
-