org.jboss.dna.jcr
Class PropertyId

java.lang.Object
  extended by org.jboss.dna.jcr.PropertyId

@Immutable
public final class PropertyId
extends Object

An immutable identifier for a property, often used to reference information a property held within the SessionCache.


Constructor Summary
PropertyId(UUID nodeId, Name propertyName)
          Create a new property identifier.
 
Method Summary
 boolean equals(Object obj)
          
 UUID getNodeId()
          Get the UUID of the node that owns the property.
 Name getPropertyName()
          Get the name of the property.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyId

public PropertyId(UUID nodeId,
                  Name propertyName)
Create a new property identifier.

Parameters:
nodeId - the UUID of the node that owns the property being reference; may not be null
propertyName - the name of the property being referenced; may not be null
Method Detail

getNodeId

public UUID getNodeId()
Get the UUID of the node that owns the property.

Returns:
the node's UUID; never null

getPropertyName

public Name getPropertyName()
Get the name of the property.

Returns:
the property name; never null

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.