**Inheritance:**
java.lang.Object, [com.aspose.imaging.xmp.types.XmpTypeBase](../../com.aspose.imaging.xmp.types/xmptypebase)
```
public final class XmpBoolean extends XmpTypeBase
```

Represents XMP Boolean basic type.
## Constructors

| Constructor | Description |
| --- | --- |
| [XmpBoolean(boolean value)](#XmpBoolean-boolean-) | Initializes a new instance of the `XmpBoolean` class based on boolean value. |
| [XmpBoolean()](#XmpBoolean--) | Initializes a new instance of the `XmpBoolean` class with default value. |
| [XmpBoolean(String value)](#XmpBoolean-java.lang.String-) | Initializes a new instance of the `XmpBoolean` class. |
## Methods

| Method | Description |
| --- | --- |
| [getValue()](#getValue--) | Gets or sets a value indicating whether this `XmpBoolean` is value. |
| [setValue(boolean value)](#setValue-boolean-) | Gets or sets a value indicating whether this `XmpBoolean` is value. |
| [getXmpRepresentation()](#getXmpRepresentation--) | Returns string contained value in XMP format. |
### XmpBoolean(boolean value) {#XmpBoolean-boolean-}
```
public XmpBoolean(boolean value)
```


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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | The Boolean value. Allowed values are True or False. |

### XmpBoolean() {#XmpBoolean--}
```
public XmpBoolean()
```


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

### XmpBoolean(String value) {#XmpBoolean-java.lang.String-}
```
public XmpBoolean(String value)
```


Initializes a new instance of the `XmpBoolean` class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String | The value. |

### getValue() {#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) {#setValue-boolean-}
```
public void setValue(boolean value)
```


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

Value: `true` if value; otherwise, `false`.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### getXmpRepresentation() {#getXmpRepresentation--}
```
public String getXmpRepresentation()
```


Returns string contained value in XMP format.

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