com.atlassian.configurable
Interface ObjectConfigurationProperty

All Superinterfaces:
java.util.Map
All Known Implementing Classes:
ObjectConfigurationPropertyImpl, ValuesGeneratorObjectConfigurationProperty, XMLValuesObjectConfigurationProperty

public interface ObjectConfigurationProperty
extends java.util.Map

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
java.util.Map.Entry<K,V>
 
Method Summary
 java.lang.String getCascadeFrom()
           
 java.lang.String getDefault()
          Retreives the default value of this Property e.g.
 java.lang.String getDescription()
          Retrieves the description of this Property e.g.
 java.lang.String getName()
          Retrieves the name of this Property e.g.
 int getType()
          Retrieves the type of the Property e.g.
 void init(java.util.Map params)
          Initialises the object so it can retrieve values dependant on the parameters in the Map
 boolean isEnabled()
          Whether the property is enabled in the current context.
 boolean isI18nValues()
           
 void setCascadeFrom(java.lang.String cascadeFrom)
           
 void setI18nValues(boolean i18nValues)
           
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

init

void init(java.util.Map params)
Initialises the object so it can retrieve values dependant on the parameters in the Map

Parameters:
params -

getName

java.lang.String getName()
Retrieves the name of this Property e.g. City

Returns:
Name of this Property

getDescription

java.lang.String getDescription()
Retrieves the description of this Property e.g. Please enter you current location

Returns:
Description of the Property

getDefault

java.lang.String getDefault()
Retreives the default value of this Property e.g. Sydney

Returns:
Default value of Property

getType

int getType()
Retrieves the type of the Property e.g. Text

Returns:
Type of property from ObjectConfigurationTypes

isI18nValues

boolean isI18nValues()

setI18nValues

void setI18nValues(boolean i18nValues)

getCascadeFrom

java.lang.String getCascadeFrom()

setCascadeFrom

void setCascadeFrom(java.lang.String cascadeFrom)

isEnabled

boolean isEnabled()
Whether the property is enabled in the current context. It is up to the implementation to divine the context.

Returns:
true only if the property is enabled.
Since:
28 Aug 2007 for JIRA v3.11


Copyright © 2002-2010 Atlassian. All Rights Reserved.