Modifier and Type | Field and Description |
---|---|
protected String |
defaultValue |
protected String |
value |
emptyValue, name, pattern, required
Constructor and Description |
---|
StringLogDetail(String name,
String pattern,
boolean required)
Create a StringLogDetail object with the given name, pattern,
and requirement.
|
StringLogDetail(String name,
String pattern,
boolean required,
String defaultValue)
Create a StringLogDetail object with the given name, pattern,
requirement, and default value.
|
Modifier and Type | Method and Description |
---|---|
String |
getType()
Get the type (i.e.
|
String |
getValue()
Get the value of the log detail or the default value if no value was
extracted from the log line.
|
String |
getValue(StringLogDetail inputDetail)
This method is meant to be invoked on the StringLogDetail that
represents the log detail in output and accepts the input
StringLogDetail.
|
void |
reset()
Reset the value contained within the LogDetail object.
|
void |
setValue(String value)
Set the value of the log detail to the given String.
|
String |
toString()
Represent the value stored in the LogDetail as a String.
|
getEmptyValue, getName, getPattern, isRequired, setEmptyValue
public StringLogDetail(String name, String pattern, boolean required, String defaultValue)
name
- The name of the log detail.pattern
- The pattern used to extract the log detail from
the log line.required
- Whether the detail must have a value for the
containing log line to be considered valid.defaultValue
- The default value of the detail.public StringLogDetail(String name, String pattern, boolean required)
name
- The name of the log detail.pattern
- The pattern used to extract the log detail from
the log line.required
- Whether the detail must have a value for the
containing log line to be considered valid.public String getValue()
public String getValue(StringLogDetail inputDetail)
inputDetail
- The StringLogDetail storing the log detail value as
extracted from the input log detail.public String getType()
LogDetail
public void setValue(String value)
value
- The new value of the log detail.public void reset()
LogDetail
Copyright © 2010–2016 Planetary Data System. All rights reserved.