public class NodePropertyTransport extends SingleParamTransport
After synchronization the server DOM element has the same attribute value as the client property counterpart. If the client property value is null the server element attribute will be removed too.
With or without synchronization the property value can be obtained
calling ItsNatEvent.getExtraParam(String)
ItsNatDocument.addEventListener(org.w3c.dom.events.EventTarget,String,org.w3c.dom.events.EventListener,boolean,int,ParamTransport[],String,long),
Serialized Form| Constructor and Description |
|---|
NodePropertyTransport(String name)
Creates a new instance ready to transport the node property with the specified name
and synchronize it at the server side as an attribute, the attribute name used is the same
as the property name.
|
NodePropertyTransport(String name,
boolean sync)
Creates a new instance ready to transport the node property with the specified name
and optionally synchronize it at the server side as an attribute, the attribute name used is the same
as the property name.
|
NodePropertyTransport(String name,
Class<?> type)
Creates a new instance ready to transport the node property with the specified name
and synchronize it at the server side as an attribute.
|
NodePropertyTransport(String name,
Class<?> type,
String javaSetMethodName)
Creates a new instance ready to transport the node property with the specified name
and synchronize it at the server side as an attribute.
|
NodePropertyTransport(String name,
String attName)
Creates a new instance ready to transport the node property with the specified name
and synchronize it at the server side as an attribute with the specified name.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrName()
Returns the attribute name.
|
String |
getJavaSetMethodName()
Returns the method name used to synchronize using reflection.
|
Class<?> |
getType()
Returns the class type of the property value when using reflection to synchronize.
|
getNameisSyncpublic NodePropertyTransport(String name)
name - the property name.public NodePropertyTransport(String name, boolean sync)
name - the property name.sync - if true the server is updated.public NodePropertyTransport(String name, String attName)
Use this constructor when the property name differs from the attribute name.
name - the property name.attName - the attribute name.public NodePropertyTransport(String name, Class<?> type)
For instance: if specified name is "value" and specified type is String,
the method called will be setValue(String)
name - the property name.type - the class type of the property.public NodePropertyTransport(String name, Class<?> type, String javaSetMethodName)
For instance: if specified method name is "setValue" and specified type is String,
the method called will be setValue(String)
name - the property name.type - the class type of the property.public String getAttrName()
public Class<?> getType()
public String getJavaSetMethodName()
Copyright © Innowhere Software, Jose Maria Arranz Santamaria.