public abstract class AbstractResourceElementAtt extends AbstractResourceElement
| Modifier and Type | Field and Description |
|---|---|
protected String |
attribute
The attribute where resource lies.
|
protected String |
prefix
The log name.
|
element| Constructor and Description |
|---|
AbstractResourceElementAtt(ISource parent,
String path,
boolean classpath,
EType type,
nu.xom.Element element,
String reference,
String prefix)
Creates a resource.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendChild(nu.xom.Element root)
Append child elements, by default add a comment.
|
nu.xom.Node |
asNode()
The object representation as node.
|
String |
asString()
The object representation as string.
|
protected String |
getPrefix()
Get a description prefix.
|
protected String |
getReferenceName()
Get the attribute name reference.
|
ISource |
writeTo(ISource target)
Write the resource to the target, e returns the resulting source.
|
getElement, setElementaddNode, filterExisting, getNodes, getParent, getResourcePath, getResourceURLs, getType, isClasspath, setClasspath, setParent, setResourcePath, setTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddNode, getNodes, getParent, getResourcePath, getType, isClasspath, setClasspath, setParent, setResourcePath, setTypeprotected String attribute
protected String prefix
public AbstractResourceElementAtt(ISource parent, String path, boolean classpath, EType type, nu.xom.Element element, String reference, String prefix)
parent - The source parent.path - The resource path.classpath - The classpath flag.type - The resource nature.element - The referred element.reference - The reference attribute.prefix - The name to log.public ISource writeTo(ISource target) throws ResourceException
IResourcetarget - The target reference.ResourceException - On writing errors.protected String getReferenceName()
public String asString()
IPresentationprotected String getPrefix()
public nu.xom.Node asNode()
IPresentationprotected void appendChild(nu.xom.Element root)
root - The root element.Copyright © 2016. All rights reserved.