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 Object
- implements IActionSequenceResource
ActionSequenceResource
public ActionSequenceResource(String name,
int sourceType,
String mimeType,
String address)
ActionSequenceResource
public ActionSequenceResource(String name,
int sourceType,
String mimeType,
String solutionName,
String solutionPath,
String location)
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
getResourceType
public static int getResourceType(String sourceTypeName)