|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IResource
A resource is something attached somehow to the source. For example, CSSs, Java Scripts, images, etc.
| Method Summary | |
|---|---|
ISource |
getParent()
The reference parent. |
String |
getResourcePath()
The resource path, relative to classpath. i.e. |
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 path)
Set the resource path. |
void |
setType(EType type)
Resource type. |
ISource |
writeTo(ISource target)
Write the resource to the target, e returns the resulting source. |
| Methods inherited from interface org.specrunner.util.xom.IPresentation |
|---|
asNode, asString |
| Method Detail |
|---|
ISource getParent()
void setParent(ISource parent)
parent - The new parent.String getResourcePath()
void setResourcePath(String path)
path - The resource path.boolean isClasspath()
void setClasspath(boolean classpath)
classpath - true, for classpath relative, false, otherwise.EType getType()
void setType(EType type)
type - The new type.
ISource writeTo(ISource target)
throws ResourceException
target - The target reference.
ResourceException - On writing errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||