SmartFrog 3.10.000

org.smartfrog.sfcore.languages.sf.sfcomponentdescription
Class UnresolvedValue

java.lang.Object
  extended by org.smartfrog.sfcore.languages.sf.sfcomponentdescription.UnresolvedValue

public class UnresolvedValue
extends java.lang.Object

Stores an unresolved value and the source of the unresolved value. This is used by ResolutionState to store unresolved values and their source


Field Summary
 Reference source
          Source of unresolved value.
 java.lang.Object value
          Unresolved value.
 
Constructor Summary
UnresolvedValue(java.lang.Object val, Reference source)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
          Cheks for equality.
 int hashCode()
          Hashcode for this object.
 java.lang.String toString()
          Prints out a string representation of an unresolved value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public java.lang.Object value
Unresolved value.


source

public Reference source
Source of unresolved value.

Constructor Detail

UnresolvedValue

public UnresolvedValue(java.lang.Object val,
                       Reference source)
Constructor.

Parameters:
val - unresolved value
source - source of unresolved value, can be null
Method Detail

hashCode

public int hashCode()
Hashcode for this object. Uses the hascode of the value

Overrides:
hashCode in class java.lang.Object
Returns:
hascode of value

equals

public boolean equals(java.lang.Object o)
Cheks for equality. Two unresolved values are equal if their values are equal and both their sources are the same (null or equal)

Overrides:
equals in class java.lang.Object
Parameters:
o - object to compare against
Returns:
true if object are equal else false

toString

public java.lang.String toString()
Prints out a string representation of an unresolved value. Prints out the value, and the source if not null

Overrides:
toString in class java.lang.Object
Returns:
string representation of this unresolved value

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP