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 |
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 Facet
value
- The value to be checkedOntologyException
- If the value is not valid