public abstract class ALDData extends Object
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.
Modifier and Type | Field and Description |
---|---|
private Hashtable<String,String> |
properties
Properties of the data object
|
Constructor and Description |
---|
ALDData()
Create a data object.
|
Modifier and Type | Method and Description |
---|---|
Hashtable<String,String> |
cloneProperties()
Clone the property hash of this obejct.
|
String |
getLocation()
Get the location property, i.e. property with key location
|
String |
getProperty(String key)
Get a property value for the given
key . |
Enumeration<String> |
getPropertyKeys()
Get the keys of all properties set in this data object
|
void |
print()
Print this data object to standard out
|
void |
setLocation(String location)
Set the location property, i.e. property with key location
|
void |
setProperty(String key,
Object o)
Set the property with key to new value o.
|
public ALDData()
public Enumeration<String> getPropertyKeys()
public void setProperty(String key, Object o)
key
- key of property to seto
- new value of this propertypublic String getProperty(String key)
key
.key
- key of property to getpublic Hashtable<String,String> cloneProperties()
public void setLocation(String location)
location
- new value of location propertypublic String getLocation()
public void print()
Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.