Class PropertyId

  • All Implemented Interfaces:
    Serializable, ItemId

    public class PropertyId
    extends Object
    implements ItemId
    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.
    See Also:
    Serialized Form
    • Constructor Detail

      • PropertyId

        public PropertyId​(NodeId parentId,
                          Name propName)
        Creates a property identifier instance for the identified property.
        parentId - the id of the parent node
        propName - Name of the property
    • Method Detail

      • denotesNode

        public boolean denotesNode()
        Returns false as this class represents a property identifier, not a node identifier.
        Specified by:
        denotesNode in interface ItemId
        always false
        See Also:
      • getParentId

        public NodeId getParentId()
        Returns the identifier of the parent node.
        id of parent node
      • getName

        public Name getName()
        Returns the Name of the property.
        Name of the property.
      • valueOf

        public static PropertyId valueOf​(String s)
                                  throws IllegalArgumentException
        Returns a property identifier instance holding the value of the specified string. The string must be in the format returned by the toString() method of this class.
        s - a String containing the PropertyId representation to be parsed.
        the PropertyId represented by the argument
        IllegalArgumentException - if the specified string can not be parsed as a PropertyId.
        See Also:
      • toString

        public String toString()
        Returns the same as this.getParentId() + "/" + this.getName()
        toString in class Object
      • hashCode

        public int hashCode()
        Returns the hash code of this property identifier. The hash code is computed from the parent node id and the property name.
        hashCode in class Object