Package org.ametys.cms.contenttype
Class SemanticAnnotation
- java.lang.Object
-
- org.ametys.cms.contenttype.SemanticAnnotation
-
public class SemanticAnnotation extends Object
This bean represents a semantic annotation tagging a part of a rich text content.
-
-
Field Summary
Fields Modifier and Type Field Description private I18nizableText
_description
private String
_id
private I18nizableText
_label
-
Constructor Summary
Constructors Constructor Description SemanticAnnotation(String id, I18nizableText label, I18nizableText description)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
I18nizableText
getDescription()
Returns the description of the semantic annotationString
getId()
Returns the id of the semantic annotationI18nizableText
getLabel()
Returns the label of the semantic annotationint
hashCode()
void
setDescription(I18nizableText description)
Set the description of the semantic annotationvoid
setId(String id)
Set the id of the semantic annotationvoid
setLabel(I18nizableText label)
Set the label of the semantic annotationString
toString()
-
-
-
Field Detail
-
_label
private I18nizableText _label
-
_description
private I18nizableText _description
-
-
Constructor Detail
-
SemanticAnnotation
public SemanticAnnotation(String id, I18nizableText label, I18nizableText description)
Constructor- Parameters:
id
- The idlabel
- The labeldescription
- The description
-
-
Method Detail
-
getId
public String getId()
Returns the id of the semantic annotation- Returns:
- the id of the semantic annotation (typically its name)
-
setId
public void setId(String id)
Set the id of the semantic annotation- Parameters:
id
- the id of the semantic annotation (typically its name)
-
getLabel
public I18nizableText getLabel()
Returns the label of the semantic annotation- Returns:
- the label of the semantic annotation
-
setLabel
public void setLabel(I18nizableText label)
Set the label of the semantic annotation- Parameters:
label
- the label of the semantic annotation
-
getDescription
public I18nizableText getDescription()
Returns the description of the semantic annotation- Returns:
- the description of the semantic annotation
-
setDescription
public void setDescription(I18nizableText description)
Set the description of the semantic annotation- Parameters:
description
- the description of the semantic annotation
-
-