|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.content.schema.facets.RegexFacet
public class RegexFacet
This facet forces an AbsPrimitive to contain a specific set of values expressed as a regular expression.
| Constructor Summary | |
|---|---|
RegexFacet(java.lang.String regex)
Construct a PermittedValuesFacet that
forces an AbsPrimitive to contain a specific set of values
expressed as a regular expression |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegexFacet(java.lang.String regex)
PermittedValuesFacet that
forces an AbsPrimitive to contain a specific set of values
expressed as a regular expression
| Method Detail |
|---|
public java.lang.String getRegex()
public void validate(AbsObject value,
Ontology onto)
throws OntologyException
validate in interface Facetvalue - The value to be checked
OntologyException - If the value is not valid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||