|
ASPOSE home | ||||||||
java.lang.Object
com.aspose.words.DocumentProperty
public class DocumentProperty
| Property Getters/Setters Summary | ||
|---|---|---|
java.lang.String | getName() | |
| Returns the name of the property. | ||
int | getType() | |
| Gets the data type of the property. The value of the property is PropertyType integer constant. | ||
java.lang.Object | getValue() | |
void | setValue(java.lang.Object value) | |
| Gets or sets the value of the property. | ||
| Method Summary | ||
|---|---|---|
boolean | toBool() | |
| Returns the property value as bool. | ||
java.util.Date | toDateTime() | |
| Returns the property value as DateTime in local timezone. | ||
double | toDouble() | |
| Returns the property value as double. | ||
int | toInt() | |
| Returns the property value as integer. | ||
java.lang.String | toString() | |
| Returns the property value as a string. | ||
| Property Getters/Setters Detail |
|---|
getName | |
public java.lang.String getName() | |
getValue/setValue | |
public java.lang.Object getValue() public void setValue(java.lang.Object value) | |
getType | |
public int getType() | |
| Method Detail |
|---|
toString | |
public java.lang.String toString()
throws com.aspose.words.PleaseReportException | |
Converts a number property using Object.ToString(). Converts a boolean property into "Y" or "N". Converts a date property into a short date string.
toInt | |
public int toInt() | |
toDouble | |
public double toDouble() | |
toDateTime | |
public java.util.Date toDateTime() | |
Throws an exception if the property type is not PropertyType.Date.
toBool | |
public boolean toBool() | |
Throws an exception if the property type is not PropertyType.Boolean.
|
ASPOSE home | ||||||||