com.kuka.common
Class TaggableObject

java.lang.Object
  extended by com.kuka.common.TaggableObject
All Implemented Interfaces:
ITaggable

public abstract class TaggableObject
extends Object
implements ITaggable

Provides a tag based access to values associated with a specific object.

This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

Constructor Summary
protected TaggableObject()
          Creates a new instance of a taggable object.
 
Method Summary
 Object getTag(String key)
          Gets the data stored under the given key.
 void setTag(String key, Object value)
          Stores data under the given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaggableObject

protected TaggableObject()
Creates a new instance of a taggable object.

Method Detail

getTag

public Object getTag(String key)
Description copied from interface: ITaggable
Gets the data stored under the given key.

This 'tag' can be used to save additional information about the object and retrieve it from the object.

Specified by:
getTag in interface ITaggable
Parameters:
key - The key. May not be null.
Returns:
The data stored under the given key or null if not found.
See Also:
ITaggable.setTag(String, Object)

setTag

public void setTag(String key,
                   Object value)
Description copied from interface: ITaggable
Stores data under the given key.

This data can be retrieved later from the object through the getTag-method.

Specified by:
setTag in interface ITaggable
Parameters:
key - The key. May not be null.
value - The value. May not be null.
See Also:
ITaggable.getTag(String)


Copyright © 2019. All rights reserved.