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

org.docx4j.dml.diagram.CTWhen Maven / Gradle / Ivy

The newest version!
/*
 *  Copyright 2007-2008, 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.dml.diagram;

import org.docx4j.dml.ArrayListDml;
import java.util.List;
import jakarta.xml.bind.Unmarshaller;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlElements;
import jakarta.xml.bind.annotation.XmlTransient;
import jakarta.xml.bind.annotation.XmlType;
import org.docx4j.dml.CTOfficeArtExtensionList;
import org.jvnet.jaxb2_commons.ppp.Child;


/**
 * 

Java class for CT_When complex type. * *

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

 * <complexType name="CT_When">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <choice maxOccurs="unbounded" minOccurs="0">
 *         <element name="alg" type="{http://schemas.openxmlformats.org/drawingml/2006/diagram}CT_Algorithm" minOccurs="0"/>
 *         <element name="shape" type="{http://schemas.openxmlformats.org/drawingml/2006/diagram}CT_Shape" minOccurs="0"/>
 *         <element name="presOf" type="{http://schemas.openxmlformats.org/drawingml/2006/diagram}CT_PresentationOf" minOccurs="0"/>
 *         <element name="constrLst" type="{http://schemas.openxmlformats.org/drawingml/2006/diagram}CT_Constraints" minOccurs="0"/>
 *         <element name="ruleLst" type="{http://schemas.openxmlformats.org/drawingml/2006/diagram}CT_Rules" minOccurs="0"/>
 *         <element name="forEach" type="{http://schemas.openxmlformats.org/drawingml/2006/diagram}CT_ForEach"/>
 *         <element name="layoutNode" type="{http://schemas.openxmlformats.org/drawingml/2006/diagram}CT_LayoutNode"/>
 *         <element name="choose" type="{http://schemas.openxmlformats.org/drawingml/2006/diagram}CT_Choose"/>
 *         <element name="extLst" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_OfficeArtExtensionList" minOccurs="0"/>
 *       </choice>
 *       <attGroup ref="{http://schemas.openxmlformats.org/drawingml/2006/diagram}AG_IteratorAttributes"/>
 *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
 *       <attribute name="func" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/diagram}ST_FunctionType" />
 *       <attribute name="arg" type="{http://schemas.openxmlformats.org/drawingml/2006/diagram}ST_FunctionArgument" default="none" />
 *       <attribute name="op" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/diagram}ST_FunctionOperator" />
 *       <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/diagram}ST_FunctionValue" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CT_When", propOrder = { "algOrShapeOrPresOf" }) public class CTWhen implements Child { @XmlElements({ @XmlElement(name = "alg", type = CTAlgorithm.class), @XmlElement(name = "shape", type = CTShape.class), @XmlElement(name = "presOf", type = CTPresentationOf.class), @XmlElement(name = "constrLst", type = CTConstraints.class), @XmlElement(name = "ruleLst", type = CTRules.class), @XmlElement(name = "forEach", type = CTForEach.class), @XmlElement(name = "layoutNode", type = CTLayoutNode.class), @XmlElement(name = "choose", type = CTChoose.class), @XmlElement(name = "extLst", type = CTOfficeArtExtensionList.class) }) protected List algOrShapeOrPresOf = new ArrayListDml(this); @XmlAttribute(name = "name") protected String name; @XmlAttribute(name = "func", required = true) protected STFunctionType func; @XmlAttribute(name = "arg") protected String arg; @XmlAttribute(name = "op", required = true) protected STFunctionOperator op; @XmlAttribute(name = "val", required = true) protected String val; @XmlAttribute(name = "axis") protected List axis = new ArrayListDml(this); @XmlAttribute(name = "ptType") protected List ptType = new ArrayListDml(this); @XmlAttribute(name = "hideLastTrans") protected List hideLastTrans = new ArrayListDml(this); @XmlAttribute(name = "st") protected List st = new ArrayListDml(this); @XmlAttribute(name = "cnt") protected List cnt = new ArrayListDml(this); @XmlAttribute(name = "step") protected List step = new ArrayListDml(this); @XmlTransient private Object parent; /** * Gets the value of the algOrShapeOrPresOf 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 algOrShapeOrPresOf property. * *

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

     *    getAlgOrShapeOrPresOf().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CTAlgorithm } * {@link CTShape } * {@link CTPresentationOf } * {@link CTConstraints } * {@link CTRules } * {@link CTForEach } * {@link CTLayoutNode } * {@link CTChoose } * {@link CTOfficeArtExtensionList } * * */ public List getAlgOrShapeOrPresOf() { if (algOrShapeOrPresOf == null) { algOrShapeOrPresOf = new ArrayListDml(this); } return this.algOrShapeOrPresOf; } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { if (name == null) { return ""; } else { return name; } } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the func property. * * @return * possible object is * {@link STFunctionType } * */ public STFunctionType getFunc() { return func; } /** * Sets the value of the func property. * * @param value * allowed object is * {@link STFunctionType } * */ public void setFunc(STFunctionType value) { this.func = value; } /** * Gets the value of the arg property. * * @return * possible object is * {@link String } * */ public String getArg() { if (arg == null) { return "none"; } else { return arg; } } /** * Sets the value of the arg property. * * @param value * allowed object is * {@link String } * */ public void setArg(String value) { this.arg = value; } /** * Gets the value of the op property. * * @return * possible object is * {@link STFunctionOperator } * */ public STFunctionOperator getOp() { return op; } /** * Sets the value of the op property. * * @param value * allowed object is * {@link STFunctionOperator } * */ public void setOp(STFunctionOperator value) { this.op = value; } /** * 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 axis 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 axis property. * *

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

     *    getAxis().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link STAxisType } * * */ public List getAxis() { if (axis == null) { axis = new ArrayListDml(this); } return this.axis; } /** * Gets the value of the ptType 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 ptType property. * *

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

     *    getPtType().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link STElementType } * * */ public List getPtType() { if (ptType == null) { ptType = new ArrayListDml(this); } return this.ptType; } /** * Gets the value of the hideLastTrans 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 hideLastTrans property. * *

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

     *    getHideLastTrans().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Boolean } * * */ public List getHideLastTrans() { if (hideLastTrans == null) { hideLastTrans = new ArrayListDml(this); } return this.hideLastTrans; } /** * Gets the value of the st 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 st property. * *

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

     *    getSt().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Integer } * * */ public List getSt() { if (st == null) { st = new ArrayListDml(this); } return this.st; } /** * Gets the value of the cnt 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 cnt property. * *

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

     *    getCnt().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Long } * * */ public List getCnt() { if (cnt == null) { cnt = new ArrayListDml(this); } return this.cnt; } /** * Gets the value of the step 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 step property. * *

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

     *    getStep().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Integer } * * */ public List getStep() { if (step == null) { step = new ArrayListDml(this); } return this.step; } /** * 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); } }