Package org.docx4j.docProps.variantTypes
Class Variant
java.lang.Object
org.docx4j.docProps.variantTypes.Variant
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
Modifier and TypeFieldDescriptionprotected Integer
protected Null
protected Array
protected byte[]
protected Boolean
protected String
protected Cf
protected String
protected String
protected XMLGregorianCalendar
protected BigDecimal
protected Empty
protected String
protected XMLGregorianCalendar
protected Byte
protected Short
protected Integer
protected Long
protected String
protected String
protected byte[]
protected byte[]
protected byte[]
protected Float
protected Double
protected byte[]
protected byte[]
protected Short
protected Integer
protected Long
protected BigInteger
protected Long
protected Variant
protected Vector
protected Vstream
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetArray()
Arraybyte[]
getBlob()
Binary BlobgetBstr()
Basic StringgetCf()
Clipboard DatagetClsid()
Class IDgetCy()
CurrencygetDate()
Date and TimeDecimalgetEmpty()
EmptygetError()
Error Status CodeFile TimegetI1()
1-Byte Signed IntegergetI2()
2-Byte Signed IntegergetI4()
4-Byte Signed IntegergetI8()
8-Byte Signed IntegergetInt()
IntegergetLpstr()
LPSTRLPWSTRgetNull()
Nullbyte[]
getOblob()
Binary Blob Objectbyte[]
Binary Storage Objectbyte[]
Binary Stream ObjectgetR4()
4-Byte Real NumbergetR8()
8-Byte Real Numberbyte[]
Binary Storagebyte[]
Binary StreamgetUi1()
1-Byte Unsigned IntegergetUi2()
2-Byte Unsigned IntegergetUi4()
4-Byte Unsigned IntegergetUi8()
8-Byte Unsigned IntegergetUint()
Unsigned IntegerVariantVectorBinary Versioned StreamisBool()
Booleanvoid
Sets the value of the array property.void
setBlob
(byte[] value) Sets the value of the blob property.void
Sets the value of the bool property.void
Sets the value of the bstr property.void
Sets the value of the cf property.void
Sets the value of the clsid property.void
Sets the value of the cy property.void
setDate
(XMLGregorianCalendar value) Sets the value of the date property.void
setDecimal
(BigDecimal value) Sets the value of the decimal property.void
Sets the value of the empty property.void
Sets the value of the error property.void
setFiletime
(XMLGregorianCalendar value) Sets the value of the filetime property.void
Sets the value of the i1 property.void
Sets the value of the i2 property.void
Sets the value of the i4 property.void
Sets the value of the i8 property.void
Sets the value of the int property.void
Sets the value of the lpstr property.void
Sets the value of the lpwstr property.void
Sets the value of the null property.void
setOblob
(byte[] value) Sets the value of the oblob property.void
setOstorage
(byte[] value) Sets the value of the ostorage property.void
setOstream
(byte[] value) Sets the value of the ostream property.void
Sets the value of the r4 property.void
Sets the value of the r8 property.void
setStorage
(byte[] value) Sets the value of the storage property.void
setStream
(byte[] value) Sets the value of the stream property.void
Sets the value of the ui1 property.void
Sets the value of the ui2 property.void
Sets the value of the ui4 property.void
setUi8
(BigInteger value) Sets the value of the ui8 property.void
Sets the value of the uint property.void
setVariant
(Variant value) Sets the value of the variant property.void
Sets the value of the vector property.void
setVstream
(Vstream value) Sets the value of the vstream property.
-
Field Details
-
variant
-
vector
-
array
-
blob
protected byte[] blob -
oblob
protected byte[] oblob -
empty
-
_null
-
i1
-
i2
-
i4
-
i8
-
_int
-
ui1
-
ui2
-
ui4
-
ui8
-
uint
-
r4
-
r8
-
decimal
-
lpstr
-
lpwstr
-
bstr
-
date
-
filetime
-
bool
-
cy
-
error
-
stream
protected byte[] stream -
ostream
protected byte[] ostream -
storage
protected byte[] storage -
ostorage
protected byte[] ostorage -
vstream
-
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
1-Byte Signed Integer- Returns:
- possible object is
Byte
-
setI1
Sets the value of the i1 property.- Parameters:
value
- allowed object isByte
-
getI2
2-Byte Signed Integer- Returns:
- possible object is
Short
-
setI2
Sets the value of the i2 property.- Parameters:
value
- allowed object isShort
-
getI4
4-Byte Signed Integer- Returns:
- possible object is
Integer
-
setI4
Sets the value of the i4 property.- Parameters:
value
- allowed object isInteger
-
getI8
8-Byte Signed Integer- Returns:
- possible object is
Long
-
setI8
Sets the value of the i8 property.- Parameters:
value
- allowed object isLong
-
getInt
Integer- Returns:
- possible object is
Integer
-
setInt
Sets the value of the int property.- Parameters:
value
- allowed object isInteger
-
getUi1
1-Byte Unsigned Integer- Returns:
- possible object is
Short
-
setUi1
Sets the value of the ui1 property.- Parameters:
value
- allowed object isShort
-
getUi2
2-Byte Unsigned Integer- Returns:
- possible object is
Integer
-
setUi2
Sets the value of the ui2 property.- Parameters:
value
- allowed object isInteger
-
getUi4
4-Byte Unsigned Integer- Returns:
- possible object is
Long
-
setUi4
Sets the value of the ui4 property.- Parameters:
value
- allowed object isLong
-
getUi8
8-Byte Unsigned Integer- Returns:
- possible object is
BigInteger
-
setUi8
Sets the value of the ui8 property.- Parameters:
value
- allowed object isBigInteger
-
getUint
Unsigned Integer- Returns:
- possible object is
Long
-
setUint
Sets the value of the uint property.- Parameters:
value
- allowed object isLong
-
getR4
4-Byte Real Number- Returns:
- possible object is
Float
-
setR4
Sets the value of the r4 property.- Parameters:
value
- allowed object isFloat
-
getR8
8-Byte Real Number- Returns:
- possible object is
Double
-
setR8
Sets the value of the r8 property.- Parameters:
value
- allowed object isDouble
-
getDecimal
Decimal- Returns:
- possible object is
BigDecimal
-
setDecimal
Sets the value of the decimal property.- Parameters:
value
- allowed object isBigDecimal
-
getLpstr
LPSTR- Returns:
- possible object is
String
-
setLpstr
Sets the value of the lpstr property.- Parameters:
value
- allowed object isString
-
getLpwstr
LPWSTR- Returns:
- possible object is
String
-
setLpwstr
Sets the value of the lpwstr property.- Parameters:
value
- allowed object isString
-
getBstr
Basic String- Returns:
- possible object is
String
-
setBstr
Sets the value of the bstr property.- Parameters:
value
- allowed object isString
-
getDate
Date and Time- Returns:
- possible object is
XMLGregorianCalendar
-
setDate
Sets the value of the date property.- Parameters:
value
- allowed object isXMLGregorianCalendar
-
getFiletime
File Time- Returns:
- possible object is
XMLGregorianCalendar
-
setFiletime
Sets the value of the filetime property.- Parameters:
value
- allowed object isXMLGregorianCalendar
-
isBool
Boolean- Returns:
- possible object is
Boolean
-
setBool
Sets the value of the bool property.- Parameters:
value
- allowed object isBoolean
-
getCy
Currency- Returns:
- possible object is
String
-
setCy
Sets the value of the cy property.- Parameters:
value
- allowed object isString
-
getError
Error Status Code- Returns:
- possible object is
String
-
setError
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
Class ID- Returns:
- possible object is
String
-
setClsid
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
-