Class DefaultLoadOptions

    • Constructor Detail

      • DefaultLoadOptions

        public DefaultLoadOptions()
    • Method Detail

      • getNodeNamePattern

        public String getNodeNamePattern()
        Description copied from interface: LoadOptions
        A string pattern used to match the nodes to load.
        Specified by:
        getNodeNamePattern in interface LoadOptions
        Returns:
        A string used to compare against the node name. If null or empty then this option is ruled out.
      • setNodeNamePattern

        public void setNodeNamePattern​(String nodeNamePattern)
      • getResourceIds

        public Collection<String> getResourceIds()
        Description copied from interface: LoadOptions
        The resource identifiers to take into account when loading the children nodes.
        Specified by:
        getResourceIds in interface LoadOptions
        Returns:
        A collection of ids If null or empty then this option is ruled out.
      • setResourceIds

        public void setResourceIds​(Collection<String> resourceIds)
      • getMaxNodes

        public int getMaxNodes()
        Description copied from interface: LoadOptions
        The maximum number of nodes to load.

        NOTE: It can only be used in combination with the LoadOptions.getNodeNamePattern() option.

        Specified by:
        getMaxNodes in interface LoadOptions
        Returns:
        A positive integer. If 0 or negative integer then all nodes are loaded.
      • setMaxNodes

        public void setMaxNodes​(int maxNodes)