com.atlassian.plugin.web.model
Class DefaultWebParam

java.lang.Object
  extended by com.atlassian.plugin.web.model.AbstractWebItem
      extended by com.atlassian.plugin.web.model.DefaultWebParam
All Implemented Interfaces:
WebParam
Direct Known Subclasses:
DefaultWebLabel

public class DefaultWebParam
extends AbstractWebItem
implements WebParam

Represents a sorted map of parameters. Individual value of the param can be rendered using velocity.


Field Summary
protected  SortedMap<String,String> params
          parameters are sorted in order for the i18n arguments to be in order
 
Constructor Summary
DefaultWebParam(org.dom4j.Element element, WebFragmentHelper webFragmentHelper, ContextProvider contextProvider, WebFragmentModuleDescriptor descriptor)
           
DefaultWebParam(Map<String,String> params, WebFragmentHelper webFragmentHelper, ContextProvider contextProvider, WebFragmentModuleDescriptor descriptor)
           
 
Method Summary
 Object get(String key)
           
 SortedMap<String,String> getParams()
           
 String getRenderedParam(String paramKey, Map<String,Object> context)
           
 
Methods inherited from class com.atlassian.plugin.web.model.AbstractWebItem
getContextMap, getDescriptor, getWebFragmentHelper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.plugin.web.model.WebParam
getDescriptor
 

Field Detail

params

protected SortedMap<String,String> params
parameters are sorted in order for the i18n arguments to be in order

Constructor Detail

DefaultWebParam

public DefaultWebParam(org.dom4j.Element element,
                       WebFragmentHelper webFragmentHelper,
                       ContextProvider contextProvider,
                       WebFragmentModuleDescriptor descriptor)

DefaultWebParam

public DefaultWebParam(Map<String,String> params,
                       WebFragmentHelper webFragmentHelper,
                       ContextProvider contextProvider,
                       WebFragmentModuleDescriptor descriptor)
Method Detail

getParams

public SortedMap<String,String> getParams()
Specified by:
getParams in interface WebParam

get

public Object get(String key)
Specified by:
get in interface WebParam

getRenderedParam

public String getRenderedParam(String paramKey,
                               Map<String,Object> context)
Specified by:
getRenderedParam in interface WebParam


Copyright © 2011 Atlassian. All Rights Reserved.