public class PropertyId extends Object implements ItemId
Constructor and Description |
---|
PropertyId(NodeId parentId,
Name propName)
Creates a property identifier instance for the identified property.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 argumentIllegalArgumentException
- if the specified string can not be parsed
as a PropertyId
.toString()
public String toString()
this.getParentId() + "/" + this.getName()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.