net.sf.opendse.model.parameter
Class ParameterReference

java.lang.Object
  extended by net.sf.opendse.model.parameter.ParameterReference
All Implemented Interfaces:
java.lang.Comparable<ParameterReference>

public class ParameterReference
extends java.lang.Object
implements java.lang.Comparable<ParameterReference>

The ParameterReference is a reference to a Parameter of an Element. This reference is defined by the element id and the name of the Attribute.


Field Summary
protected  java.lang.String attribute
           
protected  java.lang.String id
           
protected  Parameter parameter
           
 
Constructor Summary
ParameterReference(Element element, java.lang.String attribute)
          Constructs a ParameterReference.
ParameterReference(java.lang.String id, java.lang.String attribute, Parameter parameter)
          Constructs a ParameterReference.
 
Method Summary
 int compareTo(ParameterReference o)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAttribute()
          Returns the name of the Attribute.
 java.lang.String getId()
          Returns the id of the referenced Element.
 Parameter getParameter()
          Returns the Parameter.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected final java.lang.String id

attribute

protected final java.lang.String attribute

parameter

protected final Parameter parameter
Constructor Detail

ParameterReference

public ParameterReference(Element element,
                          java.lang.String attribute)
Constructs a ParameterReference.

Parameters:
element - the element
attribute - the attribute name

ParameterReference

public ParameterReference(java.lang.String id,
                          java.lang.String attribute,
                          Parameter parameter)
Constructs a ParameterReference.

Parameters:
id - the element id
attribute - the attribute name
parameter - the parameter
Method Detail

getId

public java.lang.String getId()
Returns the id of the referenced Element.

Returns:
the id of the element

getAttribute

public java.lang.String getAttribute()
Returns the name of the Attribute.

Returns:
the name of the attribute

getParameter

public Parameter getParameter()
Returns the Parameter.

Returns:
the parameter

hashCode

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

equals

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

compareTo

public int compareTo(ParameterReference o)
Specified by:
compareTo in interface java.lang.Comparable<ParameterReference>

toString

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