Class LegacyValidator<T extends Containerable>
- java.lang.Object
-
- com.evolveum.midpoint.common.validator.LegacyValidator<T>
-
public class LegacyValidator<T extends Containerable> extends Object
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
Constructors Constructor Description LegacyValidator(PrismContext prismContext)
LegacyValidator(PrismContext prismContext, EventHandler<T> handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getAllowAnyType()
long
getErrors()
EventHandler<T>
getHandler()
PrismContext
getPrismContext()
long
getProgress()
long
getStopAfterErrors()
boolean
getValidateSchema()
boolean
getVerbose()
boolean
isCompatMode()
boolean
isConvertMissingType()
boolean
isValidateName()
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)
EventResult
validateObject(String stringXml, OperationResult objectResult)
EventResult
validateObject(Element objectElement, OperationResult objectResult)
Node
validateSchema(Element objectDoc, OperationResult objectResult)
-
-
-
Constructor Detail
-
LegacyValidator
public LegacyValidator(PrismContext prismContext)
-
LegacyValidator
public LegacyValidator(PrismContext prismContext, EventHandler<T> handler)
-
-
Method Detail
-
getHandler
public EventHandler<T> getHandler()
-
setHandler
public void setHandler(EventHandler<T> handler)
-
getPrismContext
public PrismContext 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
public EventResult validateObject(String stringXml, OperationResult objectResult)
-
validateObject
public EventResult validateObject(Element objectElement, OperationResult objectResult)
-
validateSchema
public Node validateSchema(Element objectDoc, OperationResult objectResult)
-
validateObject
public void validateObject(Objectable object, OperationResult objectResult)
-
isConvertMissingType
public boolean isConvertMissingType()
-
setConvertMissingType
public void setConvertMissingType(boolean convertMissingType)
-
-