jade.content.schema.facets
Class DefaultValueFacet

java.lang.Object
  extended by jade.content.schema.facets.DefaultValueFacet
All Implemented Interfaces:
Facet, java.io.Serializable

public class DefaultValueFacet
extends java.lang.Object
implements Facet

This facet set the default value of an AbsObject.

See Also:
Serialized Form

Constructor Summary
DefaultValueFacet(java.lang.Object defaultValue)
          Construct a DefaultValueFacet that set the default value of an AbsObject
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultValueFacet

public DefaultValueFacet(java.lang.Object defaultValue)
Construct a DefaultValueFacet that set the default value of an AbsObject

Method Detail

getDefaultValue

public java.lang.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:
validate in interface Facet
Parameters:
value - The value to be checked
Throws:
OntologyException - If the value is not valid


These are the official JADE API. For these API backward compatibility is guaranteed accross JADE versions