public class DnxValidatorDefaultImpl
extends java.lang.Object
implements com.exlibris.digitool.common.dnx.DnxValidator
Modifier and Type | Field and Description |
---|---|
protected java.util.List<com.exlibris.digitool.common.dnx.DnxErrorReport> |
errors |
protected DNXProfile |
profile |
protected com.exlibris.core.sdk.consts.Enum.ObjectType |
type |
Constructor and Description |
---|
DnxValidatorDefaultImpl() |
DnxValidatorDefaultImpl(DNXProfile profile) |
Modifier and Type | Method and Description |
---|---|
protected void |
addErrorReport(java.lang.String code) |
protected java.lang.String |
createErrorMessage(java.lang.String errorCode,
java.lang.String parm1,
java.lang.String parm2,
java.lang.String parm3) |
java.lang.String |
getErrorMsg(java.lang.String errorCode) |
protected void |
init() |
protected boolean |
isRelevant(java.lang.String sectionid) |
boolean |
isValid(java.lang.String data,
DNXProfile.SectionKeyType type) |
void |
setLocale(java.util.Locale locale) |
void |
setType(com.exlibris.core.sdk.consts.Enum.ObjectType type) |
java.util.List<com.exlibris.digitool.common.dnx.DnxErrorReport> |
validate(DnxDocument doc) |
java.util.List<com.exlibris.digitool.common.dnx.DnxErrorReport> |
validate(java.lang.String sectionid,
DnxSectionRecord record) |
protected void |
validateDocument(DnxDocument doc) |
protected void |
validateKey(java.lang.String sectionid,
DnxRecordKey key) |
protected void |
validateRecord(java.lang.String sectionid,
DnxSectionRecord record) |
protected void |
validateRecords(DnxSection section) |
protected void |
validateSection(DnxSection section) |
protected DNXProfile profile
protected com.exlibris.core.sdk.consts.Enum.ObjectType type
protected java.util.List<com.exlibris.digitool.common.dnx.DnxErrorReport> errors
public DnxValidatorDefaultImpl()
public DnxValidatorDefaultImpl(DNXProfile profile)
public void setType(com.exlibris.core.sdk.consts.Enum.ObjectType type)
setType
in interface com.exlibris.digitool.common.dnx.DnxValidator
public void setLocale(java.util.Locale locale)
setLocale
in interface com.exlibris.digitool.common.dnx.DnxValidator
public java.util.List<com.exlibris.digitool.common.dnx.DnxErrorReport> validate(DnxDocument doc)
validate
in interface com.exlibris.digitool.common.dnx.DnxValidator
public java.util.List<com.exlibris.digitool.common.dnx.DnxErrorReport> validate(java.lang.String sectionid, DnxSectionRecord record)
validate
in interface com.exlibris.digitool.common.dnx.DnxValidator
protected void validateDocument(DnxDocument doc)
protected void validateSection(DnxSection section)
protected void validateRecords(DnxSection section)
protected void validateRecord(java.lang.String sectionid, DnxSectionRecord record)
protected void validateKey(java.lang.String sectionid, DnxRecordKey key)
protected boolean isRelevant(java.lang.String sectionid)
public boolean isValid(java.lang.String data, DNXProfile.SectionKeyType type)
protected void init()
protected void addErrorReport(java.lang.String code)
protected java.lang.String createErrorMessage(java.lang.String errorCode, java.lang.String parm1, java.lang.String parm2, java.lang.String parm3)
public java.lang.String getErrorMsg(java.lang.String errorCode)
getErrorMsg
in interface com.exlibris.digitool.common.dnx.DnxValidator