de.unihalle.informatik.Alida.operator
Class ALDOperatorLocation

java.lang.Object
  extended by de.unihalle.informatik.Alida.operator.ALDOperatorLocation

public class ALDOperatorLocation
extends java.lang.Object

Author:
posch

Nested Class Summary
static class ALDOperatorLocation.LocationType
           
 
Field Summary
protected  ALDOperatorLocationType locationType
          Type of this location
protected  java.lang.String name
          The name of this location in the original form, e.g. a filename or a fully qualified class name
 
Constructor Summary
protected ALDOperatorLocation()
          Default constructor, should never be called directly!
 
Method Summary
static ALDOperatorLocation createClassLocation(java.lang.String className)
          Creates and returns a new location for an class extending ALDOperator.
 ALDOperator createOperator()
          Create an ALDOperator form this location object.
static ALDOperatorLocation createWorkflowFileLocation(java.lang.String filename)
          Creates and returns a new location for a file holding a work flow.
 java.lang.String getName()
          Returns the proper name of this location
 java.lang.String[] getPartsOfName()
          Return the parts of the name within a hierarchy, e.g. package structure or package structure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

locationType

protected ALDOperatorLocationType locationType
Type of this location


name

protected java.lang.String name
The name of this location in the original form, e.g. a filename or a fully qualified class name

Constructor Detail

ALDOperatorLocation

protected ALDOperatorLocation()
Default constructor, should never be called directly!

Method Detail

createClassLocation

public static ALDOperatorLocation createClassLocation(java.lang.String className)
Creates and returns a new location for an class extending ALDOperator.

Parameters:
className -
Returns:

createOperator

public ALDOperator createOperator()
                           throws ALDOperatorException,
                                  ALDWorkflowException
Create an ALDOperator form this location object.

Returns:
Throws:
ALDOperatorException - if instantiation of class fails
ALDWorkflowException - if file not found or deserialization of work flow fails,
See Also:
ALDWorkflow.load(String)

createWorkflowFileLocation

public static ALDOperatorLocation createWorkflowFileLocation(java.lang.String filename)
Creates and returns a new location for a file holding a work flow.

Parameters:
filename -
Returns:

getName

public java.lang.String getName()
Returns the proper name of this location

Returns:

getPartsOfName

public java.lang.String[] getPartsOfName()
Return the parts of the name within a hierarchy, e.g. package structure or package structure

Returns:
The parts of the name or null if the location type of this object is unknown