StructureAttribute

Inheritance: java.lang.Object

public class StructureAttribute

Represents attribute of structure element.

Constructors

ConstructorDescription
StructureAttribute(AttributeKey attributeKey)Initializes a new instance of the StructureAttribute.
StructureAttribute(AttributeKey attributeKey, IPdfPrimitive pdfEntity)

Methods

MethodDescription
getKey()Gets attribute key.
getNameValue()Gets Value Name.
getStringValue()Gets Value String.
getNumberValue()Gets Value Number.
getArrayValue()Gets Value Name Array.
getArrayNumberValue()Gets Value Number Array.
setNameValue(AttributeName name)Sets Value Name.
setStringValue(String value)Sets Value String.
setNumberValue(double number)Sets Value Number.
setArrayValue(AttributeName[] array)Sets Value Name Array.
setArrayNumberValue(Double[][] arrayNumber)Sets Value Number Array.
setColorValue(Color color)Sets Value Color.
setRectangleValue(Rectangle rectangle)Sets Value Rectangle.
isInitializedValue()Gets status of structure attribute value.

StructureAttribute(AttributeKey attributeKey)

public StructureAttribute(AttributeKey attributeKey)

Initializes a new instance of the StructureAttribute.

Parameters:

ParameterTypeDescription
attributeKeyAttributeKeyAttribute Key

StructureAttribute(AttributeKey attributeKey, IPdfPrimitive pdfEntity)

public StructureAttribute(AttributeKey attributeKey, IPdfPrimitive pdfEntity)

Parameters:

ParameterTypeDescription
attributeKeyAttributeKey
pdfEntityIPdfPrimitive

getKey()

public final AttributeKey getKey()

Gets attribute key.

Value: Attribute Key.

Returns: AttributeKey - AttributeKey instance

getNameValue()

public final AttributeName getNameValue()

Gets Value Name.

Returns: AttributeName - Value Name.

getStringValue()

public final String getStringValue()

Gets Value String.

Returns: java.lang.String - Value String.

getNumberValue()

public final Double[] getNumberValue()

Gets Value Number.

Returns: java.lang.Double[] - Value Number.

getArrayValue()

public final AttributeName[] getArrayValue()

Gets Value Name Array.

Returns: com.aspose.pdf.tagged.logicalstructure.AttributeName[] - Value Name Array.

getArrayNumberValue()

public final Double[][] getArrayNumberValue()

Gets Value Number Array.

Returns: java.lang.Double[][] - Value Number Array.

setNameValue(AttributeName name)

public final void setNameValue(AttributeName name)

Sets Value Name.

Parameters:

ParameterTypeDescription
nameAttributeNameAllowable Value Name.

setStringValue(String value)

public final void setStringValue(String value)

Sets Value String.

Parameters:

ParameterTypeDescription
valuejava.lang.StringValue String.

setNumberValue(double number)

public final void setNumberValue(double number)

Sets Value Number.

Parameters:

ParameterTypeDescription
numberdoubleValue Number.

setArrayValue(AttributeName[] array)

public final void setArrayValue(AttributeName[] array)

Sets Value Name Array.

Parameters:

ParameterTypeDescription
arrayAttributeName[]Array of allowable Value Names.

setArrayNumberValue(Double[][] arrayNumber)

public final void setArrayNumberValue(Double[][] arrayNumber)

Sets Value Number Array.

Parameters:

ParameterTypeDescription
arrayNumberjava.lang.Double[][]Array of Numbers.

setColorValue(Color color)

public final void setColorValue(Color color)

Sets Value Color.

Parameters:

ParameterTypeDescription
colorColorColor.

setRectangleValue(Rectangle rectangle)

public final void setRectangleValue(Rectangle rectangle)

Sets Value Rectangle.

Parameters:

ParameterTypeDescription
rectangleRectangleRectangle.

isInitializedValue()

public final boolean isInitializedValue()

Gets status of structure attribute value. True if value is set.

Returns: boolean - boolean value