Class GlossEntry

    • Constructor Detail

      • GlossEntry

        public GlossEntry()
        Creates a new GlossEntry object.
      • GlossEntry

        public GlossEntry​(GlossEntry original)
        Copy constructor.
        Parameters:
        original - the original object to duplicate.
    • Method Detail

      • getId

        public String getId()
        Gets the id for this entry.
        Returns:
        the id for this entry (can be null).
      • setId

        public void setId​(String id)
        Sets the id for this entry.
        Parameters:
        id - the new id for this entry (can be null).
      • getRef

        public String getRef()
        Gets the reference for this entry.
        Returns:
        the reference for this entry (can be null).
      • setRef

        public void setRef​(String ref)
        Sets the reference for this entry.
        Parameters:
        ref - the new reference for this entry (can be null).
      • getTerm

        public Term getTerm()
        Gets the term for this entry.
        Returns:
        the term for this entry.
      • setTerm

        public Term setTerm​(Term term)
        Sets a new term for this entry.
        Parameters:
        term - the new term for this entry (must not be null).
        Returns:
        the new Term object.
      • getDefinition

        public Definition getDefinition()
        Gets the definition for this entry.
        Returns:
        the definition for this entry (can be null).
      • setDefinition

        public Definition setDefinition​(Definition definition)
        Sets a new definition for this entry.
        Parameters:
        definition - the new definition for this entry (can be null).
        Returns:
        the new Definition object.
      • addTranslation

        public Translation addTranslation​(String text)
        Adds a translation to this entry.
        Parameters:
        text - the text of the translation to add.
        Returns:
        the new Translation object.
      • hasExtAttribute

        public boolean hasExtAttribute()
        Description copied from interface: IWithExtAttributes
        Indicates if at least one extension attribute is present.
        Specified by:
        hasExtAttribute in interface IWithExtAttributes
        Returns:
        true if at least one extension attribute is present; false otherwise.
      • getExtAttributeValue

        public String getExtAttributeValue​(String namespaceURI,
                                           String localName)
        Description copied from interface: IWithExtAttributes
        Gets the value for a given extension attribute.
        Specified by:
        getExtAttributeValue in interface IWithExtAttributes
        Parameters:
        namespaceURI - the URI of the namespace for the attribute.
        localName - the name of the attribute.
        Returns:
        the value of the extension attribute, or null if it does not exist.
      • getTranslations

        public List<Translation> getTranslations()
        Gets the list of the Translation objects for this entry.
        Returns:
        the list of the Translation objects for this entry (never null).