XmpBoolean

Inheritance: java.lang.Object, com.aspose.imaging.xmp.types.XmpTypeBase

public final class XmpBoolean extends XmpTypeBase

Represents XMP Boolean basic type.

Constructors

ConstructorDescription
XmpBoolean(boolean value)Initializes a new instance of the XmpBoolean class based on boolean value.
XmpBoolean()Initializes a new instance of the XmpBoolean class with default value.
XmpBoolean(String value)Initializes a new instance of the XmpBoolean class.

Methods

MethodDescription
getValue()Gets or sets a value indicating whether this XmpBoolean is value.
setValue(boolean value)Gets or sets a value indicating whether this XmpBoolean is value.
getXmpRepresentation()Returns string contained value in XMP format.

XmpBoolean(boolean value)

public XmpBoolean(boolean value)

Initializes a new instance of the XmpBoolean class based on boolean value.

Parameters:

ParameterTypeDescription
valuebooleanThe Boolean value. Allowed values are True or False.

XmpBoolean()

public XmpBoolean()

Initializes a new instance of the XmpBoolean class with default value.

XmpBoolean(String value)

public XmpBoolean(String value)

Initializes a new instance of the XmpBoolean class.

Parameters:

ParameterTypeDescription
valuejava.lang.StringThe value.

getValue()

public boolean getValue()

Gets or sets a value indicating whether this XmpBoolean is value.

Value: true if value; otherwise, false.

Returns: boolean

setValue(boolean value)

public void setValue(boolean value)

Gets or sets a value indicating whether this XmpBoolean is value.

Value: true if value; otherwise, false.

Parameters:

ParameterTypeDescription
valueboolean

getXmpRepresentation()

public String getXmpRepresentation()

Returns string contained value in XMP format.

Returns: java.lang.String - Returns string containing xmp representation.