public class GridMapParser extends AbstractPropertyContainerParser
| Modifier and Type | Field and Description |
|---|---|
static PropertyTag<java.lang.String> |
GRIDMAP_DN |
static PropertyRegistry |
gridmap_reg |
static PropertyTag<java.lang.String> |
GRIDMAP_USER |
DUPLICATE_KEY| Constructor and Description |
|---|
GridMapParser() |
| Modifier and Type | Method and Description |
|---|---|
PropertyFinder |
initFinder(uk.ac.ed.epcc.webapp.AppContext ctx,
PropertyFinder prev,
java.lang.String table)
Generate a PropertyFinder that will find any PropertyTag generated by this class.
|
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.
|
getDefaultUniqueProperties, modifyDefaultTableSpecification, uniqueendParse, getDerivedProperties, startParseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendParse, getDerivedProperties, startParsepublic static final PropertyRegistry gridmap_reg
public static final PropertyTag<java.lang.String> GRIDMAP_USER
public static final PropertyTag<java.lang.String> GRIDMAP_DN
public boolean parse(PropertyMap map, java.lang.String record) throws AccountingParseException
PropertyContainerParserAccountingParseExceptionmap - PropertyMap to add quantitiespublic PropertyFinder initFinder(uk.ac.ed.epcc.webapp.AppContext ctx, PropertyFinder prev, java.lang.String table)
PropertyContainerUpdaterAll properties defined at run-time should have their PropertyTag objects constructed by the time the first call to this method returns. As some parsers properties will generate different things depending on the other properties already in scope this method is passed a PropertyFinder for any properties that may already be in scope. This will include any default parameters specified when the data was uploaded and any properties generated from the database meta-data. Though it is perfectly legal to return a PropertyFinder that returns a superset of the generated properties the only requirement is that the returned finder can find any property that this classes parse method may actually generate values for. So Normally the contents of the super-finder are not included in the result unless these values are actually generated by the parse. If values are generated then a MultiFinder can be populated with the PropertyRegistrys from the generated properties
prev - PropertyFinder for the higher levels in the call chain.table - String name of the destination table in case per-table customisation is neededpublic 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 records