org.docx4j.docProps.variantTypes.Array Maven / Gradle / Ivy
Show all versions of docx4j Show documentation
/*
* 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.docProps.variantTypes;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
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.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
/**
* Java class for CT_Array complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="CT_Array">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <choice maxOccurs="unbounded">
* <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}variant"/>
* <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}i1"/>
* <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}i2"/>
* <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}i4"/>
* <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}int"/>
* <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}ui1"/>
* <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}ui2"/>
* <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}ui4"/>
* <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}uint"/>
* <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}r4"/>
* <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}r8"/>
* <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}decimal"/>
* <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}bstr"/>
* <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}date"/>
* <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}bool"/>
* <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}error"/>
* <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}cy"/>
* </choice>
* <attribute name="lBounds" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
* <attribute name="uBounds" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
* <attribute name="baseType" use="required">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="variant"/>
* <enumeration value="i1"/>
* <enumeration value="i2"/>
* <enumeration value="i4"/>
* <enumeration value="int"/>
* <enumeration value="ui1"/>
* <enumeration value="ui2"/>
* <enumeration value="ui4"/>
* <enumeration value="uint"/>
* <enumeration value="r4"/>
* <enumeration value="r8"/>
* <enumeration value="decimal"/>
* <enumeration value="bstr"/>
* <enumeration value="date"/>
* <enumeration value="bool"/>
* <enumeration value="cy"/>
* <enumeration value="error"/>
* </restriction>
* </simpleType>
* </attribute>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CT_Array", propOrder = {
"variantOrI1OrI2"
})
public class Array {
@XmlElementRefs({
@XmlElementRef(name = "r4", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", type = JAXBElement.class),
@XmlElementRef(name = "int", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", type = JAXBElement.class),
@XmlElementRef(name = "i1", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", type = JAXBElement.class),
@XmlElementRef(name = "ui2", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", type = JAXBElement.class),
@XmlElementRef(name = "error", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", type = JAXBElement.class),
@XmlElementRef(name = "uint", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", type = JAXBElement.class),
@XmlElementRef(name = "date", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", type = JAXBElement.class),
@XmlElementRef(name = "i4", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", type = JAXBElement.class),
@XmlElementRef(name = "variant", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", type = JAXBElement.class),
@XmlElementRef(name = "ui1", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", type = JAXBElement.class),
@XmlElementRef(name = "decimal", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", type = JAXBElement.class),
@XmlElementRef(name = "bstr", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", type = JAXBElement.class),
@XmlElementRef(name = "ui4", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", type = JAXBElement.class),
@XmlElementRef(name = "bool", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", type = JAXBElement.class),
@XmlElementRef(name = "r8", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", type = JAXBElement.class),
@XmlElementRef(name = "cy", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", type = JAXBElement.class),
@XmlElementRef(name = "i2", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", type = JAXBElement.class)
})
protected List> variantOrI1OrI2;
@XmlAttribute(required = true)
protected int lBounds;
@XmlAttribute(required = true)
protected int uBounds;
@XmlAttribute(required = true)
protected String baseType;
/**
* Gets the value of the variantOrI1OrI2 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 variantOrI1OrI2 property.
*
*
* For example, to add a new item, do as follows:
*
* getVariantOrI1OrI2().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JAXBElement }{@code <}{@link Integer }{@code >}
* {@link JAXBElement }{@code <}{@link Float }{@code >}
* {@link JAXBElement }{@code <}{@link Byte }{@code >}
* {@link JAXBElement }{@code <}{@link Integer }{@code >}
* {@link JAXBElement }{@code <}{@link Long }{@code >}
* {@link JAXBElement }{@code <}{@link String }{@code >}
* {@link JAXBElement }{@code <}{@link Integer }{@code >}
* {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}
* {@link JAXBElement }{@code <}{@link Variant }{@code >}
* {@link JAXBElement }{@code <}{@link Short }{@code >}
* {@link JAXBElement }{@code <}{@link BigDecimal }{@code >}
* {@link JAXBElement }{@code <}{@link String }{@code >}
* {@link JAXBElement }{@code <}{@link Long }{@code >}
* {@link JAXBElement }{@code <}{@link Boolean }{@code >}
* {@link JAXBElement }{@code <}{@link Double }{@code >}
* {@link JAXBElement }{@code <}{@link String }{@code >}
* {@link JAXBElement }{@code <}{@link Short }{@code >}
*
*
*/
public List> getVariantOrI1OrI2() {
if (variantOrI1OrI2 == null) {
variantOrI1OrI2 = new ArrayList>();
}
return this.variantOrI1OrI2;
}
/**
* Gets the value of the lBounds property.
*
*/
public int getLBounds() {
return lBounds;
}
/**
* Sets the value of the lBounds property.
*
*/
public void setLBounds(int value) {
this.lBounds = value;
}
/**
* Gets the value of the uBounds property.
*
*/
public int getUBounds() {
return uBounds;
}
/**
* Sets the value of the uBounds property.
*
*/
public void setUBounds(int value) {
this.uBounds = value;
}
/**
* Gets the value of the baseType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBaseType() {
return baseType;
}
/**
* Sets the value of the baseType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBaseType(String value) {
this.baseType = value;
}
}