Class NamedNode

    • Constructor Detail

      • NamedNode

        public NamedNode​(ModelNode node)
      • NamedNode

        public NamedNode​(Property property)
    • Method Detail

      • equals

        public boolean equals​(Object o)
        Description copied from class: ModelNode
        Determine whether this object is equal to another.
        Overrides:
        equals in class ModelNode
        Parameters:
        o - the other object
        Returns:
        true if they are equal, false otherwise
      • hashCode

        public int hashCode()
        Description copied from class: ModelNode
        Get the hash code of this node object. Note that unless the value is ModelNode.protect()ed, the hash code may change over time, thus making unprotected nodes unsuitable for use as hash table keys.
        Overrides:
        hashCode in class ModelNode
        Returns:
        the hash code
      • toString

        public String toString()
        Description copied from class: ModelNode
        Get a human-readable string representation of this model node, formatted nicely (possibly on multiple lines).
        Overrides:
        toString in class ModelNode
        Returns:
        a string representation of this model node
      • getName

        public String getName()
        Specified by:
        getName in interface NamedObject
        Returns:
        the name of this named node
      • setName

        public void setName​(String name)
      • asModelNode

        public ModelNode asModelNode()
        Returns:
        the model node of this named node
      • update

        public void update​(ModelNode node)