|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.splunk.modularinput.Argument
public class Argument
The Argument
class represents an argument to a modular input kind.
Argument
is meant to be used with Scheme
to generate an XML definition of the modular input
kind that Splunk understands.
Nested Class Summary | |
---|---|
static class |
Argument.DataType
|
Constructor Summary | |
---|---|
Argument(java.lang.String name)
|
Method Summary | |
---|---|
void |
addToDocument(org.w3c.dom.Document doc,
org.w3c.dom.Node parent)
Returns an Element object representing this argument that can be added to another XML document for the Scheme . |
Argument.DataType |
getDataType()
Gets the data type of this argument. |
java.lang.String |
getDescription()
Gets the human readable description of this argument. |
java.lang.String |
getName()
Gets the name that Splunk uses to represent this argument. |
java.lang.String |
getValidation()
Gets the validation to be used on this argument, if using internal validation. |
boolean |
isRequiredOnCreate()
Returns whether a value for this argument must be specified when creating a modular input of this kind. |
boolean |
isRequiredOnEdit()
Returns whether a value for this argument must be specified when editing an existing modular input of this kind. |
void |
setDataType(Argument.DataType dataType)
Sets the data type of this argument. |
void |
setDescription(java.lang.String description)
Sets the human readable description of this argument. |
void |
setName(java.lang.String name)
Sets the name that Splunk will use to represent this argument. |
void |
setRequiredOnCreate(boolean requiredOnCreate)
Sets whether a value for this argument must be specified when creating a modular input of this kind. |
void |
setRequiredOnEdit(boolean requiredOnEdit)
Sets whether a value for this argument must be specified when editing an existing modular input of this kind. |
void |
setValidation(java.lang.String validation)
Sets the validation string that internal validation should use on this argument. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Argument(java.lang.String name)
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name that Splunk will use to represent this argument.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The human readable description of this argument.public java.lang.String getValidation()
public void setValidation(java.lang.String validation)
validation
- The validation string that internal validation should use on this argument.public Argument.DataType getDataType()
public void setDataType(Argument.DataType dataType)
dataType
- The data type of this argument.public boolean isRequiredOnEdit()
true
if a value for this argument must be specified when editing an existing modular input of this kind,
false
if not.public void setRequiredOnEdit(boolean requiredOnEdit)
requiredOnEdit
- true
if a value for this argument must be specified when editing an existing modular input of this kind,
false
if not.public boolean isRequiredOnCreate()
true
if a value for this argument must be specified when creating a modular input of this kind,
false
if not.public void setRequiredOnCreate(boolean requiredOnCreate)
requiredOnCreate
- true
if a value for this argument must be specified when creating a modular input of this kind,
false
if not.public void addToDocument(org.w3c.dom.Document doc, org.w3c.dom.Node parent)
Element
object representing this argument that can be added to another XML document for the Scheme
.
doc
- The XML document.parent
- The parent object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |