wt.content
Class ContentRoleType

java.lang.Object
  extended by wt.fc.EnumeratedType
      extended by wt.content.ContentRoleType
All Implemented Interfaces:
Serializable, Comparable, EnumeratedType, LocalizableMetadata, LocalizableMessage, Message

public class ContentRoleType
extends EnumeratedType
implements Serializable

This class is an enumeration of categorites of Content. This attribute is a customization point for now to differentiate content within a single ContentHolder, and does not reflect any particular behavoir to content in the ContentService.

Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
static ContentRoleType PRIMARY
          

Supported API: true
static ContentRoleType SECONDARY
          

Supported API: true
 
Fields inherited from interface wt.meta.EnumeratedType
DEFAULT_VALUE, ORDER, SELECTABLE
 
Method Summary
static ContentRoleType getContentRoleTypeDefault()
          Returns the default value (instance) for the ContentRoleType set.
static ContentRoleType[] getContentRoleTypeSet()
          Returns a copy of the set of valid values (instances) for the ContentRoleType class.
 EnumeratedType[] getValueSet()
          Returns a copy of the set of valid values (instances) for this instance, for the current user locale.
static ContentRoleType toContentRoleType(String internal_value)
          Returns the ContentRoleType instance for the internal_value argument.
 
Methods inherited from class wt.fc.EnumeratedType
equals, getAbbreviatedDisplay, getDisplay, getDisplay, getFullDisplay, getLocalizedMessage, getLongDescription, getOrder, getSelectableValueSet, getShortDescription, getStringValue, getStringValue, hashCode, isDefaultValue, isDefaultValue, isSelectable, main, toEnumeratedType, toEnumeratedType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PRIMARY

public static final ContentRoleType PRIMARY


Supported API: true


SECONDARY

public static final ContentRoleType SECONDARY


Supported API: true

Method Detail

toContentRoleType

public static ContentRoleType toContentRoleType(String internal_value)
                                         throws WTInvalidParameterException
Returns the ContentRoleType instance for the internal_value argument.

Supported API: true

Parameters:
internal_value - The internal (persistent) value for a valid instance of ContentRoleType.
Returns:
ContentRoleType
Throws:
WTInvalidParameterException

getContentRoleTypeDefault

public static ContentRoleType getContentRoleTypeDefault()
Returns the default value (instance) for the ContentRoleType set.

Supported API: true

Returns:
ContentRoleType

getContentRoleTypeSet

public static ContentRoleType[] getContentRoleTypeSet()
Returns a copy of the set of valid values (instances) for the ContentRoleType class.

Supported API: true

Returns:
ContentRoleType[]

getValueSet

public EnumeratedType[] getValueSet()
Returns a copy of the set of valid values (instances) for this instance, for the current user locale.

Supported API: true

Specified by:
getValueSet in class EnumeratedType
Returns:
EnumeratedType[]