|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PropertyHolder
Holds a set of properties of type Property.
| Field Summary | |
|---|---|
static Integer |
ROBOTTYPEALL
Special robot type identifier used for properties that are not associated to a specific robot type. |
| Method Summary | ||
|---|---|---|
PropertyHolder |
add(Integer robotTypeId,
Property property)
Adds the given property to this property holder. |
|
PropertyHolder |
add(Property property)
Adds the given property to this property holder. |
|
PropertyHolder |
addAll(Collection<com.kuka.util.Pair<Integer,Property>> entries)
Adds a number of property entries to this property holder. |
|
void |
addPropertyHolderListener(PropertyHolderListener listener)
Adds the given listener. |
|
Object |
clone()
Clones the property holder (method is protected in Object) |
|
|
containsAny(Class<T> propertyType)
Checks if for any robot type the given property type exists. |
|
Collection<com.kuka.util.Pair<Integer,Property>> |
entries()
|
|
void |
firePropertyHolderChanged()
Notifies all contained listeners that this property holder has changed. |
|
|
get(Class<T> propertyType)
Returns the value of the property with the specified type or null if it does not exist. |
|
|
get(Integer robotTypeId,
Class<T> propertyType)
If the property of the specified type is associated to the given robot type or all robot types, the value of this property is returned. |
|
Collection<Property> |
getAll()
|
|
Collection<Property> |
getAll(Integer robotTypeId)
|
|
Integer |
getCorrespondingRobotType(Property property)
Returns the corresponding robot type id. |
|
|
getSpecific(Integer robotTypeId,
Class<T> propertyType)
If the property of the specified type is associated to the given robot type, the value of this property is returned. |
|
|
getSuperProperty(Integer robotTypeId,
Class<T> superPropertyType)
Checks whether the property holder has a property for the given robot type that is a subclass of the given super property type. |
|
PropertyHolder |
remove(Class<? extends Property> propertyType)
Removes the property from this property holder. |
|
PropertyHolder |
remove(Integer robotTypeId,
Class<? extends Property> propertyType)
Removes the property associated with the given robot type from this property holder. |
|
PropertyHolder |
removeAny(Class<? extends Property> propertyType)
Removes the properties associated with any robot type from this property holder and returns it. |
|
void |
removePropertyHolderListener(PropertyHolderListener listener)
Removes the given listener. |
|
Collection<Property> |
values()
|
|
|
values(Class<T> propertyType)
Returns a collection of all properties of the given type. |
|
Collection<Property> |
values(Integer robotTypeId)
Returns a collection of all properties for the given robot type. |
|
| Field Detail |
|---|
static final Integer ROBOTTYPEALL
| Method Detail |
|---|
PropertyHolder add(Property property)
property - The property to add.
PropertyHolder add(Integer robotTypeId,
Property property)
robotTypeId - the robot type identifierproperty - the property to add
PropertyHolder addAll(Collection<com.kuka.util.Pair<Integer,Property>> entries)
entries - a collection of entries of property and associated robot type
id
PropertyHolder remove(Class<? extends Property> propertyType)
propertyType - The property type to remove.
PropertyHolder remove(Integer robotTypeId,
Class<? extends Property> propertyType)
robotTypeId - the robotpropertyType - The property type to remove.
PropertyHolder removeAny(Class<? extends Property> propertyType)
propertyType - The property type to remove.
<T extends Property> T get(Class<T> propertyType)
T - the type of the propertypropertyType - The type of the property.
<T extends Property> T get(Integer robotTypeId,
Class<T> propertyType)
null is returned.
T - the type of the propertyrobotTypeId - the robot type idpropertyType - The type of the property.
<T extends Property> T getSpecific(Integer robotTypeId,
Class<T> propertyType)
null is returned.
T - the type of the propertyrobotTypeId - the robot type idpropertyType - The type of the property.
<T extends Property> T getSuperProperty(Integer robotTypeId,
Class<T> superPropertyType)
null is returned.
T - the type of the super property.robotTypeId - the robot type id.superPropertyType - the super property.
Collection<Property> getAll()
Collection<Property> getAll(Integer robotTypeId)
robotTypeId - a robot type id
Collection<Property> values()
<T extends Property> Collection<T> values(Class<T> propertyType)
T - the type of the propertypropertyType - the property type
Collection<Property> values(Integer robotTypeId)
robotTypeId - a robot type id
Collection<com.kuka.util.Pair<Integer,Property>> entries()
Integer getCorrespondingRobotType(Property property)
property - the property
<T extends Property> boolean containsAny(Class<T> propertyType)
T - the type of the propertypropertyType - the property type
true if for any robot type the given property type exists, false otherwisevoid addPropertyHolderListener(PropertyHolderListener listener)
listener - the listener to addvoid removePropertyHolderListener(PropertyHolderListener listener)
listener - the listener to removevoid firePropertyHolderChanged()
Object clone()
throws CloneNotSupportedException
CloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||