edu.stanford.rt.datatype
Class SingletonValueSet

java.lang.Object
  |
  +--edu.stanford.rt.datatype.ValueSet
        |
        +--edu.stanford.rt.datatype.SingletonValueSet

public class SingletonValueSet
extends ValueSet

Author:
Ninghui Li, Sandra Qiu
A SingletonValueSet object is a value set that conatins a single value of SimpleType.

Field Summary
private  DataValue value
           
 
Fields inherited from class edu.stanford.rt.datatype.ValueSet
 
Constructor Summary
SingletonValueSet(SimpleType type, DataValue value)
          Constructor for SingletonValueSet.
 
Method Summary
 DataValue getValue()
          Method getValue.
 java.lang.String toString(java.lang.String indent)
          Method toString.
 
Methods inherited from class edu.stanford.rt.datatype.ValueSet
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

private DataValue value
Constructor Detail

SingletonValueSet

public SingletonValueSet(SimpleType type,
                         DataValue value)
Constructor for SingletonValueSet.

Method Detail

getValue

public DataValue getValue()
Method getValue.

Returns:
DataValue

toString

public java.lang.String toString(java.lang.String indent)
Description copied from class: ValueSet
Method toString.

Overrides:
toString in class ValueSet
Parameters:
indent -
Returns:
String