public interface IResource extends IPresentation
| Modifier and Type | Method and Description |
|---|---|
void |
addNode(nu.xom.Node node)
Add a node representation.
|
List<nu.xom.Node> |
getNodes()
Return node representations of resources after
writeTo method
call. |
ISource |
getParent()
The reference parent.
|
String |
getResourcePath()
The resource path, relative to classpath.
|
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.
|
asNode, asStringISource 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.List<nu.xom.Node> getNodes()
writeTo method
call.void addNode(nu.xom.Node node)
node - A node.Copyright © 2016. All rights reserved.