Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   *  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 
     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 java.util.List;

Java class for CT_Otherwise complex type.

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

 <complexType name="CT_Otherwise">
     <restriction base="{}anyType">
       <choice maxOccurs="unbounded" minOccurs="0">
         <element name="alg" type="{}CT_Algorithm" minOccurs="0"/>
         <element name="shape" type="{}CT_Shape" minOccurs="0"/>
         <element name="presOf" type="{}CT_PresentationOf" minOccurs="0"/>
         <element name="constrLst" type="{}CT_Constraints" minOccurs="0"/>
         <element name="ruleLst" type="{}CT_Rules" minOccurs="0"/>
         <element name="forEach" type="{}CT_ForEach"/>
         <element name="layoutNode" type="{}CT_LayoutNode"/>
         <element name="choose" type="{}CT_Choose"/>
         <element name="extLst" type="{}CT_OfficeArtExtensionList" minOccurs="0"/>
       <attribute name="name" type="{}string" default="" />
 @XmlType(name = "CT_Otherwise", propOrder = {
 public class CTOtherwise {
         @XmlElement(name = "forEach", type = CTForEach.class),
         @XmlElement(name = "presOf", type = CTPresentationOf.class),
         @XmlElement(name = "alg", type = CTAlgorithm.class),
         @XmlElement(name = "choose", type = CTChoose.class),
         @XmlElement(name = "constrLst", type = CTConstraints.class),
         @XmlElement(name = "layoutNode", type = CTLayoutNode.class),
         @XmlElement(name = "ruleLst", type = CTRules.class),
         @XmlElement(name = "shape", type = CTShape.class),
         @XmlElement(name = "extLst", type = CTOfficeArtExtensionList.class)
     protected List<ObjectalgOrShapeOrPresOf;
     protected String name;

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:


Objects of the following type(s) are allowed in the list

    public List<ObjectgetAlgOrShapeOrPresOf() {
        if ( == null) {
             = new ArrayList<Object>();
        return this.;

Gets the value of the name property.

possible object is
    public String getName() {
        if ( == null) {
            return "";
        } else {
            return ;

Sets the value of the name property.

value allowed object is
    public void setName(String value) {
        this. = value;
New to GrepCode? Check out our FAQ X