public interface BOInstanceValidator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
Modifier and Type | Method and Description |
---|---|
boolean |
validate(commonj.sdo.DataObject businessObject,
java.util.List diagnostics)
Do a deep validation for a BO instance.
|
boolean |
validate(commonj.sdo.DataObject businessObject,
java.util.List diagnostics,
java.util.Locale locale)
Do a deep validation for a BO instance.
|
boolean |
validate(commonj.sdo.DataObject businessObject,
java.util.List diagnostics,
java.util.Locale locale,
java.util.logging.Level logLevel)
Do a deep validation for a BO instance.
|
boolean |
validateProperty(commonj.sdo.DataObject businessObject,
java.lang.String propertyPath,
java.util.List diagnostics)
Do a deep validation for a BO instance's property.
|
boolean |
validateProperty(commonj.sdo.DataObject businessObject,
java.lang.String propertyPath,
java.util.List diagnostics,
java.util.Locale locale)
Do a deep validation for a BO instance's property.
|
boolean |
validatePropertyShallow(commonj.sdo.DataObject businessObject,
java.lang.String propertyPath,
java.util.List diagnostics)
Do a shallow validation for a BO instance's property.
|
boolean |
validatePropertyShallow(commonj.sdo.DataObject businessObject,
java.lang.String propertyPath,
java.util.List diagnostics,
java.util.Locale locale)
Do a shallow validation for a BO instance's property.
|
boolean |
validateShallow(commonj.sdo.DataObject businessObject,
java.util.List diagnostics)
Do a shallow validation for a BO instance.
|
boolean |
validateShallow(commonj.sdo.DataObject businessObject,
java.util.List diagnostics,
java.util.Locale locale)
Do a shallow validation for a BO instance.
|
static final java.lang.String COPYRIGHT
boolean validate(commonj.sdo.DataObject businessObject, java.util.List diagnostics, java.util.Locale locale)
For example: there is a BO instance named customer.
List diagnostics;
BOInstanceValidator boValidator = (BOInstanceValidator) new ServiceManager().locateService("com/ibm/websphere/bo/BOInstanceValidator");
boolean result = boValidator.validate(customer, diagnostics);
businessObject:
- The Business Object to be validateddiagnostics:
- diagnostics a place to accumulate diagnostics; if it's null
, no diagnostics should be producedlocale:
- The locale in which to report the diagnosticsboolean validate(commonj.sdo.DataObject businessObject, java.util.List diagnostics, java.util.Locale locale, java.util.logging.Level logLevel)
For example: there is a BO instance named customer.
List diagnostics;
BOInstanceValidator boValidator = (BOInstanceValidator) new ServiceManager().locateService("com/ibm/websphere/bo/BOInstanceValidator");
boolean result = boValidator.validate(customer, diagnostics);
businessObject:
- The Business Object to be validateddiagnostics:
- diagnostics a place to accumulate diagnostics; if it's null
, no diagnostics should be producedlocale:
- The locale in which to report the diagnosticslogLevel:
- The logging level at which to log the errorsboolean validate(commonj.sdo.DataObject businessObject, java.util.List diagnostics)
For example: there is a BO instance named customer.
List diagnostics;
BOInstanceValidator boValidator = (BOInstanceValidator) new ServiceManager().locateService("com/ibm/websphere/bo/BOInstanceValidator");
boolean result = boValidator.validate(customer, diagnostics);
businessObject:
- The Business Object to be validateddiagnostics:
- diagnostics a place to accumulate diagnostics; if it's null
, no diagnostics should be producedboolean validateShallow(commonj.sdo.DataObject businessObject, java.util.List diagnostics, java.util.Locale locale)
For example: there is a BO instance named customer.
List diagnostics;
BOInstanceValidator boValidator = (BOInstanceValidator) new ServiceManager().locateService("com/ibm/websphere/bo/BOInstanceValidator");
boolean result = boValidator.validateShallow(customer,diagnostics);
businessObject:
- The Business Object to be validateddiagnostics:
- diagnostics a place to accumulate diagnostics; if it's null
, no diagnostics should be producedlocale:
- The locale in which to report the diagnosticsboolean validateShallow(commonj.sdo.DataObject businessObject, java.util.List diagnostics)
For example: there is a BO instance named customer.
List diagnostics;
BOInstanceValidator boValidator = (BOInstanceValidator) new ServiceManager().locateService("com/ibm/websphere/bo/BOInstanceValidator");
boolean result = boValidator.validateShallow(customer,diagnostics);
businessObject:
- The Business Object to be validateddiagnostics:
- diagnostics a place to accumulate diagnostics; if it's null
, no diagnostics should be producedboolean validateProperty(commonj.sdo.DataObject businessObject, java.lang.String propertyPath, java.util.List diagnostics, java.util.Locale locale)
For example: there is a BO instance named customer, and customer has a property named "address".
List diagnostics;
BOInstanceValidator boValidator = (BOInstanceValidator) new ServiceManager().locateService("com/ibm/websphere/bo/BOInstanceValidator");
boolean result = boValidator.validateProperty(customer,"address",diagnostics);
businessObject:
- The Business Object to be validated.propertyPath:
- The property path of the business object.diagnostics:
- diagnostics a place to accumulate diagnostics; if it's null
, no diagnostics should be producedlocale:
- The locale in which to report the diagnosticsboolean validateProperty(commonj.sdo.DataObject businessObject, java.lang.String propertyPath, java.util.List diagnostics)
For example: there is a BO instance named customer, and customer has a property named "address".
List diagnostics;
BOInstanceValidator boValidator = (BOInstanceValidator) new ServiceManager().locateService("com/ibm/websphere/bo/BOInstanceValidator");
boolean result = boValidator.validateProperty(customer,"address",diagnostics);
businessObject:
- The Business Object to be validated.propertyPath:
- The property path of the business object.diagnostics:
- diagnostics a place to accumulate diagnostics; if it's null
, no diagnostics should be producedboolean validatePropertyShallow(commonj.sdo.DataObject businessObject, java.lang.String propertyPath, java.util.List diagnostics, java.util.Locale locale)
For example: there is a BO instance named customer, and customer has a property named "address".
List diagnostics;
BOInstanceValidator boValidator = (BOInstanceValidator) new ServiceManager().locateService("com/ibm/websphere/bo/BOInstanceValidator");
boolean result = boValidator.validatePropertyShallow(customer,"address",diagnostics);
businessObject:
- The Business Object to be validated.propertyPath:
- The property path of the business object.diagnostics:
- diagnostics a place to accumulate diagnostics; if it's null
, no diagnostics should be producedlocale:
- The locale in which to report the diagnosticsboolean validatePropertyShallow(commonj.sdo.DataObject businessObject, java.lang.String propertyPath, java.util.List diagnostics)
For example: there is a BO instance named customer, and customer has a property named "address".
List diagnostics;
BOInstanceValidator boValidator = (BOInstanceValidator) new ServiceManager().locateService("com/ibm/websphere/bo/BOInstanceValidator");
boolean result = boValidator.validatePropertyShallow(customer,"address",diagnostics);
businessObject:
- The Business Object to be validated.propertyPath:
- The property path of the business object.diagnostics:
- diagnostics a place to accumulate diagnostics; if it's null
, no diagnostics should be produced