public class XInfoNotPersistedSimple extends Validator<XInfo>
XInfoNotPersistedSimple checks whether an XInfo object has likely already been
persisted. As persisted objects contain both and xid and xref, if either is found in the provided item,
the item is assumed to already have been persisted.
Thus, the absence of both an xid and xref means the item has not been persisted and the validation passes.
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<BaseRule<XInfo>> |
defaultRules |
static BaseRule<XInfo> |
hasNoXinfo |
| Constructor and Description |
|---|
XInfoNotPersistedSimple() |
XInfoNotPersistedSimple(java.util.List<BaseRule<XInfo>> rules) |
clearResults, failuresToString, getResults, itemToString, validate, validate