public class TextProp extends java.lang.Object implements Duplicatable, GenericRecord
Constructor and Description |
---|
TextProp(int sizeOfDataBlock,
int maskInHeader,
java.lang.String propName)
Generate the definition of a given type of text property.
|
TextProp(TextProp other)
Clones the property
|
Modifier and Type | Method and Description |
---|---|
TextProp |
copy()
Clone, eg when you want to actually make use of one of these.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
int |
getMask()
Mask in the paragraph or character "contains" header field
that indicates that this text property is present.
|
java.lang.String |
getName()
Name of the text property
|
int |
getSize()
Size of the data section of the text property (2 or 4 bytes)
|
int |
getValue()
Fetch the value of the text property (meaning is specific to
each different kind of text property)
|
int |
getWriteMask()
Get the mask that's used at write time.
|
int |
hashCode() |
void |
setValue(int val)
Set the value of the text property.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getGenericChildren, getGenericRecordType
public TextProp(int sizeOfDataBlock, int maskInHeader, java.lang.String propName)
public TextProp(TextProp other)
public java.lang.String getName()
public int getSize()
public int getMask()
public int getWriteMask()
public int getValue()
public void setValue(int val)
public TextProp copy()
copy
in interface Duplicatable
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface GenericRecord
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.