biz.c24.io.api.data
Class IOContext

java.lang.Object
  extended by biz.c24.io.api.data.IOContext
All Implemented Interfaces:
Comparable

public class IOContext
extends Object
implements Comparable

A cursor used to interogate an object hierarchy. DO NOT USE - this class will be changed in a future release.


Constructor Summary
IOContext()
          Constructs a new empty instance.
IOContext(ComplexDataObject obj)
          Constructs a new instance from the supplied object.
IOContext(ComplexDataObject parent, Object instance, DataComponent component)
          Constructs a new instance.
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object obj)
           
 DataComponent getComponent()
          Returns the component.
 Object getInstance()
          Returns the instance.
 ComplexDataObject getParent()
          Returns the parent.
 int hashCode()
           
 void setComponent(DataComponent component)
          Sets the component.
 void setInstance(Object instance)
          Sets the instane.
 void setParent(ComplexDataObject parent)
          Sets the parent.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IOContext

public IOContext()
Constructs a new empty instance.


IOContext

public IOContext(ComplexDataObject obj)
Constructs a new instance from the supplied object.

Parameters:
obj - The object to wrap.

IOContext

public IOContext(ComplexDataObject parent,
                 Object instance,
                 DataComponent component)
Constructs a new instance.

Parameters:
parent - The parent object.
instance - The data itself.
component - An element / attribute within the parent.
Method Detail

getParent

public ComplexDataObject getParent()
Returns the parent.

Returns:
The parent.

getInstance

public Object getInstance()
Returns the instance.

Returns:
The instance.

getComponent

public DataComponent getComponent()
Returns the component.

Returns:
The component.

setParent

public void setParent(ComplexDataObject parent)
Sets the parent.

Parameters:
parent - The new parent.

setInstance

public void setInstance(Object instance)
Sets the instane.

Parameters:
instance - The new instance.

setComponent

public void setComponent(DataComponent component)
Sets the component.

Parameters:
component - The new component.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable


C24 Technologies © 2002-2012: All Rights Reserved.