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

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

public class ImageResource
extends AbstractResourceElementAtt

A image resource.

Author:
Thiago Santos

Constructor Summary
ImageResource(ISource parent, String path, boolean classpath, EType type, nu.xom.Element element)
          Creates an image resource.
 
Method Summary
protected  void appendChild(nu.xom.Element e)
          Append child elements, by default add a comment.
 
Methods inherited from class org.specrunner.source.resource.element.core.AbstractResourceElementAtt
asNode, asString, getPrefix, getReferenceName, writeTo
 
Methods inherited from class org.specrunner.source.resource.element.core.AbstractResourceElement
getElement, setElement
 
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
 

Constructor Detail

ImageResource

public ImageResource(ISource parent,
                     String path,
                     boolean classpath,
                     EType type,
                     nu.xom.Element element)
Creates an image resource.

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

appendChild

protected void appendChild(nu.xom.Element e)
Description copied from class: AbstractResourceElementAtt
Append child elements, by default add a comment.

Overrides:
appendChild in class AbstractResourceElementAtt
Parameters:
e - The root element.


Copyright © 2014. All rights reserved.