public abstract class LogDetail extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
emptyValue |
protected String |
name |
protected String |
pattern |
protected boolean |
required |
Constructor and Description |
---|
LogDetail(String name,
String pattern,
boolean required)
Create a LogDetail object, specifying it's name, the RE pattern used to
capture the detail, and whether a value is required for the detail that
will be captured.
|
Modifier and Type | Method and Description |
---|---|
String |
getEmptyValue()
Get the String that is recognized in the input line as an empty value.
|
String |
getName()
Get the name of the detail contained in this object.
|
String |
getPattern()
Get the pattern used to capture the log detail.
|
abstract String |
getType()
Get the type (i.e.
|
boolean |
isRequired()
Indicate whether the detail to be captured in this object is required.
|
abstract void |
reset()
Reset the value contained within the LogDetail object.
|
void |
setEmptyValue(String ev)
Specify a log detail value that is recognized as empty.
|
abstract String |
toString()
Represent the value stored in the LogDetail as a String.
|
protected String name
protected String pattern
protected boolean required
protected String emptyValue
public LogDetail(String name, String pattern, boolean required)
name
- The name of the detail contained in this object.pattern
- The pattern used to capture the detail from logs.required
- Whether a value is required for the containing line to
be considered valid.public String getName()
public String getPattern()
public abstract String getType()
public boolean isRequired()
public void setEmptyValue(String ev)
ev
- public String getEmptyValue()
public abstract String toString()
public abstract void reset()
Copyright © 2010–2017 Planetary Data System. All rights reserved.