org.specrunner.source.resource.element.core
Class AbstractResourceElement

java.lang.Object
  extended by org.specrunner.source.resource.core.AbstractResource
      extended by org.specrunner.source.resource.element.core.AbstractResourceElement
All Implemented Interfaces:
IResourceElement, IResource, IPresentation
Direct Known Subclasses:
AbstractResourceElementAtt

public abstract class AbstractResourceElement
extends AbstractResource
implements IResourceElement

Abstract implementation of a resource with a Element counterpart.

Author:
Thiago Santos

Constructor Summary
protected AbstractResourceElement(ISource parent, String path, boolean classpath, EType type, nu.xom.Element element)
          Creates a element resource.
 
Method Summary
 nu.xom.Element getElement()
          The element related to the resource.
 void setElement(nu.xom.Element element)
          Set the resource element.
 
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.specrunner.source.resource.IResource
getParent, getResourcePath, getType, isClasspath, setClasspath, setParent, setResourcePath, setType, writeTo
 
Methods inherited from interface org.specrunner.util.xom.IPresentation
asNode, asString
 

Constructor Detail

AbstractResourceElement

protected AbstractResourceElement(ISource parent,
                                  String path,
                                  boolean classpath,
                                  EType type,
                                  nu.xom.Element element)
Creates a element resource.

Parameters:
parent - The parent source.
path - The resource path.
classpath - The classpath flag.
type - The resource nature.
element - The referred element.
Method Detail

getElement

public nu.xom.Element getElement()
Description copied from interface: IResourceElement
The element related to the resource.

Specified by:
getElement in interface IResourceElement
Returns:
The resource element.

setElement

public void setElement(nu.xom.Element element)
Description copied from interface: IResourceElement
Set the resource element.

Specified by:
setElement in interface IResourceElement
Parameters:
element - The new element.


Copyright © 2014. All rights reserved.