public class OwStandardEnum extends Object implements OwEnum
Standard implementation of the OwEnum interface.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Constructor and Description |
---|
OwStandardEnum(Object value_p,
String strSymbolName_p)
construct a single enum value, used in getEnums
Use this constructor if you got already a localized displayname.
|
OwStandardEnum(Object value_p,
String label_p,
String localizeKey_p)
Constructor to create an enumeration entry with a predefined localization key.
|
Modifier and Type | Method and Description |
---|---|
OwEnumCollection |
getChilds()
get the contained child collection
|
String |
getDisplayName(Locale local_p)
get a display name
|
String |
getLocalizeKey()
Returns the localize key of this enumeration entry.
|
Object |
getValue()
get the enum value
|
boolean |
hasChildEnums()
check if enum has a contained child collection
|
public OwStandardEnum(Object value_p, String strSymbolName_p)
value_p
- Object enum valuestrSymbolName_p
- String symbol name to be translatedpublic OwStandardEnum(Object value_p, String label_p, String localizeKey_p)
value_p
- Object the native valuelabel_p
- String representing the default labellocalizeKey_p
- String localization key without owlable. prefixpublic String getDisplayName(Locale local_p)
OwEnum
getDisplayName
in interface OwEnum
public boolean hasChildEnums()
hasChildEnums
in interface OwEnum
public OwEnumCollection getChilds()
public String getLocalizeKey()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.