Class VelocityDsNodes

    • Method Detail

      • size

        public int size()
        Get the number of org structure elements in this collection.
        Returns:
        The number of org structure elements in this collection.
      • isEmpty

        public boolean isEmpty()
        Check if this collection is empty.
        Returns:
      • contains

        public boolean contains​(Object p_obj)
        Check if this collection contains an org structure node that matches the given object.
        Parameters:
        p_obj - The key.
        Returns:
        true if this collection contains an object that matches the given object, or false otherwise.
      • get

        public AbstractVelocityDsNode get​(Object p_obj)
        Get an org structure node from this collection that matches the given object.
        Parameters:
        p_obj - The key, either na org structure nodes, a GUID, or a name.
        Returns:
        The matching org structure node, or null.
      • intersect

        public VelocityDsNodes intersect​(Collection<Object> p_collection)
        Intersect this collection with the given collection.
        Parameters:
        p_collection - A collection of org structure nodes, GUIDs, or names.
        Returns:
        A collection that contains all org structure nodes of this collection that are referenced or contained in the given collection.
        Throws:
        IllegalArgumentException - If the given collection is null.
      • intersect

        public VelocityDsNodes intersect​(VelocityDsNodes p_nodes)
        Intersect this collection with the given collection.
        Parameters:
        p_nodes - A collection VelocityDsNodes.
        Returns:
        A collection that contains all org structure nodes of this collection that are referenced or contained in the given collection.
        Throws:
        IllegalArgumentException - If the given collection is null.
      • intersects

        public boolean intersects​(Collection<Object> p_collection)
        Intersect this collection with the given collection.
        Parameters:
        p_collection - A collection of org structure nodes, GUIDs, or names.
        Returns:
        true if the given collection contains an element that is also contained in this collection, or false otherwise.
        Throws:
        IllegalArgumentException - If the given collection is null.
      • intersects

        public boolean intersects​(VelocityDsNodes p_nodes)
        Intersect this collection with the given collection.
        Parameters:
        p_nodes - A collection VelocityDsNodes.
        Returns:
        true if the given collection contains an element that is also contained in this collection, or false otherwise.
        Throws:
        IllegalArgumentException - If the given collection is null.
      • getGuids

        public List<String> getGuids()
        Get a list that contains the GUIDs of the nodes in this collection. The GUID's order is the same as the node's order.
        Returns:
        A list of GUIDs.