public class RichXMLFactory.FORMATAddon<A extends IAddon> extends RichXMLFactory.GenericAddon<A>
Constructor and Description |
---|
FORMATAddon() |
Modifier and Type | Method and Description |
---|---|
protected List<? extends MFormatAccessor.Argument> |
getArguments(A addon) |
String |
getImplementationId()
Null for generic implem.
|
protected void |
handleReadAttr(A addon,
Node node,
Node attr) |
protected void |
handleWriteAttribute(Outer os,
A addon,
PersistantPropertyInfo property,
Object propertyValue,
String defaultValue) |
protected boolean |
isWriteAsAttribute(PersistantPropertyInfo property,
Object propertyValue)
Does value should be writen as node ?
|
protected boolean |
isWriteAsNode(PersistantPropertyInfo property,
Object propertyValue)
Does value should be writen as attribute?
|
protected MFormatAccessor.Argument |
newArgumentInstance(String attrName,
IReadAccessor argValue)
Instantiate a new argument.
|
void |
writePersistantObject(Outer os,
String property,
Object propertyValue) |
afterWriteChildren, beforeCloseNoChild, beforeWriteChildren, handleReadAttributes, handleReadChildNodes, handleReadNode, handleWriteNode, injectIntoProperty, read, readPersistantObject, write, write
protected void handleReadAttr(A addon, Node node, Node attr) throws XMLMConfigurationException
handleReadAttr
in class RichXMLFactory.GenericAddon<A extends IAddon>
XMLMConfigurationException
protected MFormatAccessor.Argument newArgumentInstance(String attrName, IReadAccessor argValue)
protected List<? extends MFormatAccessor.Argument> getArguments(A addon)
protected boolean isWriteAsAttribute(PersistantPropertyInfo property, Object propertyValue) throws XMLMConfigurationException, MRuleInternalException
RichXMLFactory.GenericAddon
isWriteAsAttribute
in class RichXMLFactory.GenericAddon<A extends IAddon>
property
- property info. might be null.propertyValue
- corresponding property value. might be null.XMLMConfigurationException
MRuleInternalException
RichXMLFactory.GenericAddon.isWriteAsNode(PersistantPropertyInfo, Object)
protected boolean isWriteAsNode(PersistantPropertyInfo property, Object propertyValue) throws XMLMConfigurationException, MRuleInternalException
RichXMLFactory.GenericAddon
isWriteAsNode
in class RichXMLFactory.GenericAddon<A extends IAddon>
property
- property info. might be null.propertyValue
- corresponding property value. might be null.XMLMConfigurationException
MRuleInternalException
RichXMLFactory.GenericAddon.isWriteAsAttribute(PersistantPropertyInfo, Object)
protected void handleWriteAttribute(Outer os, A addon, PersistantPropertyInfo property, Object propertyValue, String defaultValue) throws XMLMConfigurationException, IOException
handleWriteAttribute
in class RichXMLFactory.GenericAddon<A extends IAddon>
XMLMConfigurationException
IOException
public void writePersistantObject(Outer os, String property, Object propertyValue) throws XMLMConfigurationException, IOException
writePersistantObject
in class RichXMLFactory.GenericAddon<A extends IAddon>
XMLMConfigurationException
IOException
public String getImplementationId()
RichXMLFactory.GenericAddon
getImplementationId
in interface RichXMLFactory.RichSubFactory<A extends IAddon>
getImplementationId
in class RichXMLFactory.GenericAddon<A extends IAddon>