Class Composite

    • Constructor Detail

      • Composite

        public Composite()
        Creates a new empty composite.
    • Method Detail

      • add

        public Composite add​(Operation operation)
        Adds the specified operation to this composite.
        Parameters:
        operation - The operation to add.
        Returns:
        this composite
      • isEmpty

        public boolean isEmpty()
        Returns:
        whether this composite contains operations
      • size

        public int size()
        Returns:
        the number of operations
      • toString

        public String toString()
        Description copied from class: ModelNode
        Get a human-readable string representation of this model node, formatted nicely (possibly on multiple lines).
        Overrides:
        toString in class Operation
        Returns:
        a string representation of this composite
      • asCli

        public String asCli()
        Overrides:
        asCli in class Operation
        Returns:
        the string representation of the operation as used in the CLI