Class DefinedTypeInstance

java.lang.Object
   |
   +----DefinedTypeInstance

public class DefinedTypeInstance
extends Object
implements Serializable
The class `DefinedTypeInstance' is used to wrap an instance of a defined type.


Constructor Index

 o DefinedTypeInstance(DefinedType, Object)
Constructs this defined type instance by plugging in the given value.

Method Index

 o getType()
Returns the defined type of which this object is an instance.
 o getValue()
Returns the value of this defined type instance.
 o toString()
Returns a string representing this defined type instance.

Constructors

 o DefinedTypeInstance
 public DefinedTypeInstance(DefinedType type,
                            Object value)
Constructs this defined type instance by plugging in the given value. This method is called from the constructors of subclasses of DefinedTypeInstance.

Parameters:
type - The defined type of which this is an instance.
value - The value of this defined type instance, which must conform to the underlying type.

Methods

 o getType
 public DefinedType getType()
Returns the defined type of which this object is an instance.

Returns:
The defined type of which this is an instance.
 o getValue
 public Object getValue()
Returns the value of this defined type instance.

Returns:
The value of this defined type instance.
 o toString
 public String toString()
Returns a string representing this defined type instance.

Returns:
s The string representation of this defined type instance.
Overrides:
toString in class Object