com.atlassian.plugin.elements
Class ResourceDescriptor

java.lang.Object
  extended by com.atlassian.plugin.elements.ResourceDescriptor

public class ResourceDescriptor
extends Object


Constructor Summary
ResourceDescriptor(org.dom4j.Element element)
           
 
Method Summary
 boolean doesTypeAndNameMatch(String type, String name)
           
 boolean equals(Object o)
           
 String getContent()
           
 String getLocation()
           
 String getName()
          This may throw an exception if one of the deprecated methods is used on a ResourceDescriptor which has been given a namePattern
 String getParameter(String key)
           
 Map<String,String> getParameters()
           
 ResourceLocation getResourceLocationForName(String name)
          Used for resource descriptors that specify multiple resources, via pattern.
 String getType()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceDescriptor

public ResourceDescriptor(org.dom4j.Element element)
Method Detail

getType

public String getType()

getName

public String getName()
This may throw an exception if one of the deprecated methods is used on a ResourceDescriptor which has been given a namePattern


getLocation

public String getLocation()

getContent

public String getContent()

doesTypeAndNameMatch

public boolean doesTypeAndNameMatch(String type,
                                    String name)

getParameters

public Map<String,String> getParameters()

getParameter

public String getParameter(String key)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getResourceLocationForName

public ResourceLocation getResourceLocationForName(String name)
Used for resource descriptors that specify multiple resources, via pattern.

Returns:
the location of an individual resource with the name if it matches the pattern, otherwise the location for the actual resource descriptor.


Copyright © 2012 Atlassian. All Rights Reserved.