java.lang.Objectcom.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. | ||
byte[] | toByteArray() | |
Returns the property value as byte array. | ||
java.util.Date | toDateTime() | |
Returns the property value as DateTime in UTC. | ||
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 formatted according to the current locale. |
Property Getters/Setters Detail |
---|
getName | |
public java.lang.String getName() |
Cannot be null and cannot be an empty string.
getType | |
public int getType() |
getValue/setValue | |
public java.lang.Object getValue() / public void setValue(java.lang.Object value) |
Cannot be null.
Method Detail |
---|
toBool | |
public boolean toBool() |
Throws an exception if the property type is not
toByteArray | |
public byte[] toByteArray() |
Throws an exception if the property type is not
toDateTime | |
public java.util.Date toDateTime() |
Throws an exception if the property type is not
Microsoft Word stores only the date part (no time) for custom date properties.
toDouble | |
public double toDouble() |
toInt | |
public int toInt() |
toString | |
public java.lang.String toString() |
Converts a boolean property into "Y" or "N". Converts a date property into a short date string. For all other types converts a property using Object.ToString().