Class BaseIncludeNodes<T extends BaseIncludeNodes<T>>

    • Constructor Detail

      • BaseIncludeNodes

        public BaseIncludeNodes​(String label,
                                DetachedPropertiesDescription propertiesDescription)
        Create a new policy.
        Parameters:
        label - that matching nodes must have, can be null for all labels.
        propertiesDescription - of the matching nodes.
    • Method Detail

      • with

        public T with​(String label)
        Create a new policy from the current one, reconfigured to only match nodes with the given label.
        Parameters:
        label - that matching nodes must have, can be null for all labels.
        Returns:
        reconfigured policy.
      • with

        public T with​(Label label)
        Create a new policy from the current one, reconfigured to only match nodes with the given label.
        Parameters:
        label - that matching nodes must have, can be null for all labels.
        Returns:
        reconfigured policy.
      • newInstance

        protected abstract T newInstance​(String label)
        Create a new instance of this policy with the given label.
        Parameters:
        label - of the new policy.
        Returns:
        new policy.
      • getLabel

        public String getLabel()
        Get the label with which this policy has been configured.
        Returns:
        label, can be null (representing any label incl. none).