public class EscherComplexProperty extends EscherProperty
Modifier and Type | Field and Description |
---|---|
protected byte[] |
_complexData |
Constructor and Description |
---|
EscherComplexProperty(short propertyNumber,
boolean isBlipId,
byte[] complexData)
Create a complex property using the property number, a flag to indicate whether this is a
blip reference and the complex property data.
|
EscherComplexProperty(short id,
byte[] complexData)
Create a complex property using the property id and a byte array containing the complex
data value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Determine whether this property is equal to another property.
|
byte[] |
getComplexData()
Get the complex data value.
|
int |
getPropertySize()
Calculates the number of bytes required to serialize this property.
|
int |
hashCode() |
int |
serializeComplexPart(byte[] data,
int pos)
Serializes the complex part of this property
|
int |
serializeSimplePart(byte[] data,
int pos)
Serializes the simple part of this property.
|
java.lang.String |
toString()
Retrieves the string representation for this property.
|
java.lang.String |
toXml(java.lang.String tab) |
getId, getName, getPropertyNumber, isBlipId, isComplex
public EscherComplexProperty(short id, byte[] complexData)
id
- The id consists of the property number, a flag indicating whether this is a blip id and a flag
indicating that this is a complex property.complexData
- The value of this property.public EscherComplexProperty(short propertyNumber, boolean isBlipId, byte[] complexData)
propertyNumber
- The property numberisBlipId
- Whether this is a blip id. Should be false.complexData
- The value of this complex property.public int serializeSimplePart(byte[] data, int pos)
serializeSimplePart
in class EscherProperty
public int serializeComplexPart(byte[] data, int pos)
serializeComplexPart
in class EscherProperty
data
- The data array to serialize topos
- The offset within data to start serializing to.public byte[] getComplexData()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The object to compare to.public int getPropertySize()
getPropertySize
in class EscherProperty
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toXml(java.lang.String tab)
toXml
in class EscherProperty
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.