Package org.docx4j.docProps.variantTypes
Class Variant
java.lang.Object
org.docx4j.docProps.variantTypes.Variant
public class Variant
extends java.lang.Object
Java class for CT_Variant complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CT_Variant">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<choice>
<element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}variant"/>
<element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}vector"/>
<element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}array"/>
<element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}blob"/>
<element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}oblob"/>
<element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}empty"/>
<element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}null"/>
<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}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}ui8"/>
<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}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}stream"/>
<element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}ostream"/>
<element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}storage"/>
<element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}ostorage"/>
<element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}vstream"/>
<element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}clsid"/>
<element ref="{http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}cf"/>
</choice>
</restriction>
</complexContent>
</complexType>
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Integer_intprotected Null_nullprotected Arrayarrayprotected byte[]blobprotected java.lang.Booleanboolprotected java.lang.Stringbstrprotected Cfcfprotected java.lang.Stringclsidprotected java.lang.Stringcyprotected javax.xml.datatype.XMLGregorianCalendardateprotected java.math.BigDecimaldecimalprotected Emptyemptyprotected java.lang.Stringerrorprotected javax.xml.datatype.XMLGregorianCalendarfiletimeprotected java.lang.Bytei1protected java.lang.Shorti2protected java.lang.Integeri4protected java.lang.Longi8protected java.lang.Stringlpstrprotected java.lang.Stringlpwstrprotected byte[]oblobprotected byte[]ostorageprotected byte[]ostreamprotected java.lang.Floatr4protected java.lang.Doubler8protected byte[]storageprotected byte[]streamprotected java.lang.Shortui1protected java.lang.Integerui2protected java.lang.Longui4protected java.math.BigIntegerui8protected java.lang.Longuintprotected Variantvariantprotected Vectorvectorprotected Vstreamvstream -
Constructor Summary
Constructors Constructor Description Variant() -
Method Summary
Modifier and Type Method Description ArraygetArray()Arraybyte[]getBlob()Binary Blobjava.lang.StringgetBstr()Basic StringCfgetCf()Clipboard Datajava.lang.StringgetClsid()Class IDjava.lang.StringgetCy()Currencyjavax.xml.datatype.XMLGregorianCalendargetDate()Date and Timejava.math.BigDecimalgetDecimal()DecimalEmptygetEmpty()Emptyjava.lang.StringgetError()Error Status Codejavax.xml.datatype.XMLGregorianCalendargetFiletime()File Timejava.lang.BytegetI1()1-Byte Signed Integerjava.lang.ShortgetI2()2-Byte Signed Integerjava.lang.IntegergetI4()4-Byte Signed Integerjava.lang.LonggetI8()8-Byte Signed Integerjava.lang.IntegergetInt()Integerjava.lang.StringgetLpstr()LPSTRjava.lang.StringgetLpwstr()LPWSTRNullgetNull()Nullbyte[]getOblob()Binary Blob Objectbyte[]getOstorage()Binary Storage Objectbyte[]getOstream()Binary Stream Objectjava.lang.FloatgetR4()4-Byte Real Numberjava.lang.DoublegetR8()8-Byte Real Numberbyte[]getStorage()Binary Storagebyte[]getStream()Binary Streamjava.lang.ShortgetUi1()1-Byte Unsigned Integerjava.lang.IntegergetUi2()2-Byte Unsigned Integerjava.lang.LonggetUi4()4-Byte Unsigned Integerjava.math.BigIntegergetUi8()8-Byte Unsigned Integerjava.lang.LonggetUint()Unsigned IntegerVariantgetVariant()VariantVectorgetVector()VectorVstreamgetVstream()Binary Versioned Streamjava.lang.BooleanisBool()BooleanvoidsetArray(Array value)Sets the value of the array property.voidsetBlob(byte[] value)Sets the value of the blob property.voidsetBool(java.lang.Boolean value)Sets the value of the bool property.voidsetBstr(java.lang.String value)Sets the value of the bstr property.voidsetCf(Cf value)Sets the value of the cf property.voidsetClsid(java.lang.String value)Sets the value of the clsid property.voidsetCy(java.lang.String value)Sets the value of the cy property.voidsetDate(javax.xml.datatype.XMLGregorianCalendar value)Sets the value of the date property.voidsetDecimal(java.math.BigDecimal value)Sets the value of the decimal property.voidsetEmpty(Empty value)Sets the value of the empty property.voidsetError(java.lang.String value)Sets the value of the error property.voidsetFiletime(javax.xml.datatype.XMLGregorianCalendar value)Sets the value of the filetime property.voidsetI1(java.lang.Byte value)Sets the value of the i1 property.voidsetI2(java.lang.Short value)Sets the value of the i2 property.voidsetI4(java.lang.Integer value)Sets the value of the i4 property.voidsetI8(java.lang.Long value)Sets the value of the i8 property.voidsetInt(java.lang.Integer value)Sets the value of the int property.voidsetLpstr(java.lang.String value)Sets the value of the lpstr property.voidsetLpwstr(java.lang.String value)Sets the value of the lpwstr property.voidsetNull(Null value)Sets the value of the null property.voidsetOblob(byte[] value)Sets the value of the oblob property.voidsetOstorage(byte[] value)Sets the value of the ostorage property.voidsetOstream(byte[] value)Sets the value of the ostream property.voidsetR4(java.lang.Float value)Sets the value of the r4 property.voidsetR8(java.lang.Double value)Sets the value of the r8 property.voidsetStorage(byte[] value)Sets the value of the storage property.voidsetStream(byte[] value)Sets the value of the stream property.voidsetUi1(java.lang.Short value)Sets the value of the ui1 property.voidsetUi2(java.lang.Integer value)Sets the value of the ui2 property.voidsetUi4(java.lang.Long value)Sets the value of the ui4 property.voidsetUi8(java.math.BigInteger value)Sets the value of the ui8 property.voidsetUint(java.lang.Long value)Sets the value of the uint property.voidsetVariant(Variant value)Sets the value of the variant property.voidsetVector(Vector value)Sets the value of the vector property.voidsetVstream(Vstream value)Sets the value of the vstream property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
variant
-
vector
-
array
-
blob
protected byte[] blob -
oblob
protected byte[] oblob -
empty
-
_null
-
i1
protected java.lang.Byte i1 -
i2
protected java.lang.Short i2 -
i4
protected java.lang.Integer i4 -
i8
protected java.lang.Long i8 -
_int
protected java.lang.Integer _int -
ui1
protected java.lang.Short ui1 -
ui2
protected java.lang.Integer ui2 -
ui4
protected java.lang.Long ui4 -
ui8
protected java.math.BigInteger ui8 -
uint
protected java.lang.Long uint -
r4
protected java.lang.Float r4 -
r8
protected java.lang.Double r8 -
decimal
protected java.math.BigDecimal decimal -
lpstr
protected java.lang.String lpstr -
lpwstr
protected java.lang.String lpwstr -
bstr
protected java.lang.String bstr -
date
protected javax.xml.datatype.XMLGregorianCalendar date -
filetime
protected javax.xml.datatype.XMLGregorianCalendar filetime -
bool
protected java.lang.Boolean bool -
cy
protected java.lang.String cy -
error
protected java.lang.String error -
stream
protected byte[] stream -
ostream
protected byte[] ostream -
storage
protected byte[] storage -
ostorage
protected byte[] ostorage -
vstream
-
clsid
protected java.lang.String clsid -
cf
-
-
Constructor Details
-
Variant
public Variant()
-
-
Method Details
-
getVariant
Variant- Returns:
- possible object is
Variant
-
setVariant
Sets the value of the variant property.- Parameters:
value- allowed object isVariant
-
getVector
Vector- Returns:
- possible object is
Vector
-
setVector
Sets the value of the vector property.- Parameters:
value- allowed object isVector
-
getArray
Array- Returns:
- possible object is
Array
-
setArray
Sets the value of the array property.- Parameters:
value- allowed object isArray
-
getBlob
public byte[] getBlob()Binary Blob- Returns:
- possible object is byte[]
-
setBlob
public void setBlob(byte[] value)Sets the value of the blob property.- Parameters:
value- allowed object is byte[]
-
getOblob
public byte[] getOblob()Binary Blob Object- Returns:
- possible object is byte[]
-
setOblob
public void setOblob(byte[] value)Sets the value of the oblob property.- Parameters:
value- allowed object is byte[]
-
getEmpty
Empty- Returns:
- possible object is
Empty
-
setEmpty
Sets the value of the empty property.- Parameters:
value- allowed object isEmpty
-
getNull
Null- Returns:
- possible object is
Null
-
setNull
Sets the value of the null property.- Parameters:
value- allowed object isNull
-
getI1
public java.lang.Byte getI1()1-Byte Signed Integer- Returns:
- possible object is
Byte
-
setI1
public void setI1(java.lang.Byte value)Sets the value of the i1 property.- Parameters:
value- allowed object isByte
-
getI2
public java.lang.Short getI2()2-Byte Signed Integer- Returns:
- possible object is
Short
-
setI2
public void setI2(java.lang.Short value)Sets the value of the i2 property.- Parameters:
value- allowed object isShort
-
getI4
public java.lang.Integer getI4()4-Byte Signed Integer- Returns:
- possible object is
Integer
-
setI4
public void setI4(java.lang.Integer value)Sets the value of the i4 property.- Parameters:
value- allowed object isInteger
-
getI8
public java.lang.Long getI8()8-Byte Signed Integer- Returns:
- possible object is
Long
-
setI8
public void setI8(java.lang.Long value)Sets the value of the i8 property.- Parameters:
value- allowed object isLong
-
getInt
public java.lang.Integer getInt()Integer- Returns:
- possible object is
Integer
-
setInt
public void setInt(java.lang.Integer value)Sets the value of the int property.- Parameters:
value- allowed object isInteger
-
getUi1
public java.lang.Short getUi1()1-Byte Unsigned Integer- Returns:
- possible object is
Short
-
setUi1
public void setUi1(java.lang.Short value)Sets the value of the ui1 property.- Parameters:
value- allowed object isShort
-
getUi2
public java.lang.Integer getUi2()2-Byte Unsigned Integer- Returns:
- possible object is
Integer
-
setUi2
public void setUi2(java.lang.Integer value)Sets the value of the ui2 property.- Parameters:
value- allowed object isInteger
-
getUi4
public java.lang.Long getUi4()4-Byte Unsigned Integer- Returns:
- possible object is
Long
-
setUi4
public void setUi4(java.lang.Long value)Sets the value of the ui4 property.- Parameters:
value- allowed object isLong
-
getUi8
public java.math.BigInteger getUi8()8-Byte Unsigned Integer- Returns:
- possible object is
BigInteger
-
setUi8
public void setUi8(java.math.BigInteger value)Sets the value of the ui8 property.- Parameters:
value- allowed object isBigInteger
-
getUint
public java.lang.Long getUint()Unsigned Integer- Returns:
- possible object is
Long
-
setUint
public void setUint(java.lang.Long value)Sets the value of the uint property.- Parameters:
value- allowed object isLong
-
getR4
public java.lang.Float getR4()4-Byte Real Number- Returns:
- possible object is
Float
-
setR4
public void setR4(java.lang.Float value)Sets the value of the r4 property.- Parameters:
value- allowed object isFloat
-
getR8
public java.lang.Double getR8()8-Byte Real Number- Returns:
- possible object is
Double
-
setR8
public void setR8(java.lang.Double value)Sets the value of the r8 property.- Parameters:
value- allowed object isDouble
-
getDecimal
public java.math.BigDecimal getDecimal()Decimal- Returns:
- possible object is
BigDecimal
-
setDecimal
public void setDecimal(java.math.BigDecimal value)Sets the value of the decimal property.- Parameters:
value- allowed object isBigDecimal
-
getLpstr
public java.lang.String getLpstr()LPSTR- Returns:
- possible object is
String
-
setLpstr
public void setLpstr(java.lang.String value)Sets the value of the lpstr property.- Parameters:
value- allowed object isString
-
getLpwstr
public java.lang.String getLpwstr()LPWSTR- Returns:
- possible object is
String
-
setLpwstr
public void setLpwstr(java.lang.String value)Sets the value of the lpwstr property.- Parameters:
value- allowed object isString
-
getBstr
public java.lang.String getBstr()Basic String- Returns:
- possible object is
String
-
setBstr
public void setBstr(java.lang.String value)Sets the value of the bstr property.- Parameters:
value- allowed object isString
-
getDate
public javax.xml.datatype.XMLGregorianCalendar getDate()Date and Time- Returns:
- possible object is
XMLGregorianCalendar
-
setDate
public void setDate(javax.xml.datatype.XMLGregorianCalendar value)Sets the value of the date property.- Parameters:
value- allowed object isXMLGregorianCalendar
-
getFiletime
public javax.xml.datatype.XMLGregorianCalendar getFiletime()File Time- Returns:
- possible object is
XMLGregorianCalendar
-
setFiletime
public void setFiletime(javax.xml.datatype.XMLGregorianCalendar value)Sets the value of the filetime property.- Parameters:
value- allowed object isXMLGregorianCalendar
-
isBool
public java.lang.Boolean isBool()Boolean- Returns:
- possible object is
Boolean
-
setBool
public void setBool(java.lang.Boolean value)Sets the value of the bool property.- Parameters:
value- allowed object isBoolean
-
getCy
public java.lang.String getCy()Currency- Returns:
- possible object is
String
-
setCy
public void setCy(java.lang.String value)Sets the value of the cy property.- Parameters:
value- allowed object isString
-
getError
public java.lang.String getError()Error Status Code- Returns:
- possible object is
String
-
setError
public void setError(java.lang.String value)Sets the value of the error property.- Parameters:
value- allowed object isString
-
getStream
public byte[] getStream()Binary Stream- Returns:
- possible object is byte[]
-
setStream
public void setStream(byte[] value)Sets the value of the stream property.- Parameters:
value- allowed object is byte[]
-
getOstream
public byte[] getOstream()Binary Stream Object- Returns:
- possible object is byte[]
-
setOstream
public void setOstream(byte[] value)Sets the value of the ostream property.- Parameters:
value- allowed object is byte[]
-
getStorage
public byte[] getStorage()Binary Storage- Returns:
- possible object is byte[]
-
setStorage
public void setStorage(byte[] value)Sets the value of the storage property.- Parameters:
value- allowed object is byte[]
-
getOstorage
public byte[] getOstorage()Binary Storage Object- Returns:
- possible object is byte[]
-
setOstorage
public void setOstorage(byte[] value)Sets the value of the ostorage property.- Parameters:
value- allowed object is byte[]
-
getVstream
Binary Versioned Stream- Returns:
- possible object is
Vstream
-
setVstream
Sets the value of the vstream property.- Parameters:
value- allowed object isVstream
-
getClsid
public java.lang.String getClsid()Class ID- Returns:
- possible object is
String
-
setClsid
public void setClsid(java.lang.String value)Sets the value of the clsid property.- Parameters:
value- allowed object isString
-
getCf
Clipboard Data- Returns:
- possible object is
Cf
-
setCf
Sets the value of the cf property.- Parameters:
value- allowed object isCf
-