pl.edu.agh.cast.model.attributes
Class AttributeValue

java.lang.Object
  extended by pl.edu.agh.cast.model.attributes.AttributeValue
All Implemented Interfaces:
Serializable, Cloneable

public final class AttributeValue
extends Object
implements Cloneable, Serializable

Class representing a single value of an Attribute.

Author:
AGH CAST Team
See Also:
Serialized Form

Constructor Summary
AttributeValue(Attribute attribute, Object value)
          Constructor.
 
Method Summary
 AttributeValue copy()
          Returns a copy of this AttributeValue instance.
 boolean equals(Object obj)
          
 String format()
          Returns a string representation of this value, to be used.
 Attribute getAttribute()
           
 Object getValue()
           
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeValue

public AttributeValue(Attribute attribute,
                      Object value)
Constructor.

Parameters:
attribute - the attribute
value - the value
Method Detail

copy

public AttributeValue copy()
Returns a copy of this AttributeValue instance.

Returns:
copy of this instance

getValue

public Object getValue()

getAttribute

public Attribute getAttribute()

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()

format

public String format()
Returns a string representation of this value, to be used.

Returns:
string representation of this value


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.