Class RichText

  • All Implemented Interfaces:
    com.helger.commons.lang.IExplicitlyCloneable, Serializable, Cloneable
    Direct Known Subclasses:
    Text

    @CodingStyleguideUnaware
    public class RichText
    extends Object
    implements Serializable, com.helger.commons.lang.IExplicitlyCloneable

    Java class for rich-text complex type.

    The following schema fragment specifies the expected content contained within this class.

    
     <complexType name="rich-text">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <choice maxOccurs="unbounded" minOccurs="0">
             <group ref="{http://purl.oclc.org/dsdl/svrl}foreign"/>
             <element ref="{http://purl.oclc.org/dsdl/svrl}dir"/>
             <element ref="{http://purl.oclc.org/dsdl/svrl}span"/>
             <element ref="{http://purl.oclc.org/dsdl/svrl}emph"/>
           </choice>
         </restriction>
       </complexContent>
     </complexType>
     

    This class was annotated by ph-jaxb-plugin -Xph-annotate

    This class contains methods created by ph-jaxb-plugin -Xph-equalshashcode

    This class contains methods created by ph-jaxb-plugin -Xph-tostring

    This class contains methods created by ph-jaxb-plugin -Xph-list-extension

    This class contains methods created by ph-jaxb-plugin -Xph-cloneable2

    This class contains methods created by ph-jaxb-plugin -Xph-value-extender

    See Also:
    Serialized Form
    • Constructor Detail

      • RichText

        public RichText()
        Default constructor
        Note: automatically created by ph-jaxb-plugin -Xph-value-extender
    • Method Detail

      • getContent

        @Nonnull
        @ReturnsMutableObject("JAXB implementation style")
        public List<Object> getContent()
        Gets the value of the content property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the content property.

        For example, to add a new item, do as follows:

            getContent().add(newItem);
         

        Objects of the following type(s) are allowed in the list Dir Emph Span String Element

        Returns:
        The value of the content property.
      • equals

        public boolean equals​(Object o)
        Created by ph-jaxb-plugin -Xph-equalshashcode
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Created by ph-jaxb-plugin -Xph-equalshashcode
        Overrides:
        hashCode in class Object
      • toString

        public String toString()
        Created by ph-jaxb-plugin -Xph-tostring
        Overrides:
        toString in class Object
      • setContent

        public void setContent​(@Nullable
                               List<Object> aList)
        Created by ph-jaxb-plugin -Xph-list-extension
        Parameters:
        aList - The new list member to set. May be null.
      • hasContentEntries

        public boolean hasContentEntries()
        Created by ph-jaxb-plugin -Xph-list-extension
        Returns:
        true if at least one item is contained, false otherwise.
      • hasNoContentEntries

        public boolean hasNoContentEntries()
        Created by ph-jaxb-plugin -Xph-list-extension
        Returns:
        true if no item is contained, false otherwise.
      • getContentCount

        @Nonnegative
        public int getContentCount()
        Created by ph-jaxb-plugin -Xph-list-extension
        Returns:
        The number of contained elements. Always ≥ 0.
      • addContent

        public void addContent​(@Nonnull
                               Object elem)
        Created by ph-jaxb-plugin -Xph-list-extension
        Parameters:
        elem - The element to be added. May not be null.
      • cloneTo

        public void cloneTo​(@Nonnull
                            RichText ret)
        This method clones all values from this to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb-plugin -Xph-cloneable2
        Parameters:
        ret - The target object to clone to. May not be null.
      • clone

        @Nonnull
        @ReturnsMutableCopy
        public RichText clone()
        Created by ph-jaxb-plugin -Xph-cloneable2
        Specified by:
        clone in interface com.helger.commons.lang.IExplicitlyCloneable
        Overrides:
        clone in class Object
        Returns:
        The cloned object. Never null.