public class DocumentationFacet extends Object implements Facet
Modifier and Type | Field and Description |
---|---|
private String |
documentation |
Constructor and Description |
---|
DocumentationFacet(String documentation)
Construct a
DocumentationFacet that
set the documentation of an AbsObject |
Modifier and Type | Method and Description |
---|---|
String |
getDocumentation()
Get the documentation 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 String documentation
public DocumentationFacet(String documentation)
DocumentationFacet
that
set the documentation of an AbsObjectpublic String getDocumentation()
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