Package jade.content.schema.facets
Class JavaTypeFacet
- java.lang.Object
-
- jade.content.schema.facets.JavaTypeFacet
-
- All Implemented Interfaces:
Facet,Serializable,Serializable
public class JavaTypeFacet extends Object implements Facet
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JavaTypeFacet(String javaType)Construct aJavaTypeFacetthat set the java type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetJavaType()Get the java type associated to this facetvoidvalidate(AbsObject value, Ontology onto)Check whether a given value for the slot this Facet applies to is valid.
-
-
-
Constructor Detail
-
JavaTypeFacet
public JavaTypeFacet(String javaType)
Construct aJavaTypeFacetthat set the java type
-
-
Method Detail
-
getJavaType
public 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:
validatein interfaceFacet- Parameters:
value- The value to be checked- Throws:
OntologyException- If the value is not valid
-
-