Class DefaultAllowedValue
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.model.constraint.DefaultAllowedValue
-
- All Implemented Interfaces:
IAllowedValue
public class DefaultAllowedValue extends Object implements IAllowedValue
-
-
Constructor Summary
Constructors Constructor Description DefaultAllowedValue(String value, MarkupLine description)
Construct a new allowed value entry for use in anIAllowedValuesConstraint
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MarkupLine
getDescription()
Retrieves the enumerated value's description associated with this allowed value constraint entry.String
getValue()
Retrieves the enumerated value associated with this allowed value constraint entry.
-
-
-
Constructor Detail
-
DefaultAllowedValue
public DefaultAllowedValue(@NonNull String value, @NonNull MarkupLine description)
Construct a new allowed value entry for use in anIAllowedValuesConstraint
.- Parameters:
value
- the allowed valuedescription
- a textual description of the value
-
-
Method Detail
-
getValue
public String getValue()
Description copied from interface:IAllowedValue
Retrieves the enumerated value associated with this allowed value constraint entry.- Specified by:
getValue
in interfaceIAllowedValue
- Returns:
- the value
-
getDescription
public MarkupLine getDescription()
Description copied from interface:IAllowedValue
Retrieves the enumerated value's description associated with this allowed value constraint entry.- Specified by:
getDescription
in interfaceIAllowedValue
- Returns:
- the description
-
-