com.atlassian.plugin.elements
Class ResourceDescriptor
java.lang.Object
com.atlassian.plugin.elements.ResourceDescriptor
public class ResourceDescriptor
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ResourceDescriptor
public ResourceDescriptor(org.dom4j.Element element)
getType
public java.lang.String getType()
getName
public java.lang.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 java.lang.String getLocation()
getContent
public java.lang.String getContent()
doesTypeAndNameMatch
public boolean doesTypeAndNameMatch(java.lang.String type,
java.lang.String name)
getParameters
public java.util.Map<java.lang.String,java.lang.String> getParameters()
getParameter
public java.lang.String getParameter(java.lang.String key)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
getResourceLocationForName
public ResourceLocation getResourceLocationForName(java.lang.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 © 2013 Atlassian. All Rights Reserved.