Class ModifiableGroovyDsSetNodeCollection

    • Method Detail

      • get

        public GroovyDsSetNode get​(String p_strKey)
        Get the set node with the given unique identifier.
        Parameters:
        p_strKey - The unique identifier of the set node.
        Returns:
        The set node, or null if there is no set node with the given unique identifier.
      • getAt

        public GroovyDsSetNode getAt​(String p_strIndex)
        Get the set node at the given index.
        Parameters:
        p_strIndex - The index (unique identifier) of the set node.
        Returns:
        The set node, or null if there is no set node with the given unique identifier.
      • add

        public boolean add​(GroovyDsSetNode p_node)
        Add the set node with the given unique identifier.

        If a set node with the same unique identifier already exists it will be replaced.

        Parameters:
        p_node - The set to be added.
        Returns:
        true if this collection changed as a result of the call, or false otherwise.
        Throws:
        IllegalArgumentException - If the given unique identifier is null, or if no corresponding set node could be found.
      • add

        public boolean add​(CharSequence p_strGuid)
        Add the set node with the given unique identifier.

        If a set node with the same unique identifier already exists it will be replaced.

        Parameters:
        p_strGuid - The unique identifier of the set to be added.
        Returns:
        true if this collection changed as a result of the call, or false otherwise.
        Throws:
        IllegalArgumentException - If the given unique identifier is null, or if no corresponding set node could be found.