tuwien.auto.calimero.mgmt
Class PropertyClient.PropertyKey

java.lang.Object
  extended by tuwien.auto.calimero.mgmt.PropertyClient.PropertyKey
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
PropertyClient

public static final class PropertyClient.PropertyKey
extends java.lang.Object
implements java.lang.Comparable

Key value in the map returned by PropertyClient.getDefinitions().

A key consists of the interface object type and the property identifier of the associated property. If the property is defined globally, the global object type GLOBAL_OBJTYPE is used.


Field Summary
static int GLOBAL_OBJTYPE
          Identifier for a property defined with global object type.
 
Constructor Summary
PropertyClient.PropertyKey(int pid)
          Creates a new key for a global defined property.
PropertyClient.PropertyKey(int objType, int pid)
          Creates a new key for a property.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 boolean isGlobal()
          Returns whether the property is defined with global object type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GLOBAL_OBJTYPE

public static final int GLOBAL_OBJTYPE
Identifier for a property defined with global object type.

See Also:
Constant Field Values
Constructor Detail

PropertyClient.PropertyKey

public PropertyClient.PropertyKey(int pid)
Creates a new key for a global defined property.

Parameters:
pid - property identifier

PropertyClient.PropertyKey

public PropertyClient.PropertyKey(int objType,
                                  int pid)
Creates a new key for a property.

Parameters:
objType - object type of the property
pid - property identifier
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

isGlobal

public boolean isGlobal()
Returns whether the property is defined with global object type.

Returns:
true if property has global object type, false if property has a specific object type