All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openfuxml.content.ofx.Paragraph Maven / Gradle / Ivy


package org.openfuxml.content.ofx;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.openfuxml.content.editorial.Acronym;
import org.openfuxml.content.editorial.Glossary;
import org.openfuxml.content.editorial.Index;
import org.openfuxml.content.layout.Font;
import org.openfuxml.content.media.Image;
import org.openfuxml.content.text.Emphasis;
import org.openfuxml.content.text.Symbol;


/**
 * 

Java class for anonymous complex type. * *

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

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{http://www.openfuxml.org/layout}font"/>
 *         <element ref="{http://www.openfuxml.org/text}emphasis" maxOccurs="unbounded"/>
 *         <element ref="{http://www.openfuxml.org/text}symbol" maxOccurs="unbounded"/>
 *         <element ref="{http://www.openfuxml.org}marginalia" maxOccurs="unbounded"/>
 *         <element ref="{http://www.openfuxml.org/editorial}glossary" maxOccurs="unbounded"/>
 *         <element ref="{http://www.openfuxml.org/editorial}acronym" maxOccurs="unbounded"/>
 *         <element ref="{http://www.openfuxml.org/editorial}index" maxOccurs="unbounded"/>
 *         <element ref="{http://www.openfuxml.org}reference" maxOccurs="unbounded"/>
 *         <element ref="{http://www.openfuxml.org/media}image"/>
 *       </sequence>
 *       <attribute name="lang" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="top" use="required">
 *         <simpleType>
 *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *             <enumeration value="normal"/>
 *             <enumeration value="small"/>
 *             <enumeration value="mini"/>
 *             <enumeration value="zero"/>
 *           </restriction>
 *         </simpleType>
 *       </attribute>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "content" }) @XmlRootElement(name = "paragraph") public class Paragraph implements Serializable { private final static long serialVersionUID = 1L; @XmlElementRefs({ @XmlElementRef(name = "symbol", namespace = "http://www.openfuxml.org/text", type = Symbol.class), @XmlElementRef(name = "reference", namespace = "http://www.openfuxml.org", type = Reference.class), @XmlElementRef(name = "marginalia", namespace = "http://www.openfuxml.org", type = Marginalia.class), @XmlElementRef(name = "acronym", namespace = "http://www.openfuxml.org/editorial", type = Acronym.class), @XmlElementRef(name = "glossary", namespace = "http://www.openfuxml.org/editorial", type = Glossary.class), @XmlElementRef(name = "image", namespace = "http://www.openfuxml.org/media", type = Image.class), @XmlElementRef(name = "font", namespace = "http://www.openfuxml.org/layout", type = Font.class), @XmlElementRef(name = "emphasis", namespace = "http://www.openfuxml.org/text", type = Emphasis.class), @XmlElementRef(name = "index", namespace = "http://www.openfuxml.org/editorial", type = Index.class) }) @XmlMixed protected List content; @XmlAttribute(name = "lang") protected String lang; @XmlAttribute(name = "top", required = true) protected String top; /** * 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 * {@link Symbol } * {@link Reference } * {@link Marginalia } * {@link Acronym } * {@link Glossary } * {@link Image } * {@link String } * {@link Font } * {@link Emphasis } * {@link Index } * * */ public List getContent() { if (content == null) { content = new ArrayList(); } return this.content; } public boolean isSetContent() { return ((this.content!= null)&&(!this.content.isEmpty())); } public void unsetContent() { this.content = null; } /** * Gets the value of the lang property. * * @return * possible object is * {@link String } * */ public String getLang() { return lang; } /** * Sets the value of the lang property. * * @param value * allowed object is * {@link String } * */ public void setLang(String value) { this.lang = value; } public boolean isSetLang() { return (this.lang!= null); } /** * Gets the value of the top property. * * @return * possible object is * {@link String } * */ public String getTop() { return top; } /** * Sets the value of the top property. * * @param value * allowed object is * {@link String } * */ public void setTop(String value) { this.top = value; } public boolean isSetTop() { return (this.top!= null); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy