public class RegexFacet extends java.lang.Object implements Facet
| Constructor and Description |
|---|
RegexFacet(java.lang.String regex)
Construct a
PermittedValuesFacet that
forces an AbsPrimitive to contain a specific set of values
expressed as a regular expression |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRegex()
Get the regex 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 RegexFacet(java.lang.String regex)
PermittedValuesFacet that
forces an AbsPrimitive to contain a specific set of values
expressed as a regular expressionpublic java.lang.String getRegex()
public void validate(AbsObject value, Ontology onto) throws OntologyException
validate in interface Facetvalue - The value to be checkedOntologyException - If the value is not valid