com.jgraph.example.adapter
Class JGraphBusinessObject

java.lang.Object
  extended by com.jgraph.example.adapter.JGraphBusinessObject
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
JGraphSQLEntity

public class JGraphBusinessObject
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

Author:
Gaudenz Alder An object that represents an entity with an arbitrary set of properties.
See Also:
Serialized Form

Constructor Summary
JGraphBusinessObject()
           
JGraphBusinessObject(java.lang.Object userObject)
           
 
Method Summary
 java.lang.Object clone()
           
 java.util.Map getProperties()
           
 java.lang.Object getProperty(java.lang.Object key)
           
 java.lang.Object getValue()
           
 java.lang.String getValueKey()
           
 java.lang.Object putProperty(java.lang.Object key, java.lang.Object value)
           
 void setProperties(java.util.Map properties)
           
 void setValue(java.lang.Object value)
           
 void setValueKey(java.lang.String valueKey)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JGraphBusinessObject

public JGraphBusinessObject()

JGraphBusinessObject

public JGraphBusinessObject(java.lang.Object userObject)
Method Detail

getProperties

public java.util.Map getProperties()
Returns:
Returns the properties.

setProperties

public void setProperties(java.util.Map properties)
Parameters:
properties - The properties to set.

setValue

public void setValue(java.lang.Object value)

getValue

public java.lang.Object getValue()

getValueKey

public java.lang.String getValueKey()
Returns:
Returns the labelKey.

setValueKey

public void setValueKey(java.lang.String valueKey)
Parameters:
valueKey - The labelKey to set.

putProperty

public java.lang.Object putProperty(java.lang.Object key,
                                    java.lang.Object value)

getProperty

public java.lang.Object getProperty(java.lang.Object key)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object