guarana.framework.message
Class Parent

java.lang.Object
  extended by guarana.framework.message.Parent
All Implemented Interfaces:
Serializable

public class Parent
extends Object
implements Serializable

Represents the ancestor of a Message. It allows to keep track of a message since it has been originated, enabling analysis and debug. Please, note that a parent can have more than one parent.

Since:
Guaranį SDK 1.0.0
Author:
Rafael Z. Frantz
See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
Parent(String ID, Set<Parent> ancestors)
          Constructs a new Parent.
 
Method Summary
 Set<Parent> getAncestors()
          Returns a all ancestors of this parent.
 String getID()
          Returns the parent ID.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

Parent

public Parent(String ID,
              Set<Parent> ancestors)
Constructs a new Parent.

Parameters:
ID - The identifier of this parent.
ancestors - A set of parents for this object.
Method Detail

getID

public String getID()
Returns the parent ID.

Returns:
the parent ID.

getAncestors

public Set<Parent> getAncestors()
Returns a all ancestors of this parent.

Returns:
the set of parents.


Guaranį DSL Home