ru.novosoft.dc.rtf.dom.objects
Class CustomProperty

java.lang.Object
  |
  +--ru.novosoft.dc.rtf.dom.objects.CustomProperty

public final class CustomProperty
extends java.lang.Object

Describes a custom rtf-property.


Field Summary
static byte BOOLEAN_TYPE
          The property is interpreted as a boolean value (0 false, 1 true).
static byte DATE_TYPE
          The property is interpreted as a date (its value has the format MM.DD.YYYY).
static byte INTEGER_TYPE
          The property is interpreted as an integer number.
static byte REAL_TYPE
          The property is interpreted as a real number.
static byte TEXT_TYPE
          The property is interpreted as a text string.
 
Constructor Summary
CustomProperty()
           
 
Method Summary
 void exportTo(org.w3c.dom.Element elem, java.lang.String name)
          Export the contents of this object to the specified DOM element.
 java.lang.String getBookmarkName()
          Return a name of bookmark linked to this property or null if the property has no bookmark linked.
 int getType()
          Return the property type.
 java.lang.String getValue()
          Return the property value.
 void setBookmarkName(java.lang.String value)
          Set a name of bookmark linked to this property.
 void setType(int value)
          Set a type for the property (the default type is TEXT).
 void setValue(java.lang.String value)
          Set a value for the property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTEGER_TYPE

public static final byte INTEGER_TYPE
The property is interpreted as an integer number.

REAL_TYPE

public static final byte REAL_TYPE
The property is interpreted as a real number.

BOOLEAN_TYPE

public static final byte BOOLEAN_TYPE
The property is interpreted as a boolean value (0 false, 1 true).

TEXT_TYPE

public static final byte TEXT_TYPE
The property is interpreted as a text string.

DATE_TYPE

public static final byte DATE_TYPE
The property is interpreted as a date (its value has the format MM.DD.YYYY).
Constructor Detail

CustomProperty

public CustomProperty()
Method Detail

setType

public final void setType(int value)
Set a type for the property (the default type is TEXT).

getType

public final int getType()
Return the property type.

setValue

public final void setValue(java.lang.String value)
Set a value for the property.

getValue

public final java.lang.String getValue()
Return the property value.

setBookmarkName

public final void setBookmarkName(java.lang.String value)
Set a name of bookmark linked to this property.

getBookmarkName

public final java.lang.String getBookmarkName()
Return a name of bookmark linked to this property or null if the property has no bookmark linked.

exportTo

public void exportTo(org.w3c.dom.Element elem,
                     java.lang.String name)
Export the contents of this object to the specified DOM element.