|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.discussion.ForumType
This class stores the values for the Forum
types. There are built-in types such as moderated and
unmoderated.
The internationalizable
string values are stored in the discussion_resources.properties
file (accessed through DiscussionResources
) and referenced by
their key.
Field Summary | |
static ForumType |
MODERATED
This value represents the 'moderated' forum type. |
static int |
STORE_VALUE_MODERATED
This value represents a 'moderated' forum type. |
static int |
STORE_VALUE_UNMODERATED
This value represents an 'unmoderated' forum type. |
static ForumType |
UNMODERATED
This value represents the 'unmoderated' forum type. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Checks for equality. |
static ForumType |
get(int iStoreValue)
Gets the type by the store value. |
static java.util.List |
getList()
Gets the list of properties. |
java.lang.String |
getName()
Gets the name of the type using the system default locale. |
java.lang.String |
getName(java.util.Locale locale)
Gets the name of the type using the specified locale. |
int |
getStoreValue()
Gets the value that's used to store the type in the storage system. |
java.lang.String |
toString()
Returns a string representation of the object. |
java.lang.String |
toString(java.util.Locale locale)
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int STORE_VALUE_MODERATED
MODERATED
,
getStoreValue()
public static final int STORE_VALUE_UNMODERATED
UNMODERATED
,
getStoreValue()
public static final ForumType MODERATED
public static final ForumType UNMODERATED
Method Detail |
public java.lang.String getName()
public java.lang.String getName(java.util.Locale locale)
locale
- the localepublic int getStoreValue()
public static ForumType get(int iStoreValue)
iStoreValue
- the store valuenull
if not foundpublic static java.util.List getList()
ForumType
s (unmodifiable)public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to checktrue
if this object has the same store value as the
argument, false
otherwisepublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.util.Locale locale)
locale
- the locale
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |