org.eu.sk.zero.acd
Class Value

java.lang.Object
  |
  +--org.eu.sk.zero.acd.Value

public class Value
extends Object

Value of a component. Each component type has assigned a set of value types. Each component of the given type has a set of values appropriate to the value types of the component type.

Version:
$Id: Value.java,v 1.2 2003/04/10 16:00:09 robo Exp $
See Also:
ValueType, ComponentType, Component

Field Summary
protected  int id
          Numerical id of value.
 
Constructor Summary
Value(org.eu.sk.zero.acd.ValueType t)
          You should never nedd to construct values directly.
Value(org.eu.sk.zero.acd.ValueType t, String v)
          You should never nedd to construct values directly.
 
Method Summary
 String dump()
          Deprecated.  
 String get()
          Returns the value
 String getId()
           
 void set(String s)
          Sets the value
 String toString()
          Returns string describing the value.
 org.eu.sk.zero.acd.ValueType type()
          Returns type of the value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected int id
Numerical id of value. Used for serialization.

Constructor Detail

Value

public Value(org.eu.sk.zero.acd.ValueType t)
You should never nedd to construct values directly. They are constructed automatically whenever a component is created.


Value

public Value(org.eu.sk.zero.acd.ValueType t,
             String v)
You should never nedd to construct values directly. They are constructed automatically whenever a component is created.

Method Detail

set

public void set(String s)
Sets the value


get

public String get()
Returns the value


type

public org.eu.sk.zero.acd.ValueType type()
Returns type of the value


getId

public String getId()

toString

public String toString()
Returns string describing the value. The string looks like "a=b" where a is the type of the value and b is the value itself

Overrides:
toString in class Object

dump

public String dump()
Deprecated.  

Debugging method.