MetaDone
metadone.client.grasyla2.value.Value Class Reference

List of all members.

Public Member Functions

 Value (Object value)
Object getValue ()
boolean getValueAsBoolean () throws BadPreCondition
char getValueAsChar () throws BadPreCondition
long getValueAsInteger () throws BadPreCondition
double getValueAsFloat () throws BadPreCondition
String getValueAsString () throws BadPreCondition
Exception getValueAsException () throws BadPreCondition
Collection<?extends
ConcreteObject
getValueAsCO () throws BadPreCondition
int hashCode ()
boolean equals (Object obj)
String toString ()

Private Attributes

final Object value

Detailed Description

A value.

Author:
kma

Constructor & Destructor Documentation

metadone.client.grasyla2.value.Value.Value ( Object  value)

Initializes this value.

Parameters:
valueThe value

References metadone.client.grasyla2.value.Value.value.


Member Function Documentation

boolean metadone.client.grasyla2.value.Value.equals ( Object  obj)
Object metadone.client.grasyla2.value.Value.getValue ( )
boolean metadone.client.grasyla2.value.Value.getValueAsBoolean ( ) throws BadPreCondition

Gets the value as a boolean.

Returns:
The value
Exceptions:
BadPreConditionwhen the value couldn't be converted

References metadone.util.ClassUtil.convert(), and metadone.client.grasyla2.value.Value.value.

char metadone.client.grasyla2.value.Value.getValueAsChar ( ) throws BadPreCondition

Gets the value as a character.

Returns:
The value
Exceptions:
BadPreConditionwhen the value couldn't be converted

References metadone.util.ClassUtil.convert(), and metadone.client.grasyla2.value.Value.value.

Collection<? extends ConcreteObject> metadone.client.grasyla2.value.Value.getValueAsCO ( ) throws BadPreCondition
Exception metadone.client.grasyla2.value.Value.getValueAsException ( ) throws BadPreCondition

Gets the value as an exception.

Returns:
The value
Exceptions:
BadPreConditionwhen the value couldn't be converted

References metadone.util.Objects.cast(), and metadone.client.grasyla2.value.Value.value.

Referenced by metadone.client.grasyla2.value.GrasylaEngineAdaptorFromValue< T >.adapt().

double metadone.client.grasyla2.value.Value.getValueAsFloat ( ) throws BadPreCondition

Gets the value as a floating-point number.

Returns:
The value
Exceptions:
BadPreConditionwhen the value couldn't be converted

References metadone.util.ClassUtil.convert(), and metadone.client.grasyla2.value.Value.value.

long metadone.client.grasyla2.value.Value.getValueAsInteger ( ) throws BadPreCondition

Gets the value as an integer.

Returns:
The value
Exceptions:
BadPreConditionwhen the value couldn't be converted

References metadone.util.ClassUtil.convert(), and metadone.client.grasyla2.value.Value.value.

String metadone.client.grasyla2.value.Value.getValueAsString ( ) throws BadPreCondition

Gets the value as a string.

Returns:
The value
Exceptions:
BadPreConditionwhen the value couldn't be converted

References metadone.client.grasyla2.value.Value.value.

Referenced by metadone.client.grasyla2.swing.JAdaptValue.adapt().

int metadone.client.grasyla2.value.Value.hashCode ( )
String metadone.client.grasyla2.value.Value.toString ( )

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations