public class StructureRecordValidator extends net.idea.modbcum.p.DefaultAmbitProcessor<IStructureRecord,IStructureRecord>
Modifier and Type | Field and Description |
---|---|
protected String |
filename |
protected boolean |
fixErrors |
protected String |
prefix |
Constructor and Description |
---|
StructureRecordValidator() |
StructureRecordValidator(String filename,
boolean fixErrors,
String prefix) |
Modifier and Type | Method and Description |
---|---|
static String |
generateUUIDfromString(String prefix,
String id) |
String |
getFilename() |
String |
getPrefix() |
boolean |
isFixErrors() |
protected void |
log(SubstanceRecord record,
String msg) |
IStructureRecord |
process(IStructureRecord record) |
void |
setFilename(String filename) |
void |
setFixErrors(boolean fixErrors) |
void |
setPrefix(String prefix) |
IStructureRecord |
validate(SubstanceRecord record) |
IStructureRecord |
validate(SubstanceRecord record,
CompositionRelation rel) |
IStructureRecord |
validate(SubstanceRecord record,
ProtocolApplication<Protocol,IParams,String,IParams,String> papp) |
protected boolean fixErrors
protected String prefix
protected String filename
public String getFilename()
public void setFilename(String filename)
public String getPrefix()
public void setPrefix(String prefix)
public boolean isFixErrors()
public void setFixErrors(boolean fixErrors)
public IStructureRecord process(IStructureRecord record) throws Exception
Exception
public IStructureRecord validate(SubstanceRecord record) throws Exception
Exception
protected void log(SubstanceRecord record, String msg)
public IStructureRecord validate(SubstanceRecord record, ProtocolApplication<Protocol,IParams,String,IParams,String> papp) throws Exception
Exception
public IStructureRecord validate(SubstanceRecord record, CompositionRelation rel) throws Exception
Exception
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.