Package org.ametys.cms.contenttype
Class SemanticAnnotation
java.lang.Object
org.ametys.cms.contenttype.SemanticAnnotation
This bean represents a semantic annotation tagging a part of a rich text content.
-
Constructor Summary
ConstructorDescriptionSemanticAnnotation
(String id, I18nizableText label, I18nizableText description) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the description of the semantic annotationgetId()
Returns the id of the semantic annotationgetLabel()
Returns the label of the semantic annotationint
hashCode()
void
setDescription
(I18nizableText description) Set the description of the semantic annotationvoid
Set the id of the semantic annotationvoid
setLabel
(I18nizableText label) Set the label of the semantic annotationtoString()
-
Constructor Details
-
SemanticAnnotation
Constructor- Parameters:
id
- The idlabel
- The labeldescription
- The description
-
-
Method Details
-
getId
Returns the id of the semantic annotation- Returns:
- the id of the semantic annotation (typically its name)
-
setId
Set the id of the semantic annotation- Parameters:
id
- the id of the semantic annotation (typically its name)
-
getLabel
Returns the label of the semantic annotation- Returns:
- the label of the semantic annotation
-
setLabel
Set the label of the semantic annotation- Parameters:
label
- the label of the semantic annotation
-
getDescription
Returns the description of the semantic annotation- Returns:
- the description of the semantic annotation
-
setDescription
Set the description of the semantic annotation- Parameters:
description
- the description of the semantic annotation
-
hashCode
-
equals
-
toString
-