public abstract class Parameter extends Object
Parameter
class is a base class for parameters of modular inputs. It has two subclasses: SingleValueParameter
and MultiValueParameter
.
All parameters should be constructed with the static nodeToParameterList
method, which takes an XML org.w3c.dom.Node
object as its argument and returns a list of Parameter
objects, single valued or multi valued as needed.Modifier and Type | Method and Description |
---|---|
abstract String |
getName() |
static List<Parameter> |
nodeToParameterList(Node node)
Generates a list of
Parameter objects from an org.w3c.dom.Node object containing a set of parameters. |
public abstract String getName()
public static List<Parameter> nodeToParameterList(Node node) throws MalformedDataException
Parameter
objects from an org.w3c.dom.Node
object containing a set of parameters. The node
may be any element, but is expected to contain elements param or param_list, as in
<stanza name="foobar://aaa">
<param name="param1">value1</param>
<param name="param2">value2</param>
<param name="disabled">0</param>
<param name="index">default</param>
<param_list name="multiValue">
<value>value1</value>
<value>value2</value>
</param_list>
</stanza>
node
- An org.w3c.dom.Node
object containing the parameter list as children.MalformedDataException
- If the XML does not specify a valid parameter list.Copyright © 2022 Splunk, Inc.. All rights reserved.