Package net.sf.okapi.filters.xini.jaxb
Class TextContent
- java.lang.Object
-
- net.sf.okapi.filters.xini.jaxb.TextContent
-
- Direct Known Subclasses:
PlaceHolder,Seg,Trans
public class TextContent extends Object
Contains the text content itself and supports inline tagsJava 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>
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Serializable>content
-
Constructor Summary
Constructors Constructor Description TextContent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Serializable>getContent()Contains the text content itself and supports inline tags Gets the value of the content property.
-
-
-
Field Detail
-
content
protected List<Serializable> content
-
-
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
setmethod 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>StringJAXBElement<TextContent>JAXBElement<EndPlaceHolder>JAXBElement<TextContent>JAXBElement<PlaceHolder>JAXBElement<StartPlaceHolder>JAXBElement<TextContent>JAXBElement<Empty>JAXBElement<TextContent>
-
-