|
Clearspace API (1.7.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<DocumentTypeElement.Type>
com.jivesoftware.community.DocumentTypeElement.Type
public static enum DocumentTypeElement.Type
Simple enumerated type for Document elements.
| Enum Constant Summary | |
|---|---|
ATTACHMENT
This element should be used to create an attachement for the document. |
|
BODY
This element should be used to create the document body. |
|
DOCUMENT_FIELD
Used to specify that the DocumentTypeElement is actually a DocumentField. |
|
EXPIRATION_DATE
Used to specify the date the document will expire |
|
LABEL
Used to add a label to document creation process |
|
LANGUAGE
This element should be used to determine the language of the document. |
|
SECTION
Used to specify a section in the document creation |
|
SUMMARY
This element should be used to create the document summary. |
|
TAG
Used to specify tags that can be used to group document documents |
|
TITLE
This element should be used to create the document's title. |
|
| Method Summary | |
|---|---|
static java.util.List<DocumentTypeElement.Type> |
getBuiltinTypes()
Returns a list of all the builtin types |
long |
getID()
Returns the id of this type |
java.lang.String |
getName()
Returns the text representation of this Type |
static DocumentTypeElement.Type |
getType(long id)
Acquires a Type by its ID. |
static DocumentTypeElement.Type |
getType(java.lang.String name)
Acquires a Type by its string name. |
boolean |
isBuiltIn()
If this Type is a builtin type (body, summary, attachment, etc) then this method will return true; |
void |
setId(long id)
|
void |
setName(java.lang.String name)
|
java.lang.String |
toString()
|
static DocumentTypeElement.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DocumentTypeElement.Type[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final DocumentTypeElement.Type DOCUMENT_FIELD
DocumentFieldValue objects.
public static final DocumentTypeElement.Type BODY
Document.setBody(String)
or Document.setBinaryBody(String, String, java.io.InputStream) method.
public static final DocumentTypeElement.Type SUMMARY
Document.setSummary(String) method.
public static final DocumentTypeElement.Type ATTACHMENT
public static final DocumentTypeElement.Type TITLE
public static final DocumentTypeElement.Type LANGUAGE
public static final DocumentTypeElement.Type TAG
public static final DocumentTypeElement.Type EXPIRATION_DATE
public static final DocumentTypeElement.Type SECTION
public static final DocumentTypeElement.Type LABEL
| Method Detail |
|---|
public static final DocumentTypeElement.Type[] values()
for(DocumentTypeElement.Type c : DocumentTypeElement.Type.values())
System.out.println(c);
public static DocumentTypeElement.Type valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namepublic java.lang.String getName()
public void setName(java.lang.String name)
public long getID()
public void setId(long id)
public boolean isBuiltIn()
public static DocumentTypeElement.Type getType(java.lang.String name)
name - name of the type.
public static DocumentTypeElement.Type getType(long id)
id - id of the type
public static java.util.List<DocumentTypeElement.Type> getBuiltinTypes()
public java.lang.String toString()
toString in class java.lang.Enum<DocumentTypeElement.Type>
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||