cgl.narada.event.impl
Class TemplateInfoImpl

java.lang.Object
  extended by cgl.narada.event.impl.TemplateInfoImpl
All Implemented Interfaces:
TemplateInfo

public class TemplateInfoImpl
extends Object
implements TemplateInfo

Provides information regarding a template


Constructor Summary
TemplateInfoImpl(byte[] marshalledBytes)
           
TemplateInfoImpl(int templateId, int templateType, Object template)
           
TemplateInfoImpl(int templateId, int templateType, Object template, Object allEncompassingConstraint)
           
 
Method Summary
 boolean equals(Object obj)
          Compares two objects for equality.
 Object getAllEncompassingConstraint()
          Returns the all encompassing constraint, to ensure receipt of every event published to this template
 byte[] getBytes()
          Get a marshalled representation of the template info
 Object getTemplate()
          Returns the template
 int getTemplateId()
          Returns the template ID associated with this template
 int getTemplateType()
          Returns the template type
 boolean hasAllEncompassingConstraint()
          Returns the all encompassing constraint associated with this template
 int hashCode()
          Generates a hash code for the receiver.
static void main(String[] args)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplateInfoImpl

public TemplateInfoImpl(int templateId,
                        int templateType,
                        Object template)

TemplateInfoImpl

public TemplateInfoImpl(int templateId,
                        int templateType,
                        Object template,
                        Object allEncompassingConstraint)

TemplateInfoImpl

public TemplateInfoImpl(byte[] marshalledBytes)
Method Detail

getTemplateId

public int getTemplateId()
Returns the template ID associated with this template

Specified by:
getTemplateId in interface TemplateInfo

getTemplateType

public int getTemplateType()
Returns the template type

Specified by:
getTemplateType in interface TemplateInfo

getTemplate

public Object getTemplate()
Returns the template

Specified by:
getTemplate in interface TemplateInfo

hasAllEncompassingConstraint

public boolean hasAllEncompassingConstraint()
Returns the all encompassing constraint associated with this template

Specified by:
hasAllEncompassingConstraint in interface TemplateInfo

getAllEncompassingConstraint

public Object getAllEncompassingConstraint()
Returns the all encompassing constraint, to ensure receipt of every event published to this template

Specified by:
getAllEncompassingConstraint in interface TemplateInfo

equals

public boolean equals(Object obj)
Compares two objects for equality. Returns a boolean that indicates whether this object is equivalent to the specified object. This method is used when an object is stored in a hashtable.

Overrides:
equals in class Object
Parameters:
obj - the Object to compare with
Returns:
true if these Objects are equal; false otherwise.
See Also:
Hashtable

hashCode

public int hashCode()
Generates a hash code for the receiver. This method is supported primarily for hash tables, such as those provided in java.util. If two objects are equal (equals(Object) returns true) they must have the same hash code

Overrides:
hashCode in class Object
Returns:
an integer hash code for the receiver

toString

public String toString()
Overrides:
toString in class Object

getBytes

public byte[] getBytes()
Get a marshalled representation of the template info

Specified by:
getBytes in interface TemplateInfo

main

public static void main(String[] args)


For comments and suggestions please send e-mail to The NaradaBrokering Project