com.atlassian.plugin.elements
Class ResourceDescriptor
java.lang.Object
com.atlassian.plugin.elements.ResourceDescriptor
public class ResourceDescriptor
- extends Object
ResourceDescriptor
public ResourceDescriptor(org.dom4j.Element element)
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.