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