Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.instance.model
Class InstanceMetadata

java.lang.Object
  extended by eu.esdihumboldt.hale.common.instance.model.InstanceMetadata

public class InstanceMetadata
extends Object

Utility class for signing IDs to instance metadatas

Author:
Sebastian Reinhardt

Field Summary
static String METADATA_ID
          Name for the ID value stored in instance meta data
static String METADATA_SOURCEID
          Name for the SourceID value stored in instance meta data
 
Constructor Summary
InstanceMetadata()
           
 
Method Summary
static String getID(Instance instance)
          gets the ID of an instance from its metadata
static String getSourceID(Instance instance)
          gets the SourceID of an instance from its metadata
static void setID(MutableInstance instance, Object id)
          sets the ID of an instance in its meta data
static void setSourceID(MutableInstance instance, Object... id)
          sets the SourceID of an instance in its meta data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

METADATA_ID

public static final String METADATA_ID
Name for the ID value stored in instance meta data

See Also:
Constant Field Values

METADATA_SOURCEID

public static final String METADATA_SOURCEID
Name for the SourceID value stored in instance meta data

See Also:
Constant Field Values
Constructor Detail

InstanceMetadata

public InstanceMetadata()
Method Detail

setID

public static void setID(MutableInstance instance,
                         Object id)
sets the ID of an instance in its meta data

Parameters:
instance - the certain instance to change
id - the id to set

setSourceID

public static void setSourceID(MutableInstance instance,
                               Object... id)
sets the SourceID of an instance in its meta data

Parameters:
instance - the certain instance to change
id - the id to set, can be multiple IDs

getSourceID

public static String getSourceID(Instance instance)
gets the SourceID of an instance from its metadata

Parameters:
instance - the instance to get the SourceID from
Returns:
he first SourceID of the instance, my be null if the instance doesn't contain an id in its meta data

getID

public static String getID(Instance instance)
gets the ID of an instance from its metadata

Parameters:
instance - the instance with the certain id
Returns:
the first id of the instance, my be null if the instance doesn't contain an id in its meta data

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d