Package jade.content.schema.facets
Class DefaultValueFacet
- java.lang.Object
-
- jade.content.schema.facets.DefaultValueFacet
-
- All Implemented Interfaces:
Facet,Serializable,Serializable
public class DefaultValueFacet extends Object implements Facet
This facet set the default value of an AbsObject.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultValueFacet(Object defaultValue)Construct aDefaultValueFacetthat set the default value of an AbsObject
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetDefaultValue()Get the default value associated to this facetvoidvalidate(AbsObject value, Ontology onto)Check whether a given value for the slot this Facet applies to is valid.
-
-
-
Constructor Detail
-
DefaultValueFacet
public DefaultValueFacet(Object defaultValue)
Construct aDefaultValueFacetthat set the default value of an AbsObject
-
-
Method Detail
-
getDefaultValue
public Object getDefaultValue()
Get the default value associated to this facet
-
validate
public void validate(AbsObject value, Ontology onto) throws OntologyException
Check whether a given value for the slot this Facet applies to is valid.- Specified by:
validatein interfaceFacet- Parameters:
value- The value to be checked- Throws:
OntologyException- If the value is not valid
-
-