public class EscherSimpleProperty extends EscherProperty
Constructor and Description |
---|
EscherSimpleProperty(EscherPropertyTypes type,
boolean isComplex,
boolean isBlipId,
int propertyValue)
Constructs a new escher property.
|
EscherSimpleProperty(EscherPropertyTypes type,
int propertyValue)
The id is distinct from the actual property number.
|
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.
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
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.
|
getGenericChildren, getGenericRecordType, getId, getName, getPropertyNumber, getPropertySize, isBlipId, isComplex, toString, toXml
public EscherSimpleProperty(short id, int propertyValue)
id
- the property idpropertyValue
- the property valuepublic EscherSimpleProperty(EscherPropertyTypes type, int propertyValue)
type
- the property typepropertyValue
- 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 EscherSimpleProperty(EscherPropertyTypes type, boolean isComplex, boolean isBlipId, int propertyValue)
type
- one of the defined property typesisComplex
- true, if its a complex propertyisBlipId
- true, if its a blippropertyValue
- the property valuepublic int serializeSimplePart(byte[] data, int offset)
serializeSimplePart
in class EscherProperty
data
- the buffer to write tooffset
- the starting positionpublic int serializeComplexPart(byte[] data, int pos)
serializeComplexPart
in class EscherProperty
data
- the buffer to write topos
- the starting positionpublic 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.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface GenericRecord
getGenericProperties
in class EscherProperty
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.