org.jcoderz.phoenix.dependency
Class Relation

java.lang.Object
  extended by org.jcoderz.phoenix.dependency.Relation
All Implemented Interfaces:
Serializable

public final class Relation
extends Object
implements Serializable

relation value object.

Author:
generated
See Also:
Serialized Form

Constructor Summary
Relation(Relation aRelation)
          Copy constructor for Relation.
Relation(RelationType aType, int aSourceLine, String aSourceSymbol, Clazz aClazz, String aMethod, String aField, int aLine)
          Constructs a Relation with all arguments.
 
Method Summary
 boolean equals(Object object)
          Returns true if this Relation is equal to object.
 Clazz getClazz()
          Returns the The class where this relation points to..
 String getField()
          Returns the The field where this relation points to.
 int getLine()
          Returns the The field where this relation points to.
 String getMethod()
          Returns the The method where this relation points to.
 int getSourceLine()
          Returns the The source line creating the relationship..
 String getSourceSymbol()
          Returns the The symbol that creates the relation ship..
 RelationType getType()
          Returns the The type of this relation..
 int hashCode()
          Override hashCode.
 String toString()
          Creates a String representation of this object holding the state of all members.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Relation

public Relation(RelationType aType,
                int aSourceLine,
                String aSourceSymbol,
                Clazz aClazz,
                String aMethod,
                String aField,
                int aLine)
Constructs a Relation with all arguments.

Parameters:
aType - The The type of this relation..
aSourceLine - The The source line creating the relationship..
aSourceSymbol - The The symbol that creates the relation ship..
aClazz - The The class where this relation points to..
aMethod - The The method where this relation points to. (might be null).
aField - The The field where this relation points to. (might be null).
aLine - The The field where this relation points to. (might be null).

Relation

public Relation(Relation aRelation)
Copy constructor for Relation. No deep copy is performed.

Parameters:
aRelation - The Relation to be copied.
Method Detail

getType

public RelationType getType()
Returns the The type of this relation..

Returns:
the The type of this relation..

getSourceLine

public int getSourceLine()
Returns the The source line creating the relationship..

Returns:
the The source line creating the relationship..

getSourceSymbol

public String getSourceSymbol()
Returns the The symbol that creates the relation ship..

Returns:
the The symbol that creates the relation ship..

getClazz

public Clazz getClazz()
Returns the The class where this relation points to..

Returns:
the The class where this relation points to..

getMethod

public String getMethod()
Returns the The method where this relation points to. (might be null).

Returns:
the The method where this relation points to. (might be null).

getField

public String getField()
Returns the The field where this relation points to. (might be null).

Returns:
the The field where this relation points to. (might be null).

getLine

public int getLine()
Returns the The field where this relation points to. (might be null).

Returns:
the The field where this relation points to. (might be null).

toString

public String toString()
Creates a String representation of this object holding the state of all members.

Overrides:
toString in class Object
Returns:
a String representation of this object.

hashCode

public int hashCode()
Override hashCode.

Overrides:
hashCode in class Object
Returns:
the Objects hashcode.

equals

public boolean equals(Object object)
Returns true if this Relation is equal to object.

Overrides:
equals in class Object
Parameters:
object - the object to compare to.
Returns:
true if this Relation is equal to object.


Copyright 2007 The jCoderZ Project.