![]() |
||
Home Products Purchase Downloads Demos Forums Blogs Ticket Wiki API Corporate |
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.cells.DocumentProperty
public class DocumentProperty
Represents a custom or built-in document property.
Method Summary | |
---|---|
java.lang.String |
getName()
Gets the name of the property. |
int |
getType()
Gets the data type of the property. |
java.lang.Object |
getValue()
Gets the value of the property. |
void |
setValue(java.lang.Object value)
Sets the value of the property. |
boolean |
toBool()
Returns the property value as boolean. |
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. |
long |
toLong()
Returns the property value as long. |
java.lang.String |
toString()
Returns the property value as a String. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.String getName()
public java.lang.Object getValue()
public void setValue(java.lang.Object value)
value
- the value of the property.public int getType()
PropertyType
public java.lang.String toString()
toString
in class java.lang.Object
public int toInt()
java.lang.Exception
- if the property type is not PropertyType.Number.public long toLong()
java.lang.Exception
- if the property type is not PropertyType.Number.public double toDouble()
java.lang.Exception
- if the property type is not PropertyType.Float.public java.util.Date toDateTime()
java.lang.Exception
- if the property type is not PropertyType.Date.public boolean toBool()
java.lang.Exception
- if the property type is not PropertyType.Boolean.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |