Class DomainValue
java.lang.Object
com.aquima.interactions.composer.model.DomainValue
- All Implemented Interfaces:
IDomainValue
,Serializable
This class holds a single possible/allowed value for a field.
- Since:
- 6.4
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDomainValue
(boolean isValid, IPrimitiveValue domainValue) Construct a domain value without presentation styles.DomainValue
(boolean isValid, IDomainValueDefinition domainValue) Construct a domain value. -
Method Summary
-
Constructor Details
-
DomainValue
Construct a domain value without presentation styles.- Parameters:
isValid
- boolean indicating if the value is currently allowed.domainValue
- the actual value.
-
DomainValue
Construct a domain value. The definition may contain presentation styles.- Parameters:
isValid
- boolean indicating if the value is currently allowed.domainValue
- the value definition
-
-
Method Details
-
getValue
Description copied from interface:IDomainValue
This method returns the actual value may be used in the field.- Specified by:
getValue
in interfaceIDomainValue
- Returns:
- the actual value may be used in the field.
-
isCurrentlyValid
public boolean isCurrentlyValid()Description copied from interface:IDomainValue
This method returns a boolean indicating if the value is currently allowed by the field.- Specified by:
isCurrentlyValid
in interfaceIDomainValue
- Returns:
- a boolean indicating if the value is currently allowed by the field.
-
getPresentationStyles
Description copied from interface:IDomainValue
Returns the presentation styles of this domain value. If this value does not have any presentation styles, an empty array is returned.- Specified by:
getPresentationStyles
in interfaceIDomainValue
- Returns:
- the presentations styles of this domain value, never null.
-
toString
-