Class TextContent

  • Direct Known Subclasses:
    PlaceHolder, Seg, Trans

    public class TextContent
    extends Object
    Contains the text content itself and supports inline tags

    Java class for TextContent complex type.

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

     <complexType name="TextContent">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <choice maxOccurs="unbounded" minOccurs="0">
             <element name="i" type="{}TextContent"/>
             <element name="b" type="{}TextContent"/>
             <element name="u" type="{}TextContent"/>
             <element name="sub" type="{}TextContent"/>
             <element name="sup" type="{}TextContent"/>
             <element name="br" type="{}Empty"/>
             <element name="ph" type="{}PlaceHolder"/>
             <element name="sph" type="{}StartPlaceHolder"/>
             <element name="eph" type="{}EndPlaceHolder"/>
           </choice>
         </restriction>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • TextContent

        public TextContent()
    • Method Detail

      • getContent

        public List<Serializable> getContent()
        Contains the text content itself and supports inline tags 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 JAXB 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 JAXBElement<TextContent> String JAXBElement<TextContent> JAXBElement<EndPlaceHolder> JAXBElement<TextContent> JAXBElement<PlaceHolder> JAXBElement<StartPlaceHolder> JAXBElement<TextContent> JAXBElement<Empty> JAXBElement<TextContent>