|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.openmedia.protocol.openmediaattributes.OpenMediaAttributesBinding
public final class OpenMediaAttributesBinding
Class contains functionality for marshaling/unmarshaling data between key value collection and appropriate object of predefined class. Predefined classes are generating according to protocol description.
Nested Class Summary | |
---|---|
static class |
OpenMediaAttributesBinding.KVBindingException
|
Method Summary | |
---|---|
static KeyValueCollection |
marshal(InteractionAttributes obj)
|
static KeyValueCollection |
marshal(java.lang.Object obj)
Marshal data from object of predefined class to key value collection. |
static KeyValueCollection |
marshal(WorkbinStatisticDetails obj)
|
static KeyValueCollection |
marshal(WorkbinTypeDetails obj)
|
static java.lang.String |
resolve(KeyValueCollection list)
Resolve predefined class name according to key value collection Predefined classes are generating according to protocol description. |
static boolean |
setProperty(InteractionAttributes obj,
java.lang.String name,
java.lang.Object value)
Set property by name |
static boolean |
setProperty(WorkbinStatisticDetails obj,
java.lang.String name,
java.lang.Object value)
Set property by name |
static boolean |
setProperty(WorkbinTypeDetails obj,
java.lang.String name,
java.lang.Object value)
Set property by name |
static java.lang.Object |
unmarshal(KeyValueCollection kvlist)
Actually will be called unmarshal(resolve(kvlist), kvlist). |
static java.lang.Object |
unmarshal(java.lang.String className,
KeyValueCollection kvlist)
Unmarshal data from key value collection to appropriate object of predefined class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static KeyValueCollection marshal(java.lang.Object obj) throws OpenMediaAttributesBinding.KVBindingException
obj
- object for which must be generated according key value collection that will be represent it data
OpenMediaAttributesBinding.KVBindingException
public static java.lang.Object unmarshal(KeyValueCollection kvlist) throws OpenMediaAttributesBinding.KVBindingException
kvlist
- key value collection for which must be generated appropriate object of predefined class
OpenMediaAttributesBinding.KVBindingException
public static java.lang.Object unmarshal(java.lang.String className, KeyValueCollection kvlist) throws OpenMediaAttributesBinding.KVBindingException
className
- name of predefined class used as tergat for binding.kvlist
- key value collection for which must be generated appropriate object of predefined class
OpenMediaAttributesBinding.KVBindingException
public static java.lang.String resolve(KeyValueCollection list)
KeyValueCollection
- key value collection for which must be resolved predefined class name
public static KeyValueCollection marshal(WorkbinTypeDetails obj) throws OpenMediaAttributesBinding.KVBindingException
OpenMediaAttributesBinding.KVBindingException
public static boolean setProperty(WorkbinTypeDetails obj, java.lang.String name, java.lang.Object value) throws java.lang.ClassCastException
obj
- object in which will be set propertyname
- property name to setvalue
- new property value
java.lang.ClassCastException
public static KeyValueCollection marshal(WorkbinStatisticDetails obj) throws OpenMediaAttributesBinding.KVBindingException
OpenMediaAttributesBinding.KVBindingException
public static boolean setProperty(WorkbinStatisticDetails obj, java.lang.String name, java.lang.Object value) throws java.lang.ClassCastException
obj
- object in which will be set propertyname
- property name to setvalue
- new property value
java.lang.ClassCastException
public static KeyValueCollection marshal(InteractionAttributes obj) throws OpenMediaAttributesBinding.KVBindingException
OpenMediaAttributesBinding.KVBindingException
public static boolean setProperty(InteractionAttributes obj, java.lang.String name, java.lang.Object value) throws java.lang.ClassCastException
obj
- object in which will be set propertyname
- property name to setvalue
- new property value
java.lang.ClassCastException
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |