|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.source.resource.core.AbstractResource
org.specrunner.source.resource.positional.core.AbstractResourcePositional
org.specrunner.source.resource.positional.core.AbstractResourceHeader
public abstract class AbstractResourceHeader
Default resource to be written in header part.
| Constructor Summary | |
|---|---|
protected |
AbstractResourceHeader(ISource parent,
String path,
boolean classpath,
EType type,
Position position)
Creates a header resource. |
| Method Summary | |
|---|---|
nu.xom.Node |
asNode()
The object representation as node. |
String |
asString()
The object representation as string. |
boolean |
equals(Object obj)
|
protected abstract File |
getFile(ISource output,
String name)
Get the file which represents the output resource. |
protected abstract nu.xom.Element |
getHeaderTag()
Get the element which represents the resource. |
protected abstract nu.xom.Element |
getHeaderTag(ISource output,
String name)
Ges the element which represents the source provided extra information. |
int |
hashCode()
|
String |
toString()
|
ISource |
writeTo(ISource output)
Write the resource to the target, e returns the resulting source. |
| Methods inherited from class org.specrunner.source.resource.positional.core.AbstractResourcePositional |
|---|
getPosition, setPosition |
| Methods inherited from class org.specrunner.source.resource.core.AbstractResource |
|---|
filterExisting, getParent, getResourcePath, getResourceURLs, getType, isClasspath, setClasspath, setParent, setResourcePath, setType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.specrunner.source.resource.IResource |
|---|
getParent, getResourcePath, getType, isClasspath, setClasspath, setParent, setResourcePath, setType |
| Constructor Detail |
|---|
protected AbstractResourceHeader(ISource parent,
String path,
boolean classpath,
EType type,
Position position)
parent - The source.path - The resource path.classpath - The classpath flag.type - The resource nature.position - The resource position.| Method Detail |
|---|
public ISource writeTo(ISource output)
throws ResourceException
IResource
output - The target reference.
ResourceException - On writing errors.protected abstract nu.xom.Element getHeaderTag()
protected abstract nu.xom.Element getHeaderTag(ISource output,
String name)
output - The output source.name - The output name.
protected abstract File getFile(ISource output,
String name)
output - The output source.name - The name.
public String asString()
IPresentation
public nu.xom.Node asNode()
IPresentation
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||