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.
  • Constructor Details

  • Method Details

    • 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

      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

      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
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object