public class DefaultValueFacet extends java.lang.Object implements Facet
Constructor and Description |
---|
DefaultValueFacet(java.lang.Object defaultValue)
Construct a
DefaultValueFacet that
set the default value of an AbsObject |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getDefaultValue()
Get the default value 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 DefaultValueFacet(java.lang.Object defaultValue)
DefaultValueFacet
that
set the default value of an AbsObjectpublic java.lang.Object getDefaultValue()
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