|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.splunk.modularinput.Parameter com.splunk.modularinput.SingleValueParameter
public class SingleValueParameter
The SingleValueParameter
class represents a parameter as part of a modular input instance that
contains only a single value. This corresponds to XML fragments of the form:
<param name="param1">value11</param>
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
|
boolean |
getBoolean()
Tries to coerce the value of this parameter to a Boolean. |
double |
getDouble()
Coerces the value of this field to a double. |
float |
getFloat()
Coerces the value of this field to a float. |
int |
getInt()
Coerces the value of this field to an int. |
long |
getLong()
Coerces the value of this field to a long. |
java.lang.String |
getName()
|
java.lang.String |
getValue()
Returns the parameter as found (as a String), without trying to coerce it to another type. |
int |
hashCode()
|
Methods inherited from class com.splunk.modularinput.Parameter |
---|
nodeToParameterList |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getName()
getName
in class Parameter
public java.lang.String getValue()
getBoolean
or one of getInt
, getLong
,
getFloat
, and getDouble
instead.
public boolean getBoolean() throws MalformedDataException
true
, and a similar range (false, f, off, 0, no, n) as false
. Everything
else, including null, results in a MalformedDataException
.
MalformedDataException
- If the value cannot be coerced to a boolean.public int getInt()
public long getLong()
public float getFloat()
public double getDouble()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |