org.indi.objects
Class Object<T extends Object>

java.lang.Object
  extended by org.indi.objects.Object<T>
Type Parameters:
T - the things the object is composed of.
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Element, Message, Vector

public abstract class Object<T extends Object>
extends java.lang.Object
implements java.io.Serializable

the based class of a indi objects. implements composite pattern to accomodate more indi objects

Author:
Dirk Hünniger
See Also:
Serialized Form

Field Summary
protected  java.util.Collection<T> children
           
protected  java.lang.String message
          the message associated with this object
protected  TransferType transferType
          the transfertype used to transfer this object
 
Method Summary
 boolean equals(java.lang.Object o)
           
protected  java.util.Collection<T> getChildren()
           
 java.lang.String getMessage()
           
 TransferType getTransferType()
           
 java.lang.String getXML(TransferType type, java.lang.String Message)
          return an XML representation of this object
abstract  int hashCode()
           
abstract  boolean oEquals(Object o)
          Check the equality with an other object, exculding subobject.
 void setTransferType(TransferType transferType)
          the the transfertype of this object
 boolean treeEquals(Object o)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

children

protected java.util.Collection<T extends Object> children

transferType

protected TransferType transferType
the transfertype used to transfer this object


message

protected java.lang.String message
the message associated with this object

Method Detail

getChildren

protected java.util.Collection<T> getChildren()
Returns:
the things this object is composed of

getXML

public java.lang.String getXML(TransferType type,
                               java.lang.String Message)
return an XML representation of this object

Parameters:
type - the transfertype to be used to generate the XML
Message - the message associvated with this object
Returns:
the XML representation of this object

treeEquals

public boolean treeEquals(Object o)

oEquals

public abstract boolean oEquals(Object o)
Check the equality with an other object, exculding subobject. So the equality of children etc. is ignored

Parameters:
o -
Returns:
true if the given object is equal to this object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public abstract int hashCode()
Overrides:
hashCode in class java.lang.Object

getTransferType

public TransferType getTransferType()
Returns:
the transfertype currently used by this object

setTransferType

public void setTransferType(TransferType transferType)
the the transfertype of this object

Parameters:
transferType - the new tranfertype to be set

getMessage

public java.lang.String getMessage()
Returns:
the message associated with this object


Copyright © 2008. All Rights Reserved.