public abstract class LogDetail
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
emptyValue |
protected java.lang.String |
name |
protected java.lang.String |
pattern |
protected boolean |
required |
Constructor and Description |
---|
LogDetail(java.lang.String name,
java.lang.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 |
---|---|
java.lang.String |
getEmptyValue()
Get the String that is recognized in the input line as an empty value.
|
java.lang.String |
getName()
Get the name of the detail contained in this object.
|
java.lang.String |
getPattern()
Get the pattern used to capture the log detail.
|
abstract java.lang.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(java.lang.String ev)
Specify a log detail value that is recognized as empty.
|
abstract java.lang.String |
toString()
Represent the value stored in the LogDetail as a String.
|
protected java.lang.String name
protected java.lang.String pattern
protected boolean required
protected java.lang.String emptyValue
public LogDetail(java.lang.String name, java.lang.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 java.lang.String getName()
public java.lang.String getPattern()
public abstract java.lang.String getType()
public boolean isRequired()
public void setEmptyValue(java.lang.String ev)
ev
- public java.lang.String getEmptyValue()
public abstract java.lang.String toString()
toString
in class java.lang.Object
public abstract void reset()
Copyright © 2010-2019 Planetary Data System. All Rights Reserved.