jfun.yan.xml
Class UID

java.lang.Object
  extended by jfun.yan.xml.UID
All Implemented Interfaces:
java.io.Serializable

public class UID
extends java.lang.Object
implements java.io.Serializable

Unique id for a component. This id is guaranteed to be unique across multiple modules.

Author:
Ben Yu Dec 12, 2005 2:58:23 PM
See Also:
Serialized Form

Constructor Summary
UID(java.lang.Object module_id, int decl_seq, int eval_seq, java.lang.Object id)
          To create a UID object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Object getComponentId()
          Get the id of the component within the containing module.
 int getDeclarationSequence()
          Get the sequence number in the order of tag declaration.
 int getEvaluationSequence()
          Get the sequence number in the order of tag evaluation.
 java.lang.Object getModuleId()
          Get the id of the containing module.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UID

public UID(java.lang.Object module_id,
           int decl_seq,
           int eval_seq,
           java.lang.Object id)
To create a UID object.

Parameters:
module_id - the module id.
decl_seq - the declaration sequence in the enclosing tag.
eval_seq - the evaluation sequence.
id - the id of the component within the module.
Method Detail

getComponentId

public java.lang.Object getComponentId()
Get the id of the component within the containing module.


getModuleId

public java.lang.Object getModuleId()
Get the id of the containing module.


getEvaluationSequence

public int getEvaluationSequence()
Get the sequence number in the order of tag evaluation.


getDeclarationSequence

public int getDeclarationSequence()
Get the sequence number in the order of tag declaration.


equals

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

hashCode

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object