de.unihalle.informatik.Alida.operator
Class ALDData

java.lang.Object
  extended by de.unihalle.informatik.Alida.operator.ALDData
Direct Known Subclasses:
ExperimentalData

public abstract class ALDData
extends java.lang.Object

This is the abstract class from which all data classes have to be derived which want properties to be recored when returned from an operator as result.

Each object of type ALDData holds properties like image type, resolution or specification of acquisition devices. There is one specific property with key "location" which is expected to contain a file name or in general URI to the persistant storage location. Applicable only if this data object was read from persistant storage and not created from scratch. Properties may change during the lifetime of a ALDData object.


Field Summary
private  java.util.Hashtable<java.lang.String,java.lang.String> properties
          Properties of the data object
 
Constructor Summary
ALDData()
          Create a data object.
 
Method Summary
 java.util.Hashtable<java.lang.String,java.lang.String> cloneProperties()
          Clone the property hash of this obejct.
 java.lang.String getLocation()
          Get the location property, i.e. property with key location
 java.lang.String getProperty(java.lang.String key)
          Get a property value for the given key.
 java.util.Enumeration<java.lang.String> getPropertyKeys()
          Get the keys of all properties set in this data object
 void print()
          Print this data object to standard out
 void setLocation(java.lang.String location)
          Set the location property, i.e. property with key location
 void setProperty(java.lang.String key, java.lang.Object o)
          Set the property with key to new value o.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

private java.util.Hashtable<java.lang.String,java.lang.String> properties
Properties of the data object

Constructor Detail

ALDData

public ALDData()
Create a data object. Initializes the member varaiables as appropriate.

Method Detail

cloneProperties

public java.util.Hashtable<java.lang.String,java.lang.String> cloneProperties()
Clone the property hash of this obejct.

Returns:
cloned porperties

getLocation

public java.lang.String getLocation()
Get the location property, i.e. property with key location


getProperty

public java.lang.String getProperty(java.lang.String key)
Get a property value for the given key.

Parameters:
key - key of property to get

getPropertyKeys

public java.util.Enumeration<java.lang.String> getPropertyKeys()
Get the keys of all properties set in this data object

Returns:
property keys

print

public void print()
Print this data object to standard out


setLocation

public void setLocation(java.lang.String location)
Set the location property, i.e. property with key location

Parameters:
location - new value of location property

setProperty

public void setProperty(java.lang.String key,
                        java.lang.Object o)
Set the property with key to new value o. Set the property also for associated port, if it is a ALDDataPort.

Parameters:
key - key of property to set
o - new value of this property