Class Vector

java.lang.Object
org.docx4j.docProps.variantTypes.Vector

public class Vector extends Object

Java class for CT_Vector complex type.

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

 <complexType name="CT_Vector">
   <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}i8"/>
         <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}ui8"/>
         <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}lpstr"/>
         <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}lpwstr"/>
         <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}filetime"/>
         <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}bool"/>
         <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}cy"/>
         <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}error"/>
         <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}clsid"/>
         <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}cf"/>
       </choice>
       <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="i8"/>
             <enumeration value="ui1"/>
             <enumeration value="ui2"/>
             <enumeration value="ui4"/>
             <enumeration value="ui8"/>
             <enumeration value="r4"/>
             <enumeration value="r8"/>
             <enumeration value="lpstr"/>
             <enumeration value="lpwstr"/>
             <enumeration value="bstr"/>
             <enumeration value="date"/>
             <enumeration value="filetime"/>
             <enumeration value="bool"/>
             <enumeration value="cy"/>
             <enumeration value="error"/>
             <enumeration value="clsid"/>
             <enumeration value="cf"/>
           </restriction>
         </simpleType>
       </attribute>
       <attribute name="size" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

    • variantOrI1OrI2

      protected List<jakarta.xml.bind.JAXBElement<?>> variantOrI1OrI2
    • baseType

      protected String baseType
    • size

      protected long size
  • Constructor Details

    • Vector

      public Vector()
  • Method Details

    • getVariantOrI1OrI2

      public List<jakarta.xml.bind.JAXBElement<?>> getVariantOrI1OrI2()
      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 JAXBElement<String> JAXBElement<Float> JAXBElement<Byte> JAXBElement<Integer> JAXBElement<String> JAXBElement<Long> JAXBElement<Integer> JAXBElement<XMLGregorianCalendar> JAXBElement<Variant> JAXBElement<BigInteger> JAXBElement<Short> JAXBElement<String> JAXBElement<String> JAXBElement<Long> JAXBElement<Boolean> JAXBElement<Double> JAXBElement<String> JAXBElement<XMLGregorianCalendar> JAXBElement<Short> JAXBElement<Cf> JAXBElement<String>

    • getBaseType

      public String getBaseType()
      Gets the value of the baseType property.
      Returns:
      possible object is String
    • setBaseType

      public void setBaseType(String value)
      Sets the value of the baseType property.
      Parameters:
      value - allowed object is String
    • getSize

      public long getSize()
      Gets the value of the size property.
    • setSize

      public void setSize(long value)
      Sets the value of the size property.