Class ObjectConfigurationPropertyImpl
java.lang.Object
com.atlassian.configurable.ObjectConfigurationPropertyImpl
- All Implemented Interfaces:
ObjectConfigurationProperty, Map
- Direct Known Subclasses:
ValuesGeneratorObjectConfigurationProperty, XMLValuesObjectConfigurationProperty
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
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Object Configuration Properties are immutable so this function throws an exceptionbooleancontainsKey(Object key) Does this property have a choice with key of the specified valuebooleancontainsValue(Object value) Does this property have a choice with value of the specified valueentrySet()Entry set of the choices for this propertyReturns the value of the choice that matches keyRetrieves the default value of this Property e.g.Retrieves the description of this Property e.g.protected MapgetInternalValues(Map userParams) Returns the map of values stored internally for the choices of this property.protected MapgetName()Retrieves the name of this Property e.g.intgetType()Retrieves the type of the Property e.g.Retrieves the name of the type of the property, e.g.voidThis is a list of user parameters that may be required to generate a list of values and/or a description for this Property.booleanisEmpty()Does this property have a number of possible choicesbooleanWhether the property is enabled in the current context.booleankeySet()Returns a set of the key for the choices for this propertyObject Configuration Properties are immutable so this function throws an exceptionvoidObject Configuration Properties are immutable so this function throws an exceptionObject Configuration Properties are immutable so this function throws an exceptionvoidsetCascadeFrom(String cascadeFrom) voidsetI18nValues(boolean i18nValues) intsize()If this Property has a list of choices e.g.values()Returns all the values for the choices of this propertyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Method Details
-
init
This is a list of user parameters that may be required to generate a list of values and/or a description for this Property. e.g. a User may be required to generate a list of values they can see but other users can not.- Specified by:
initin interfaceObjectConfigurationProperty- Parameters:
userParams- Parameters used to generate a list of values and/or a description
-
getName
Retrieves the name of this Property e.g. City- Specified by:
getNamein interfaceObjectConfigurationProperty- Returns:
- Name of this Property
-
getDescription
Retrieves the description of this Property e.g. Please enter you current location- Specified by:
getDescriptionin interfaceObjectConfigurationProperty- Returns:
- Description of the Property
-
getDefault
Retrieves the default value of this Property e.g. Sydney- Specified by:
getDefaultin interfaceObjectConfigurationProperty- Returns:
- Default value of Property
-
getType
public int getType()Retrieves the type of the Property e.g. Text- Specified by:
getTypein interfaceObjectConfigurationProperty- Returns:
- Type of property from
ObjectConfigurationTypes
-
getTypeName
Description copied from interface:ObjectConfigurationPropertyRetrieves the name of the type of the property, e.g. 'text'- Specified by:
getTypeNamein interfaceObjectConfigurationProperty- Returns:
- Type name of the property.
-
isEnabled
public boolean isEnabled()Description copied from interface:ObjectConfigurationPropertyWhether the property is enabled in the current context. It is up to the implementation to divine the context.- Specified by:
isEnabledin interfaceObjectConfigurationProperty- Returns:
- true only if the property is enabled.
-
size
-
isEmpty
-
containsKey
Does this property have a choice with key of the specified value- Specified by:
containsKeyin interfaceMap- Parameters:
key- Does this Property have a choice with key, key- Returns:
- Has Key
-
containsValue
Does this property have a choice with value of the specified value- Specified by:
containsValuein interfaceMap- Parameters:
value- Does this Property have a choice with value, value- Returns:
- Has Value
-
get
-
put
-
remove
-
putAll
-
clear
-
keySet
-
values
Returns all the values for the choices of this property -
entrySet
-
isI18nValues
public boolean isI18nValues()- Specified by:
isI18nValuesin interfaceObjectConfigurationProperty
-
setI18nValues
public void setI18nValues(boolean i18nValues) - Specified by:
setI18nValuesin interfaceObjectConfigurationProperty
-
getCascadeFrom
- Specified by:
getCascadeFromin interfaceObjectConfigurationProperty
-
setCascadeFrom
- Specified by:
setCascadeFromin interfaceObjectConfigurationProperty
-
getInternalValues
-
getMutableInternalValues
- Returns:
- the map of values stored internally for the choices of this property as a mutable Map.
- Since:
- 29 August 2007 for JIRA 3.11
-