51Degrees Pipeline for Java

fiftyone.pipeline.engines.data.AspectPropertyValue< T > Interface Template Reference

Detailed Description

This interface can be used where engines have a property that may be populated and may not.

See also
Specification
Parameters
<T>the type of data stored within the instance

Inheritance diagram for fiftyone.pipeline.engines.data.AspectPropertyValue< T >:

[legend]

Public Member Functions

boolean hasValue ()
 Indicates whether or not the instance contains a value for the property.
T getValue () throws NoValueException
 Get the underlying value.
void setValue (T value)
 Set the underlying value.
String getNoValueMessage ()
 Get the message that will appear in the exception thrown if this instance has no value.
void setNoValueMessage (String message)
 Set the message that will appear in the exception thrown if this instance has no value.

Member Function Documentation

◆ getNoValueMessage()

String fiftyone.pipeline.engines.data.AspectPropertyValue< T >.getNoValueMessage ( )

Get the message that will appear in the exception thrown if this instance has no value.

Returns
message associated with the NoValueException

Implemented in fiftyone.pipeline.engines.data.AspectPropertyValueDefault< T >.

◆ getValue()

Get the underlying value.

Returns
the underlying value
Exceptions
NoValueExceptionthis exception will be thrown if the instance does not contain a value

Implemented in fiftyone.pipeline.engines.data.AspectPropertyValueDefault< T >.

◆ hasValue()

Indicates whether or not the instance contains a value for the property.

Returns
true if this instance contains a value, false otherwise

Implemented in fiftyone.pipeline.engines.data.AspectPropertyValueDefault< T >.

◆ setNoValueMessage()

void fiftyone.pipeline.engines.data.AspectPropertyValue< T >.setNoValueMessage ( String message)

Set the message that will appear in the exception thrown if this instance has no value.

Parameters
messageassociated with the NoValueException

Implemented in fiftyone.pipeline.engines.data.AspectPropertyValueDefault< T >.

◆ setValue()

Set the underlying value.

Parameters
valuethe value to set

Implemented in fiftyone.pipeline.engines.data.AspectPropertyValueDefault< T >.