CosPdfName

Inheritance: java.lang.Object, com.aspose.pdf.dataeditor.CosPdfPrimitive com.aspose.pdf.dataeditor.CosPdfName, com.aspose.pdf.dataeditor.CosPdfPrimitive, com.aspose.pdf.dataeditor.CosPdfName

All Implemented Interfaces: ICosPdfPrimitive

public final class CosPdfName extends CosPdfPrimitive

This class represents Pdf Name object.

Constructors

ConstructorDescription
CosPdfNameInitializes a new instance of the {@link CosPdfName} class.

Methods

MethodDescription
equalsDetermines that the specified object is equal to the current object.
getValueGets the value. Value: The value.
hashCodeGet hashcode for current object.
toCosPdfNameTries cast this instance to {@link CosPdfName}.
toStringReturns a {@link String} that represents the current {@link CosPdfName}.

CosPdfName

Initializes a new instance of the {@link CosPdfName} class.

equals

Determines that the specified object is equal to the current object.

getValue

public final String getValue()

Gets the value. Value: The value.

Returns: String value

hashCode

public int hashCode()

Get hashcode for current object.

Returns: A hash code for current object.

toCosPdfName

public CosPdfName toCosPdfName()

Tries cast this instance to {@link CosPdfName}.

Returns: null if instance is not {@link CosPdfName} else {@link CosPdfName}.

toString

public String toString()

Returns a {@link String} that represents the current {@link CosPdfName}.

Returns: A {@link String} that represents the current {@link CosPdfName}.