/* * Copyright 2007-2013, Plutext Pty Ltd. * * This file is part of docx4j. docx4j is licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package org.docx4j.wml; import java.math.BigInteger; import javax.xml.bind.Unmarshaller; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlTransient; import javax.xml.bind.annotation.XmlType; import org.jvnet.jaxb2_commons.ppp.Child; /** * <p>Java class for CT_Lvl complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="CT_Lvl"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="start" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="val" use="required"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}integer"> * </restriction> * </simpleType> * </attribute> * </restriction> * </complexContent> * </complexType> * </element> * <element name="numFmt" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_NumFmt" minOccurs="0"/> * <element name="lvlRestart" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="val" use="required"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}integer"> * </restriction> * </simpleType> * </attribute> * </restriction> * </complexContent> * </complexType> * </element> * <element name="pStyle" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </element> * <element name="isLgl" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/> * <element name="suff" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="val" use="required"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <enumeration value="tab"/> * <enumeration value="space"/> * <enumeration value="nothing"/> * </restriction> * </simpleType> * </attribute> * </restriction> * </complexContent> * </complexType> * </element> * <element name="lvlText" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="val" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" /> * <attribute name="null" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> * </restriction> * </complexContent> * </complexType> * </element> * <element name="lvlPicBulletId" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="val" use="required"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}integer"> * </restriction> * </simpleType> * </attribute> * </restriction> * </complexContent> * </complexType> * </element> * <element name="legacy" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="legacy" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> * <attribute name="legacySpace" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_TwipsMeasure" /> * <attribute name="legacyIndent" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_SignedTwipsMeasure" /> * </restriction> * </complexContent> * </complexType> * </element> * <element name="lvlJc" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Jc" minOccurs="0"/> * <element name="pPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_PPr" minOccurs="0"/> * <element name="rPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_RPr" minOccurs="0"/> * </sequence> * <attribute name="ilvl" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" /> * <attribute name="tplc" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_LongHexNumber" /> * <attribute name="tentative" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CT_Lvl", propOrder = { "start", "numFmt", "lvlRestart", "pStyle", "isLgl", "suff", "lvlText", "lvlPicBulletId", "legacy", "lvlJc", "pPr", "rPr" }) public class Lvl implements Child { protected Lvl.Start start; protected NumFmt numFmt; protected Lvl.LvlRestart lvlRestart; protected Lvl.PStyle pStyle; protected BooleanDefaultTrue isLgl; protected Lvl.Suff suff; protected Lvl.LvlText lvlText; protected Lvl.LvlPicBulletId lvlPicBulletId; protected Lvl.Legacy legacy; protected Jc lvlJc; protected PPr pPr; protected RPr rPr; @XmlAttribute(name = "ilvl", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true) protected BigInteger ilvl; @XmlAttribute(name = "tplc", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") protected String tplc; @XmlAttribute(name = "tentative", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") protected Boolean tentative; @XmlTransient private Object parent; /** * Gets the value of the start property. * * @return * possible object is * {@link Lvl.Start } * */ public Lvl.Start getStart() { return start; } /** * Sets the value of the start property. * * @param value * allowed object is * {@link Lvl.Start } * */ public void setStart(Lvl.Start value) { this.start = value; } /** * Gets the value of the numFmt property. * * @return * possible object is * {@link NumFmt } * */ public NumFmt getNumFmt() { return numFmt; } /** * Sets the value of the numFmt property. * * @param value * allowed object is * {@link NumFmt } * */ public void setNumFmt(NumFmt value) { this.numFmt = value; } /** * Gets the value of the lvlRestart property. * * @return * possible object is * {@link Lvl.LvlRestart } * */ public Lvl.LvlRestart getLvlRestart() { return lvlRestart; } /** * Sets the value of the lvlRestart property. * * @param value * allowed object is * {@link Lvl.LvlRestart } * */ public void setLvlRestart(Lvl.LvlRestart value) { this.lvlRestart = value; } /** * Gets the value of the pStyle property. * * @return * possible object is * {@link Lvl.PStyle } * */ public Lvl.PStyle getPStyle() { return pStyle; } /** * Sets the value of the pStyle property. * * @param value * allowed object is * {@link Lvl.PStyle } * */ public void setPStyle(Lvl.PStyle value) { this.pStyle = value; } /** * Gets the value of the isLgl property. * * @return * possible object is * {@link BooleanDefaultTrue } * */ public BooleanDefaultTrue getIsLgl() { return isLgl; } /** * Sets the value of the isLgl property. * * @param value * allowed object is * {@link BooleanDefaultTrue } * */ public void setIsLgl(BooleanDefaultTrue value) { this.isLgl = value; } /** * Gets the value of the suff property. * * @return * possible object is * {@link Lvl.Suff } * */ public Lvl.Suff getSuff() { return suff; } /** * Sets the value of the suff property. * * @param value * allowed object is * {@link Lvl.Suff } * */ public void setSuff(Lvl.Suff value) { this.suff = value; } /** * Gets the value of the lvlText property. * * @return * possible object is * {@link Lvl.LvlText } * */ public Lvl.LvlText getLvlText() { return lvlText; } /** * Sets the value of the lvlText property. * * @param value * allowed object is * {@link Lvl.LvlText } * */ public void setLvlText(Lvl.LvlText value) { this.lvlText = value; } /** * Gets the value of the lvlPicBulletId property. * * @return * possible object is * {@link Lvl.LvlPicBulletId } * */ public Lvl.LvlPicBulletId getLvlPicBulletId() { return lvlPicBulletId; } /** * Sets the value of the lvlPicBulletId property. * * @param value * allowed object is * {@link Lvl.LvlPicBulletId } * */ public void setLvlPicBulletId(Lvl.LvlPicBulletId value) { this.lvlPicBulletId = value; } /** * Gets the value of the legacy property. * * @return * possible object is * {@link Lvl.Legacy } * */ public Lvl.Legacy getLegacy() { return legacy; } /** * Sets the value of the legacy property. * * @param value * allowed object is * {@link Lvl.Legacy } * */ public void setLegacy(Lvl.Legacy value) { this.legacy = value; } /** * Gets the value of the lvlJc property. * * @return * possible object is * {@link Jc } * */ public Jc getLvlJc() { return lvlJc; } /** * Sets the value of the lvlJc property. * * @param value * allowed object is * {@link Jc } * */ public void setLvlJc(Jc value) { this.lvlJc = value; } /** * Gets the value of the pPr property. * * @return * possible object is * {@link PPr } * */ public PPr getPPr() { return pPr; } /** * Sets the value of the pPr property. * * @param value * allowed object is * {@link PPr } * */ public void setPPr(PPr value) { this.pPr = value; } /** * Gets the value of the rPr property. * * @return * possible object is * {@link RPr } * */ public RPr getRPr() { return rPr; } /** * Sets the value of the rPr property. * * @param value * allowed object is * {@link RPr } * */ public void setRPr(RPr value) { this.rPr = value; } /** * Gets the value of the ilvl property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getIlvl() { return ilvl; } /** * Sets the value of the ilvl property. * * @param value * allowed object is * {@link BigInteger } * */ public void setIlvl(BigInteger value) { this.ilvl = value; } /** * Gets the value of the tplc property. * * @return * possible object is * {@link String } * */ public String getTplc() { return tplc; } /** * Sets the value of the tplc property. * * @param value * allowed object is * {@link String } * */ public void setTplc(String value) { this.tplc = value; } /** * Gets the value of the tentative property. * * @return * possible object is * {@link Boolean } * */ public boolean isTentative() { if (tentative == null) { return true; } else { return tentative; } } /** * Sets the value of the tentative property. * * @param value * allowed object is * {@link Boolean } * */ public void setTentative(Boolean value) { this.tentative = value; } /** * Gets the parent object in the object tree representing the unmarshalled xml document. * * @return * The parent object. */ public Object getParent() { return this.parent; } public void setParent(Object parent) { this.parent = parent; } /** * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. * * @param parent * The parent object in the object tree. * @param unmarshaller * The unmarshaller that generated the instance. */ public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { setParent(parent); } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="legacy" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> * <attribute name="legacySpace" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_TwipsMeasure" /> * <attribute name="legacyIndent" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_SignedTwipsMeasure" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class Legacy implements Child { @XmlAttribute(name = "legacy", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") protected Boolean legacy; @XmlAttribute(name = "legacySpace", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") protected BigInteger legacySpace; @XmlAttribute(name = "legacyIndent", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") protected BigInteger legacyIndent; @XmlTransient private Object parent; /** * Gets the value of the legacy property. * * @return * possible object is * {@link Boolean } * */ public boolean isLegacy() { if (legacy == null) { return true; } else { return legacy; } } /** * Sets the value of the legacy property. * * @param value * allowed object is * {@link Boolean } * */ public void setLegacy(Boolean value) { this.legacy = value; } /** * Gets the value of the legacySpace property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getLegacySpace() { return legacySpace; } /** * Sets the value of the legacySpace property. * * @param value * allowed object is * {@link BigInteger } * */ public void setLegacySpace(BigInteger value) { this.legacySpace = value; } /** * Gets the value of the legacyIndent property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getLegacyIndent() { return legacyIndent; } /** * Sets the value of the legacyIndent property. * * @param value * allowed object is * {@link BigInteger } * */ public void setLegacyIndent(BigInteger value) { this.legacyIndent = value; } /** * Gets the parent object in the object tree representing the unmarshalled xml document. * * @return * The parent object. */ public Object getParent() { return this.parent; } public void setParent(Object parent) { this.parent = parent; } /** * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. * * @param parent * The parent object in the object tree. * @param unmarshaller * The unmarshaller that generated the instance. */ public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { setParent(parent); } } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="val" use="required"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}integer"> * </restriction> * </simpleType> * </attribute> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class LvlPicBulletId implements Child { @XmlAttribute(name = "val", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true) protected BigInteger val; @XmlTransient private Object parent; /** * Gets the value of the val property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getVal() { return val; } /** * Sets the value of the val property. * * @param value * allowed object is * {@link BigInteger } * */ public void setVal(BigInteger value) { this.val = value; } /** * Gets the parent object in the object tree representing the unmarshalled xml document. * * @return * The parent object. */ public Object getParent() { return this.parent; } public void setParent(Object parent) { this.parent = parent; } /** * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. * * @param parent * The parent object in the object tree. * @param unmarshaller * The unmarshaller that generated the instance. */ public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { setParent(parent); } } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="val" use="required"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}integer"> * </restriction> * </simpleType> * </attribute> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class LvlRestart implements Child { @XmlAttribute(name = "val", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true) protected BigInteger val; @XmlTransient private Object parent; /** * Gets the value of the val property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getVal() { return val; } /** * Sets the value of the val property. * * @param value * allowed object is * {@link BigInteger } * */ public void setVal(BigInteger value) { this.val = value; } /** * Gets the parent object in the object tree representing the unmarshalled xml document. * * @return * The parent object. */ public Object getParent() { return this.parent; } public void setParent(Object parent) { this.parent = parent; } /** * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. * * @param parent * The parent object in the object tree. * @param unmarshaller * The unmarshaller that generated the instance. */ public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { setParent(parent); } } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="val" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" /> * <attribute name="null" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class LvlText implements Child { @XmlAttribute(name = "val", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") protected String val; @XmlAttribute(name = "null", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") protected Boolean _null; @XmlTransient private Object parent; /** * Gets the value of the val property. * * @return * possible object is * {@link String } * */ public String getVal() { return val; } /** * Sets the value of the val property. * * @param value * allowed object is * {@link String } * */ public void setVal(String value) { this.val = value; } /** * Gets the value of the null property. * * @return * possible object is * {@link Boolean } * */ public boolean isNull() { if (_null == null) { return true; } else { return _null; } } /** * Sets the value of the null property. * * @param value * allowed object is * {@link Boolean } * */ public void setNull(Boolean value) { this._null = value; } /** * Gets the parent object in the object tree representing the unmarshalled xml document. * * @return * The parent object. */ public Object getParent() { return this.parent; } public void setParent(Object parent) { this.parent = parent; } /** * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. * * @param parent * The parent object in the object tree. * @param unmarshaller * The unmarshaller that generated the instance. */ public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { setParent(parent); } } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class PStyle implements Child { @XmlAttribute(name = "val", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") protected String val; @XmlTransient private Object parent; /** * Gets the value of the val property. * * @return * possible object is * {@link String } * */ public String getVal() { return val; } /** * Sets the value of the val property. * * @param value * allowed object is * {@link String } * */ public void setVal(String value) { this.val = value; } /** * Gets the parent object in the object tree representing the unmarshalled xml document. * * @return * The parent object. */ public Object getParent() { return this.parent; } public void setParent(Object parent) { this.parent = parent; } /** * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. * * @param parent * The parent object in the object tree. * @param unmarshaller * The unmarshaller that generated the instance. */ public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { setParent(parent); } } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="val" use="required"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}integer"> * </restriction> * </simpleType> * </attribute> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class Start implements Child { @XmlAttribute(name = "val", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true) protected BigInteger val; @XmlTransient private Object parent; /** * Gets the value of the val property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getVal() { return val; } /** * Sets the value of the val property. * * @param value * allowed object is * {@link BigInteger } * */ public void setVal(BigInteger value) { this.val = value; } /** * Gets the parent object in the object tree representing the unmarshalled xml document. * * @return * The parent object. */ public Object getParent() { return this.parent; } public void setParent(Object parent) { this.parent = parent; } /** * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. * * @param parent * The parent object in the object tree. * @param unmarshaller * The unmarshaller that generated the instance. */ public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { setParent(parent); } } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="val" use="required"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <enumeration value="tab"/> * <enumeration value="space"/> * <enumeration value="nothing"/> * </restriction> * </simpleType> * </attribute> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class Suff implements Child { @XmlAttribute(name = "val", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true) protected String val; @XmlTransient private Object parent; /** * Gets the value of the val property. * * @return * possible object is * {@link String } * */ public String getVal() { return val; } /** * Sets the value of the val property. * * @param value * allowed object is * {@link String } * */ public void setVal(String value) { this.val = value; } /** * Gets the parent object in the object tree representing the unmarshalled xml document. * * @return * The parent object. */ public Object getParent() { return this.parent; } public void setParent(Object parent) { this.parent = parent; } /** * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. * * @param parent * The parent object in the object tree. * @param unmarshaller * The unmarshaller that generated the instance. */ public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { setParent(parent); } } }