DocumentProperty
Overview
DocumentProperty is a class in Aspose.Words FOSS for Java.
Inherits from: Cloneable.
Represents a custom or built-in document property.
Edition status of its 17 listed members (a property and its accessor methods are listed separately, overloads once): 17 not yet exercised by a verified example.
This class declares 12 methods for DocumentProperty objects in Java programs.
Available methods include: getLinkSource, getName, getType, getValue, isLinkToContent, setValue, toBool, toByteArray, toDateTime, toDouble, toInt, toString.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: linkSource, linkToContent, name, type, value.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read | Returns the name of the property. |
value | Object | Read/Write | Gets or sets the value of the property. |
type | int | Read | Gets the type. |
linkSource | String | Read | Gets the source of a linked custom document property. |
linkToContent | boolean | Read | Shows whether this property is linked to content or not. |
Methods
| Signature | Description |
|---|---|
getName() → String | Returns the name of the property. |
getValue() → Object | Gets or sets the value of the property. |
setValue(value: Object) | Sets the value value. |
getType() → int | Returns the type. |
getLinkSource() → String | Gets the source of a linked custom document property. |
isLinkToContent() → boolean | Shows whether this property is linked to content or not. |
toString() → String | Returns the property value as a string formatted according to the current locale. |
toInt() → int | Returns the property value as integer. |
toDouble() → double | Returns the property value as double. |
toDateTime() → java.util.Date | Calls toDateTime on this DocumentProperty instance. |
toBool() → boolean | Returns the property value as bool. |
toByteArray() → byte[] | Returns the property value as byte array. |