public class InstanceValidator extends Object
Constructor and Description |
---|
InstanceValidator() |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
skipValidation(TypeDefinition typeDef,
Object value)
Determines if validation should be skipped for a certain property type
and value.
|
static InstanceValidationReporter |
validate(Instance instance)
Validates the given
Instance . |
static InstanceValidationReporter |
validate(Object object,
ChildDefinition<?> childDef)
Validates the given object.
|
static InstanceValidationReport |
validateInstances(InstanceCollection instances,
org.eclipse.core.runtime.IProgressMonitor monitor)
Validates the given instances using all constraints that are validatable.
|
public static InstanceValidationReport validateInstances(InstanceCollection instances, org.eclipse.core.runtime.IProgressMonitor monitor)
instances
- the instances to validatemonitor
- the progress monitorpublic static InstanceValidationReporter validate(Object object, ChildDefinition<?> childDef)
InstanceReference
set.object
- the object to validate (i. e. an instance, group or basic
value)childDef
- the child definition of the given objectpublic static InstanceValidationReporter validate(Instance instance)
Instance
. The created reports messages do not
have an InstanceReference
set.instance
- the instance to validateprotected static boolean skipValidation(TypeDefinition typeDef, Object value)
typeDef
- the property typevalue
- the property valueBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a