|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.source.resource.core.AbstractResource
public abstract class AbstractResource
Partial resource implementation.
| Constructor Summary | |
|---|---|
protected |
AbstractResource(ISource parent,
String resourcePath,
boolean classpath,
EType type)
Partial constructor. |
| Method Summary | |
|---|---|
protected List<URL> |
filterExisting(List<URL> urls)
Filter only available resources. |
ISource |
getParent()
The reference parent. |
String |
getResourcePath()
The resource path, relative to classpath. i.e. |
protected List<URL> |
getResourceURLs()
Gets the list of URL resources. |
EType |
getType()
The resource type. |
boolean |
isClasspath()
The resource is relative to classpath? |
void |
setClasspath(boolean classpath)
Set the classpath context. |
void |
setParent(ISource parent)
Change the resource parent. |
void |
setResourcePath(String resourcePath)
Set the resource path. |
void |
setType(EType type)
Resource type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.specrunner.source.resource.IResource |
|---|
writeTo |
| Methods inherited from interface org.specrunner.util.xom.IPresentation |
|---|
asNode, asString |
| Constructor Detail |
|---|
protected AbstractResource(ISource parent,
String resourcePath,
boolean classpath,
EType type)
parent - The parent.resourcePath - The resource path.classpath - The classpath flag.type - The resource nature.| Method Detail |
|---|
public ISource getParent()
IResource
getParent in interface IResourcepublic void setParent(ISource parent)
IResource
setParent in interface IResourceparent - The new parent.public String getResourcePath()
IResource
getResourcePath in interface IResourcepublic void setResourcePath(String resourcePath)
IResource
setResourcePath in interface IResourceresourcePath - The resource path.public EType getType()
IResource
getType in interface IResourcepublic void setType(EType type)
IResource
setType in interface IResourcetype - The new type.public boolean isClasspath()
IResource
isClasspath in interface IResourcepublic void setClasspath(boolean classpath)
IResource
setClasspath in interface IResourceclasspath - true, for classpath relative, false, otherwise.
protected List<URL> getResourceURLs()
throws ResourceException
ResourceException - On resource listing errors.
protected List<URL> filterExisting(List<URL> urls)
throws ResourceException
urls - List of resource URLs.
ResourceException - On file loca
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||