org.pentaho.platform.engine.services.actionsequence
Class ActionResource

java.lang.Object
  extended by org.pentaho.platform.engine.services.actionsequence.ActionResource
All Implemented Interfaces:
IActionSequenceResource

public class ActionResource
extends Object
implements IActionSequenceResource


Field Summary
 
Fields inherited from interface org.pentaho.platform.api.engine.IActionSequenceResource
FILE_RESOURCE, SOLUTION_FILE_RESOURCE, STRING, UNKNOWN_RESOURCE, URL_RESOURCE, XML
 
Constructor Summary
ActionResource(String name, int sourceType, String mimeType, String address)
           
ActionResource(String name, int sourceType, String mimeType, String solutionName, String solutionPath, String location)
           
 
Method Summary
 String getAddress()
          Depending on the resource source type, returns the address to the resource as a path or a URL.
 String getMimeType()
          Returns the mime type of the resource.
 String getName()
          Return the xml node name of the resource
static int getResourceType(String sourceTypeName)
           
 int getSourceType()
          Get the type of external resource that this ActionResource is derived from.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionResource

public ActionResource(String name,
                      int sourceType,
                      String mimeType,
                      String address)

ActionResource

public ActionResource(String name,
                      int sourceType,
                      String mimeType,
                      String solutionName,
                      String solutionPath,
                      String location)
Method Detail

getResourceType

public static int getResourceType(String sourceTypeName)

getName

public String getName()
Description copied from interface: IActionSequenceResource
Return the xml node name of the resource

Specified by:
getName in interface IActionSequenceResource
Returns:
name of the resource

getMimeType

public String getMimeType()
Description copied from interface: IActionSequenceResource
Returns the mime type of the resource. Since resources are external, they can take on many different formats ie., text/xml, image/jpg, etc.

Specified by:
getMimeType in interface IActionSequenceResource
Returns:
the mime type of the resource

getSourceType

public int getSourceType()
Description copied from interface: IActionSequenceResource
Get the type of external resource that this ActionResource is derived from.

Valid source types are SOLUTION_FILE_RESOURCE, URL_RESOURCE, FILE_RESOURCE and UNKNOWN_RESOURCE

Specified by:
getSourceType in interface IActionSequenceResource
Returns:
the resource source type

getAddress

public String getAddress()
Description copied from interface: IActionSequenceResource
Depending on the resource source type, returns the address to the resource as a path or a URL.

Specified by:
getAddress in interface IActionSequenceResource
Returns:
address of resource