org.pm4j.core.pm.impl
Class SetValueContainer<T_VALUE>

java.lang.Object
  extended by org.pm4j.core.pm.impl.SetValueContainer<T_VALUE>
Type Parameters:
T_VALUE - The type used as external value interface of the attribute.

public final class SetValueContainer<T_VALUE>
extends java.lang.Object

A value that is not yet or can't be applied to an attribute.

Author:
olaf boede

Constructor Summary
SetValueContainer(PmAttr<?> pm)
           
SetValueContainer(PmAttr<?> pm, java.lang.String stringValue)
           
 
Method Summary
 PmAttr<?> getPm()
           
 T_VALUE getPmValue()
           
 java.lang.String getStringValue()
           
 boolean isPmValueSet()
           
 boolean isStringValueSet()
           
static
<T_VALUE> SetValueContainer<T_VALUE>
makeWithPmValue(PmAttr<?> pm, T_VALUE pmValue)
           
 void setPmValue(T_VALUE pmValue)
           
 void setStringValue(java.lang.String stringValue)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetValueContainer

public SetValueContainer(PmAttr<?> pm)

SetValueContainer

public SetValueContainer(PmAttr<?> pm,
                         java.lang.String stringValue)
Method Detail

makeWithPmValue

public static <T_VALUE> SetValueContainer<T_VALUE> makeWithPmValue(PmAttr<?> pm,
                                                                   T_VALUE pmValue)

getStringValue

public java.lang.String getStringValue()

setStringValue

public void setStringValue(java.lang.String stringValue)

getPmValue

public T_VALUE getPmValue()

setPmValue

public void setPmValue(T_VALUE pmValue)

getPm

public PmAttr<?> getPm()
Returns:
The presentation model of the attribute with the invalid value.

isStringValueSet

public boolean isStringValueSet()

isPmValueSet

public boolean isPmValueSet()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object