public abstract class AbstractResourceHeader extends AbstractResourcePositional
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractResourceHeader(ISource parent,
String path,
boolean classpath,
EType type,
Position position)
Creates a header resource.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getPosition, setPositionaddNode, filterExisting, getNodes, getParent, getResourcePath, getResourceURLs, getType, isClasspath, setClasspath, setParent, setResourcePath, setTypeclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddNode, getNodes, getParent, getResourcePath, getType, isClasspath, setClasspath, setParent, setResourcePath, setTypeprotected 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.public ISource writeTo(ISource output) throws ResourceException
IResourceoutput - 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()
IPresentationpublic nu.xom.Node asNode()
IPresentationCopyright © 2016. All rights reserved.