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.
-
DefinedTypeInstance(DefinedType, Object)
- Constructs this defined type instance by plugging in the given value.
-
getType()
- Returns the defined type of which this object is an instance.
-
getValue()
- Returns the value of this defined type instance.
-
toString()
- Returns a string representing this defined type instance.
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.
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.
getValue
public Object getValue()
- Returns the value of this defined type instance.
- Returns:
- The value of this defined type instance.
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