|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.ddf.EscherProperty org.apache.poi.ddf.EscherSimpleProperty
public class EscherSimpleProperty
A simple property is of fixed length and as a property number in addition to a 32-bit value. Properties that can't be stored in only 32-bits are stored as EscherComplexProperty objects.
Constructor Summary | |
---|---|
EscherSimpleProperty(short propertyNumber,
boolean isComplex,
boolean isBlipId,
int propertyValue)
Constructs a new escher property. |
|
EscherSimpleProperty(short id,
int propertyValue)
The id is distinct from the actual property number. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Returns true if one escher property is equal to another. |
int |
getPropertyValue()
|
int |
hashCode()
Returns a hashcode so that this object can be stored in collections that require the use of such things. |
int |
serializeComplexPart(byte[] data,
int pos)
Escher properties consist of a simple fixed length part and a complex variable length part. |
int |
serializeSimplePart(byte[] data,
int offset)
Serialize the simple part of the escher record. |
java.lang.String |
toString()
|
java.lang.String |
toXml(java.lang.String tab)
|
Methods inherited from class org.apache.poi.ddf.EscherProperty |
---|
getId, getName, getPropertyNumber, getPropertySize, isBlipId, isComplex |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EscherSimpleProperty(short id, int propertyValue)
id
- the property idpropertyValue
- the property valuepublic EscherSimpleProperty(short propertyNumber, boolean isComplex, boolean isBlipId, int propertyValue)
propertyNumber
- the property numberisComplex
- true, if its a complex propertyisBlipId
- true, if its a blippropertyValue
- the property valueMethod Detail |
---|
public int serializeSimplePart(byte[] data, int offset)
serializeSimplePart
in class EscherProperty
data
- the buffer to write tooffset
- the starting position
public int serializeComplexPart(byte[] data, int pos)
serializeComplexPart
in class EscherProperty
data
- the buffer to write topos
- the starting position
public int getPropertyValue()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class EscherProperty
public java.lang.String toXml(java.lang.String tab)
toXml
in class EscherProperty
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |