Class ListNode<T extends Node>

  • Type Parameters:
    T - type of child nodes
    All Implemented Interfaces:
    Node

    public class ListNode<T extends Node>
    extends BaseNode
    Node containing a list of child nodes.
    • Constructor Detail

      • ListNode

        public ListNode​(@NotNull
                        @NotNull List<T> list,
                        @NotNull
                        @NotNull com.atlassian.bamboo.specs.api.validators.common.ValidationContext validationContext)
    • Method Detail

      • fromList

        @NotNull
        public static @NotNull ListNode<Node> fromList​(@NotNull
                                                       @NotNull List<?> list,
                                                       @NotNull
                                                       @NotNull com.atlassian.bamboo.specs.api.validators.common.ValidationContext validationContext)
      • stream

        @NotNull
        public @NotNull Stream<T> stream()
      • asListOf

        @NotNull
        public <X extends Node> @NotNull ListNode<X> asListOf​(@NotNull
                                                              @NotNull Class<X> expectedType)
      • getList

        @NotNull
        public @NotNull List<T> getList()
      • getUnusedProperties

        @NotNull
        public @NotNull List<String> getUnusedProperties()
        Description copied from interface: Node
        Visits recursively the whole structure and returns list of unused properties. Children of unused properties are not reported.