Class LegacyValidator<T extends Containerable>
java.lang.Object
com.evolveum.midpoint.common.validator.LegacyValidator<T>
Class to validate (and possible transform) large sets of objects.
LEGACY: This is all very old code. And it is XML-only. It will be probably thrown away and re-written in a more reasonable way.
- Author:
- Radovan Semancik
-
Constructor Summary
ConstructorDescriptionLegacyValidator
(PrismContext prismContext) LegacyValidator
(PrismContext prismContext, EventHandler<T> handler) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
long
long
boolean
boolean
boolean
boolean
boolean
void
setAllowAnyType
(boolean allowAnyType) void
setCompatMode
(boolean compatMode) void
setConvertMissingType
(boolean convertMissingType) void
setHandler
(EventHandler<T> handler) void
setStopAfterErrors
(long stopAfterErrors) void
setValidateName
(boolean validateName) void
setValidateSchema
(boolean validateSchemas) void
setVerbose
(boolean verbose) void
validate
(InputStream inputStream, OperationResult validatorResult, String objectResultOperationName) void
validate
(String lexicalRepresentation, OperationResult validationResult, String objectResultOperationName) void
validateObject
(Objectable object, OperationResult objectResult) validateObject
(String stringXml, OperationResult objectResult) validateObject
(Element objectElement, OperationResult objectResult) validateSchema
(Element objectDoc, OperationResult objectResult)
-
Constructor Details
-
LegacyValidator
-
LegacyValidator
-
-
Method Details
-
getHandler
-
setHandler
-
getPrismContext
-
getVerbose
public boolean getVerbose() -
setVerbose
public void setVerbose(boolean verbose) -
setValidateSchema
public void setValidateSchema(boolean validateSchemas) -
getValidateSchema
public boolean getValidateSchema() -
isValidateName
public boolean isValidateName() -
setValidateName
public void setValidateName(boolean validateName) -
setAllowAnyType
public void setAllowAnyType(boolean allowAnyType) -
getAllowAnyType
public boolean getAllowAnyType() -
getStopAfterErrors
public long getStopAfterErrors() -
setStopAfterErrors
public void setStopAfterErrors(long stopAfterErrors) -
getProgress
public long getProgress() -
getErrors
public long getErrors() -
isCompatMode
public boolean isCompatMode() -
setCompatMode
public void setCompatMode(boolean compatMode) -
validate
public void validate(String lexicalRepresentation, OperationResult validationResult, String objectResultOperationName) -
validate
public void validate(InputStream inputStream, OperationResult validatorResult, String objectResultOperationName) -
validateObject
-
validateObject
-
validateSchema
-
validateObject
-
isConvertMissingType
public boolean isConvertMissingType() -
setConvertMissingType
public void setConvertMissingType(boolean convertMissingType)
-