de.unihalle.informatik.Alida.operator
Class ALDOperatorLocation

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

public class ALDOperatorLocation
extends Object

Author:
posch

Nested Class Summary
static class ALDOperatorLocation.LocationType
           
 
Field Summary
protected  ALDOperatorLocationType locationType
          Type of this location
protected  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(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(String filename)
          Creates and returns a new location for a file holding a work flow.
 String getName()
          Returns the proper name of this location
 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 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(String className)
Creates and returns a new location for an class extending ALDOperator.

Parameters:
className -
Returns:

createWorkflowFileLocation

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

Parameters:
filename -
Returns:

getPartsOfName

public 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

getName

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

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)


Copyright © 2010–2014 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.