public class PermittedValuesFacet extends java.lang.Object implements Facet
| Constructor and Description |
|---|
PermittedValuesFacet(java.lang.Object[] permittedValues)
Construct a
PermittedValuesFacet that
forces an AbsPrimitive to contain a specific set of values |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object[] |
getPermittedValues()
Get the permitted values associated to this facet
|
java.lang.String |
getPermittedValuesAsString()
Get the permitted values as string associated to this facet
|
void |
validate(AbsObject value,
Ontology onto)
Check whether a given value for the slot this Facet applies
to is valid.
|
public PermittedValuesFacet(java.lang.Object[] permittedValues)
PermittedValuesFacet that
forces an AbsPrimitive to contain a specific set of valuespublic java.lang.Object[] getPermittedValues()
public java.lang.String getPermittedValuesAsString()
public void validate(AbsObject value, Ontology onto) throws OntologyException
validate in interface Facetvalue - The value to be checkedOntologyException - If the value is not valid