Package adams.data.groupextraction
Class ReportFieldRegExpWithLookup
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.groupextraction.AbstractGroupExtractor
-
- adams.data.groupextraction.ReportFieldRegExp
-
- adams.data.groupextraction.ReportFieldRegExpWithLookup
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,QuickInfoSupporter,SizeOfHandler,GroupExtractor,Serializable
public class ReportFieldRegExpWithLookup extends ReportFieldRegExp
The initial group is the value of the regexp group applied to the specified report field. This group then gets pushed through the supplied lookups.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected BaseKeyValuePair[]m_Lookupsthe lookup mapping.protected Map<String,String>m_Mappingthe lookup.-
Fields inherited from class adams.data.groupextraction.ReportFieldRegExp
m_Field, m_Group, m_RegExp
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description ReportFieldRegExpWithLookup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.BaseKeyValuePair[]getLookups()Returns the lookups to apply to the initially extracted group.StringglobalInfo()Returns a string describing the object.StringlookupsTipText()Returns the tip text for this property.protected StringpostProcessGroup(String group)Hook method for post-processing the group.protected voidreset()Resets the scheme.voidsetLookups(BaseKeyValuePair[] value)Sets the lookups to apply to the initially extracted group.-
Methods inherited from class adams.data.groupextraction.ReportFieldRegExp
doExtractGroup, fieldTipText, getField, getGroup, getQuickInfo, getRegExp, groupTipText, handles, regExpTipText, setField, setGroup, setRegExp
-
Methods inherited from class adams.data.groupextraction.AbstractGroupExtractor
check, extractGroup
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, toCommandLine, toString
-
Methods inherited from class adams.core.logging.CustomLoggingLevelObject
setLoggingLevel
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
-
-
-
Field Detail
-
m_Lookups
protected BaseKeyValuePair[] m_Lookups
the lookup mapping.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Overrides:
globalInfoin classReportFieldRegExp- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classReportFieldRegExp
-
reset
protected void reset()
Resets the scheme.- Overrides:
resetin classAbstractOptionHandler
-
setLookups
public void setLookups(BaseKeyValuePair[] value)
Sets the lookups to apply to the initially extracted group.- Parameters:
value- the lookups
-
getLookups
public BaseKeyValuePair[] getLookups()
Returns the lookups to apply to the initially extracted group.- Returns:
- the lookups
-
lookupsTipText
public String lookupsTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
postProcessGroup
protected String postProcessGroup(String group)
Hook method for post-processing the group.- Overrides:
postProcessGroupin classAbstractGroupExtractor- Parameters:
group- the extract group- Returns:
- the (potentially) updated group
-
-