jade.content.schema.facets
Class JavaTypeFacet

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

public class JavaTypeFacet
extends java.lang.Object
implements Facet

See Also:
Serialized Form

Constructor Summary
JavaTypeFacet(java.lang.String javaType)
          Construct a JavaTypeFacet that set the java type
 
Method Summary
 java.lang.String getJavaType()
          Get the java type 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

JavaTypeFacet

public JavaTypeFacet(java.lang.String javaType)
Construct a JavaTypeFacet that set the java type

Method Detail

getJavaType

public java.lang.String getJavaType()
Get the java type 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