public class EscherSimpleProperty extends EscherProperty
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
getId, getName, getPropertyNumber, getPropertySize, isBlipId, isComplexpublic 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 valuepublic int serializeSimplePart(byte[] data,
int offset)
serializeSimplePart in class EscherPropertydata - the buffer to write tooffset - the starting positionpublic int serializeComplexPart(byte[] data,
int pos)
serializeComplexPart in class EscherPropertydata - the buffer to write topos - the starting positionpublic int getPropertyValue()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class EscherPropertypublic java.lang.String toXml(java.lang.String tab)
toXml in class EscherPropertyCopyright 2018 The Apache Software Foundation or its licensors, as applicable.