public final class XmpBoolean extends XmpValueBase
Represents XMP Boolean basic type.
Constructor and Description |
---|
XmpBoolean()
Initializes a new instance of the
XmpBoolean class with default value. |
XmpBoolean(boolean value)
Initializes a new instance of the
XmpBoolean class based on boolean value. |
XmpBoolean(String value)
Initializes a new instance of the
XmpBoolean class. |
Modifier and Type | Method and Description |
---|---|
boolean |
getValue()
Gets the value.
|
String |
getXmpRepresentation()
Returns string contained value in XMP format.
|
toString
acceptValue, getRawValue, getType, toArray, toClass
public XmpBoolean(boolean value)
Initializes a new instance of the XmpBoolean
class based on boolean value.
value
- bool
value.public XmpBoolean()
Initializes a new instance of the XmpBoolean
class with default value.
public XmpBoolean(String value)
Initializes a new instance of the XmpBoolean
class.
value
- The value.ArgumentNullException
- Value could not be null.ArgumentException
- Invalid string value.public final boolean getValue()
Gets the value.
public String getXmpRepresentation()
Returns string contained value in XMP format.
getXmpRepresentation
in interface IXmpType
getXmpRepresentation
in class XmpValueBase
String
contained XMP representation.