public class InstanceMetadata extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
InstanceMetadata() |
Modifier and Type | Method and Description |
---|---|
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
|
public static final String METADATA_ID
public static final String METADATA_SOURCEID
public static void setID(MutableInstance instance, Object id)
instance
- the certain instance to changeid
- the id to setpublic static void setSourceID(MutableInstance instance, Object... id)
instance
- the certain instance to changeid
- the id to set, can be multiple IDspublic static String getSourceID(Instance instance)
instance
- the instance to get the SourceID from null
if the instance doesn't contain an id in its meta data
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a