org.pentaho.platform.engine.services.actionsequence
Class ActionSequenceResource
java.lang.Object
org.pentaho.platform.engine.services.actionsequence.ActionSequenceResource
- All Implemented Interfaces:
- IActionSequenceResource
public class ActionSequenceResource
- extends java.lang.Object
- implements IActionSequenceResource
Constructor Summary |
ActionSequenceResource(java.lang.String name,
int sourceType,
java.lang.String mimeType,
java.lang.String address)
|
ActionSequenceResource(java.lang.String name,
int sourceType,
java.lang.String mimeType,
java.lang.String solutionName,
java.lang.String solutionPath,
java.lang.String location)
|
Method Summary |
java.lang.String |
getAddress()
Depending on the resource source type, returns the address to the
resource as a path or a URL. |
java.lang.String |
getMimeType()
Returns the mime type of the resource. |
java.lang.String |
getName()
Return the xml node name of the resource |
static int |
getResourceType(java.lang.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 |
ActionSequenceResource
public ActionSequenceResource(java.lang.String name,
int sourceType,
java.lang.String mimeType,
java.lang.String address)
ActionSequenceResource
public ActionSequenceResource(java.lang.String name,
int sourceType,
java.lang.String mimeType,
java.lang.String solutionName,
java.lang.String solutionPath,
java.lang.String location)
getName
public java.lang.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 java.lang.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 java.lang.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
getResourceType
public static int getResourceType(java.lang.String sourceTypeName)