public abstract class RegexpParser extends AbstractPropertyContainerParser
PropertyTag
fields that are marked with the Regexp annotation will be parsed using the
defined regular expression and the ValueParserPolicyDUPLICATE_KEY| Constructor and Description |
|---|
RegexpParser() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
endParse()
End a batch parse this de-allocates any temporary storage and
and perform any final operations.
|
abstract uk.ac.ed.epcc.webapp.AppContext |
getContext() |
boolean |
parse(PropertyMap map,
java.lang.String record)
Parse a String representation of the UsageRecord.
|
java.util.Iterator<java.lang.String> |
splitRecords(java.lang.String update)
split a multiple record update into individual records
in the way appropriate to this accountng scheme.
|
void |
startParse(PropertyContainer staticProps)
Start a batch parse.
|
getDefaultUniqueProperties, modifyDefaultTableSpecification, uniquegetDerivedPropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDerivedProperties, initFinderpublic abstract uk.ac.ed.epcc.webapp.AppContext getContext()
public boolean parse(PropertyMap map, java.lang.String record) throws AccountingParseException
PropertyContainerParserAccountingParseExceptionmap - PropertyMap to add quantitiespublic java.util.Iterator<java.lang.String> splitRecords(java.lang.String update)
throws AccountingParseException
AbstractPropertyContainerParsersplitRecords in interface PropertyContainerParsersplitRecords in class AbstractPropertyContainerParserAccountingParseException - If a problem occurs while splitting the recordsupdate - string containing multiple recordspublic void startParse(PropertyContainer staticProps) throws java.lang.Exception
PropertyContainerUpdaterstartParse in interface PropertyContainerUpdaterstartParse in class AbstractPropertyContainerUpdaterjava.lang.ExceptionstaticProps - properties constant for this accounting run.public java.lang.String endParse()
PropertyContainerUpdaterendParse in interface PropertyContainerUpdaterendParse in class AbstractPropertyContainerUpdater