|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.configurable.ObjectConfigurationPropertyImpl
public class ObjectConfigurationPropertyImpl
This interface is a property of an Object Configuration and contains a name, description, default value and the type (ObjectConfigurationTypes) of this property. It can also contain a list of values if the type has values specified for it e.g. select list.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Method Summary | |
|---|---|
void |
clear()
Object Configuration Properties are immutable so this function throws an exception |
boolean |
containsKey(Object key)
Does this property have a choice with key of the specified value |
boolean |
containsValue(Object value)
Does this property have a choice with value of the specified value |
Set |
entrySet()
Entry set of the choices for this property |
Object |
get(Object key)
Returns the value of the choice that matches key |
String |
getCascadeFrom()
|
String |
getDefault()
Retrieves the default value of this Property e.g. |
String |
getDescription()
Retrieves the description of this Property e.g. |
protected Map |
getInternalValues(Map userParams)
Returns the map of values stored internally for the choices of this property. |
protected Map |
getMutableInternalValues()
|
String |
getName()
Retrieves the name of this Property e.g. |
int |
getType()
Retrieves the type of the Property e.g. |
void |
init(Map userParams)
This is a list of user parameters that may be required to generate a list of values and/or a description for this Property. |
boolean |
isEmpty()
Does this property have a number of possible choices |
boolean |
isEnabled()
Whether the property is enabled in the current context. |
boolean |
isI18nValues()
|
Set |
keySet()
Returns a set of the key for the choices for this property |
Object |
put(Object key,
Object value)
Object Configuration Properties are immutable so this function throws an exception |
void |
putAll(Map t)
Object Configuration Properties are immutable so this function throws an exception |
Object |
remove(Object key)
Object Configuration Properties are immutable so this function throws an exception |
void |
setCascadeFrom(String cascadeFrom)
|
void |
setI18nValues(boolean i18nValues)
|
int |
size()
If this Property has a list of choices e.g. |
Collection |
values()
Returns all the values for the choices of this property |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Method Detail |
|---|
public void init(Map userParams)
init in interface ObjectConfigurationPropertyuserParams - Parameters used to generate a list of values and/or a descriptionpublic String getName()
getName in interface ObjectConfigurationPropertypublic String getDescription()
getDescription in interface ObjectConfigurationPropertypublic String getDefault()
getDefault in interface ObjectConfigurationPropertypublic int getType()
getType in interface ObjectConfigurationPropertyObjectConfigurationTypespublic boolean isEnabled()
ObjectConfigurationProperty
isEnabled in interface ObjectConfigurationPropertypublic int size()
size in interface Mappublic boolean isEmpty()
isEmpty in interface Mappublic boolean containsKey(Object key)
containsKey in interface Mapkey - Does this Property have a choice with key, key
public boolean containsValue(Object value)
containsValue in interface Mapvalue - Does this Property have a choice with value, value
public Object get(Object key)
get in interface Mapkey - Key look for
public Object put(Object key,
Object value)
put in interface Mappublic Object remove(Object key)
remove in interface Mappublic void putAll(Map t)
putAll in interface Mappublic void clear()
clear in interface Mappublic Set keySet()
keySet in interface Mappublic Collection values()
values in interface Mappublic Set entrySet()
entrySet in interface Mappublic boolean isI18nValues()
isI18nValues in interface ObjectConfigurationPropertypublic void setI18nValues(boolean i18nValues)
setI18nValues in interface ObjectConfigurationPropertypublic String getCascadeFrom()
getCascadeFrom in interface ObjectConfigurationPropertypublic void setCascadeFrom(String cascadeFrom)
setCascadeFrom in interface ObjectConfigurationPropertyprotected Map getInternalValues(Map userParams)
userParams - Not used in this implementation.
protected Map getMutableInternalValues()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||