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

表示 XMP Text 基本类型。
## 构造函数

| 构造函数 | 描述 |
| --- | --- |
| [XmpText(String value)](#XmpText-java.lang.String-) | 初始化 `XmpText` 类的新实例。 |
## 方法

| 方法 | 描述 |
| --- | --- |
| [getValue()](#getValue--) | 获取或设置文本值。 |
| [setValue(String value)](#setValue-java.lang.String-) | 获取或设置文本值。 |
| [getXmpRepresentation()](#getXmpRepresentation--) | 获取 XMP 格式的字符串值。 |
### XmpText(String value) {#XmpText-java.lang.String-}
```
public XmpText(String value)
```


初始化 `XmpText` 类的新实例。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | java.lang.String | 值。 |

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


获取或设置文本值。

值：文本值。

**Returns:**
java.lang.String
### setValue(String value) {#setValue-java.lang.String-}
```
public void setValue(String value)
```


获取或设置文本值。

值：文本值。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | java.lang.String |  |

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


获取 XMP 格式的字符串值。

**Returns:**
java.lang.String - 返回 XMP 格式中包含的字符串值。
