|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.id.PropertyId
public class PropertyId
Property identifier. An instance of this class identifies a single property using the UUID of the parent node and the name of the property. Once created a property identifier instance is immutable.
Constructor Summary | |
---|---|
PropertyId(NodeId parentId,
Name propName)
Creates a property identifier instance for the identified property. |
Method Summary | |
---|---|
boolean |
denotesNode()
Returns false as this class represents a property
identifier, not a node identifier. |
boolean |
equals(Object obj)
|
Name |
getName()
Returns the Name of the property. |
NodeId |
getParentId()
Returns the identifier of the parent node. |
int |
hashCode()
Returns the hash code of this property identifier. |
String |
toString()
Returns the same as this.getParentId() + "/" + this.getName() |
static PropertyId |
valueOf(String s)
Returns a property identifier instance holding the value of the specified string. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertyId(NodeId parentId, Name propName)
parentId
- the id of the parent nodepropName
- Name of the propertyMethod Detail |
---|
public boolean denotesNode()
false
as this class represents a property
identifier, not a node identifier.
denotesNode
in interface ItemId
false
ItemId.denotesNode()
public NodeId getParentId()
public Name getName()
Name
of the property.
Name
of the property.public static PropertyId valueOf(String s) throws IllegalArgumentException
toString()
method of this class.
s
- a String
containing the PropertyId
representation to be parsed.
PropertyId
represented by the argument
IllegalArgumentException
- if the specified string can not be parsed
as a PropertyId
.toString()
public boolean equals(Object obj)
equals
in class Object
public String toString()
this.getParentId() + "/" + this.getName()
toString
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |