|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 ObjectConfigurationProperty
userParams
- Parameters used to generate a list of values and/or a descriptionpublic String getName()
getName
in interface ObjectConfigurationProperty
public String getDescription()
getDescription
in interface ObjectConfigurationProperty
public String getDefault()
getDefault
in interface ObjectConfigurationProperty
public int getType()
getType
in interface ObjectConfigurationProperty
ObjectConfigurationTypes
public boolean isEnabled()
ObjectConfigurationProperty
isEnabled
in interface ObjectConfigurationProperty
public int size()
size
in interface Map
public boolean isEmpty()
isEmpty
in interface Map
public boolean containsKey(Object key)
containsKey
in interface Map
key
- Does this Property have a choice with key, key
public boolean containsValue(Object value)
containsValue
in interface Map
value
- Does this Property have a choice with value, value
public Object get(Object key)
get
in interface Map
key
- Key look for
public Object put(Object key, Object value)
put
in interface Map
public Object remove(Object key)
remove
in interface Map
public void putAll(Map t)
putAll
in interface Map
public void clear()
clear
in interface Map
public Set keySet()
keySet
in interface Map
public Collection values()
values
in interface Map
public Set entrySet()
entrySet
in interface Map
public boolean isI18nValues()
isI18nValues
in interface ObjectConfigurationProperty
public void setI18nValues(boolean i18nValues)
setI18nValues
in interface ObjectConfigurationProperty
public String getCascadeFrom()
getCascadeFrom
in interface ObjectConfigurationProperty
public void setCascadeFrom(String cascadeFrom)
setCascadeFrom
in interface ObjectConfigurationProperty
protected 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 |