org.indi.objects
Class Message

java.lang.Object
  extended by org.indi.objects.Object<Object>
      extended by org.indi.objects.Message
All Implemented Interfaces:
java.io.Serializable

public class Message
extends Object<Object>

A class repersenting a single indi message

Author:
Dirk Hünniger
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.indi.objects.Object
children, message, transferType
 
Constructor Summary
Message(java.lang.String device)
          class constructor
 
Method Summary
 java.lang.String getDevice()
           
 java.lang.String getXML(TransferType type, java.lang.String message)
          return an XML representation of this object
 int hashCode()
           
 boolean oEquals(Object o)
          Check the equality with an other object, exculding subobject.
 
Methods inherited from class org.indi.objects.Object
equals, getChildren, getMessage, getTransferType, setTransferType, treeEquals
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Message

public Message(java.lang.String device)
class constructor

Parameters:
device - the device the message is associated with
Method Detail

getDevice

public java.lang.String getDevice()
Returns:
the device the message is associated with

getXML

public java.lang.String getXML(TransferType type,
                               java.lang.String message)
Description copied from class: Object
return an XML representation of this object

Overrides:
getXML in class Object<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

oEquals

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

Specified by:
oEquals in class Object<Object>
Returns:
true if the given object is equal to this object

hashCode

public int hashCode()
Specified by:
hashCode in class Object<Object>


Copyright © 2008. All Rights Reserved.