com.atlassian.plugin.webresource
Class CssWebResource

java.lang.Object
  extended by com.atlassian.plugin.webresource.CssWebResource

public class CssWebResource
extends Object


Field Summary
protected static com.atlassian.plugin.webresource.WebResourceFormatter FORMATTER
           
 
Constructor Summary
CssWebResource()
           
 
Method Summary
 String formatResource(String url, Map<String,String> params)
           
protected  List<String> getAttributeParameters()
          Should return a List of parameter name Strings, which the WebResourceFormatter will write out as HTML attributes.
protected  List<String> getParametersAsAttributes(Map params)
          A convenient method to convert the given parameter map into a List of HTML String attributes.
 boolean matches(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORMATTER

protected static final com.atlassian.plugin.webresource.WebResourceFormatter FORMATTER
Constructor Detail

CssWebResource

public CssWebResource()
Method Detail

matches

public boolean matches(String name)

formatResource

public String formatResource(String url,
                             Map<String,String> params)

getAttributeParameters

protected List<String> getAttributeParameters()
Should return a List of parameter name Strings, which the WebResourceFormatter will write out as HTML attributes.

Returns:
a List of parameter names

getParametersAsAttributes

protected List<String> getParametersAsAttributes(Map params)
A convenient method to convert the given parameter map into a List of HTML String attributes. For example, an entry with key 'foo' and value 'bar' is converted to the attribute string, foo="bar".

Only parameters that are supported by the WebResourceFormatter are formatted (See getAttributeParameters()).

Parameters:
params - a Map of parameters
Returns:
a list of HTML String attributes


Copyright © 2011 Atlassian. All Rights Reserved.