|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.core.content.DocumentProperty
A document property container. This class defines the meta-data for a document property, but not the property value itself.
| Field Summary | |
static int |
HTML_TYPE
The HTML type constant. |
static int |
STRING_TYPE
The string type constant. |
static int |
TAGGED_TYPE
The tagged type constant. |
| Constructor Summary | |
DocumentProperty(java.lang.String id)
Creates a new document property. |
|
| Method Summary | |
int |
compareTo(java.lang.Object obj)
Compares this object to another object. |
java.lang.String |
encodeXml()
Encodes all the values in the document property to an XML string. |
java.lang.String |
getDescription()
Returns the document property description. |
java.lang.String |
getId()
Returns the unique document property identifier. |
java.lang.String |
getName()
Returns the document property name. |
int |
getPosition()
Returns the document property position. |
int |
getType()
Returns the document property type. |
void |
setDescription(java.lang.String description)
Sets the document property description. |
void |
setName(java.lang.String name)
Sets the document property name. |
void |
setPosition(int position)
Sets the document property position. |
void |
setType(int type)
Sets the document property type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int STRING_TYPE
public static final int TAGGED_TYPE
public static final int HTML_TYPE
| Constructor Detail |
public DocumentProperty(java.lang.String id)
id - the document property identifier| Method Detail |
public int compareTo(java.lang.Object obj)
throws java.lang.ClassCastException
compareTo in interface java.lang.Comparableobj - the object to compare with
java.lang.ClassCastException - if the specified object wasn't a
document propertypublic java.lang.String getId()
public java.lang.String getName()
public void setName(java.lang.String name)
name - the new namepublic int getPosition()
public void setPosition(int position)
position - the new positionpublic int getType()
STRING_TYPE,
TAGGED_TYPE,
HTML_TYPEpublic void setType(int type)
type - the new typeSTRING_TYPE,
TAGGED_TYPE,
HTML_TYPEpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the new descriptionpublic java.lang.String encodeXml()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||