|
Ruddi™ UDDI Client API 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--inspireit.uddi.util.validators.ValidatorFactory
ValidatorFactory creates validators to validate a BusinessEntity, an Address, etc. Only official UDDI structures that require validation have their createXXX method. UDDI recommandations are considered as validation rules.
Use the parameter less createXXX methods to get a validator suitable to the individual elements of a UDDI structure and the other types of createXXX methods to get a validator suitable to the overall validation of a UDDI structure (what includes validation of individual structure elements). The throwOnFirst flag allows instructing the validator to throw an exception as soon as a validation rule is not met or after the last validation rule has been checked. In the later case, the exception lists all validation rules that haven't pass the tests.
| Field Summary | |
protected ValidatorFactory |
factory
The actual ValidatorFactory instance to use to create the validators. |
| Constructor Summary | |
protected |
ValidatorFactory()
|
|
ValidatorFactory(int uddiVersion)
ValidatorFactory constructor. |
| Method Summary | |
AddressValidator |
createAddressValidator()
Creates an Address validator. |
AddressValidator |
createAddressValidator(Address address,
boolean throwOnFirst)
Creates an Address validator suitable to the validation of a given Address. |
BindingTemplatesValidator |
createBindingTemplatesValidator()
Creates a BindingTemplates validator. |
BindingTemplatesValidator |
createBindingTemplatesValidator(BindingTemplates bindingTemplates,
boolean throwOnFirst)
Creates a BindingTemplates validator suitable to the validation of a given BindingTemplate. |
BindingTemplateValidator |
createBindingTemplateValidator()
Creates a BindingTemplate validator. |
BindingTemplateValidator |
createBindingTemplateValidator(BindingTemplate bindingTemplate,
boolean throwOnFirst)
Creates a BindingTemplate validator suitable to the validation of a given BindingTemplate. |
BusinessEntityValidator |
createBusinessEntityValidator()
Creates a BusinessEntity validator. |
BusinessEntityValidator |
createBusinessEntityValidator(BusinessEntity businessEntity,
boolean throwOnFirst)
Creates a BusinessEntity validator suitable to the validation of a given BusinessEntity. |
BusinessServicesValidator |
createBusinessServicesValidator()
Creates a BusinessServices validator. |
BusinessServicesValidator |
createBusinessServicesValidator(BusinessServices businessServices,
boolean throwOnFirst)
Creates a BusinessServices validator suitable to the validation of a given BusinessServices. |
BusinessServiceValidator |
createBusinessServiceValidator()
Creates a BusinessService validator. |
BusinessServiceValidator |
createBusinessServiceValidator(BusinessService businessService,
boolean throwOnFirst)
Creates a BusinessService validator suitable to the validation of a given BusinessService. |
ContactsValidator |
createContactsValidator()
Creates a Contacts validator. |
ContactsValidator |
createContactsValidator(Contacts contacts,
boolean throwOnFirst)
Creates a Contacts validator suitable to the validation of a given Contacts. |
ContactValidator |
createContactValidator()
Creates a Contact validator. |
ContactValidator |
createContactValidator(Contact contact,
boolean throwOnFirst)
Creates a Contact validator suitable to the validation of a given Contact. |
DiscoveryURLsValidator |
createDiscoveryURLsValidator()
Creates a DiscoveryURLs validator. |
DiscoveryURLsValidator |
createDiscoveryURLsValidator(DiscoveryURLs discoveryURLs,
boolean throwOnFirst)
Creates a DiscoveryURLs validator suitable to the validation of a given DiscoveryURLs. |
DiscoveryURLValidator |
createDiscoveryURLValidator()
Creates a DiscoveryURL validator. |
DiscoveryURLValidator |
createDiscoveryURLValidator(DiscoveryURL discoveryURL,
boolean throwOnFirst)
Creates a DiscoveryURL validator suitable to the validation of a given DiscoveryURL. |
EMailValidator |
createEMailValidator()
Creates an EMail validator. |
EMailValidator |
createEMailValidator(EMail email,
boolean throwOnFirst)
Creates an EMail validator suitable to the validation of a given EMail. |
InstanceDetailsValidator |
createInstanceDetailsValidator()
Creates an InstanceDetails validator. |
InstanceDetailsValidator |
createInstanceDetailsValidator(InstanceDetails instanceDetails,
boolean throwOnFirst)
Creates an InstanceDetails validator suitable to the validation of a given InstanceDetails. |
PhoneValidator |
createPhoneValidator()
Creates a Phone validator. |
PhoneValidator |
createPhoneValidator(Phone phone,
boolean throwOnFirst)
Creates a Phone validator suitable to the validation of a given Phone. |
PublisherAssertionValidator |
createPublisherAssertionValidator()
Creates a PublisherAssertion validator. |
TModelInstanceInfoValidator |
createTModelInstanceInfoValidator()
Creates a TModelInstanceInfo validator. |
TModelInstanceInfoValidator |
createTModelInstanceInfoValidator(TModelInstanceInfo tModelInstanceInfo,
boolean throwOnFirst)
Creates a TModelInstanceInfo validator suitable to the validation of a given TModelInstanceInfo. |
TModelValidator |
createTModelValidator()
Creates a TModel validator. |
TModelValidator |
createTModelValidator(TModel tModel,
boolean throwOnFirst)
Creates a TModel validator suitable to the validation of a given TModel. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ValidatorFactory factory
| Constructor Detail |
public ValidatorFactory(int uddiVersion)
uddiVersion - The version of UDDI in use.protected ValidatorFactory()
| Method Detail |
public PublisherAssertionValidator createPublisherAssertionValidator()
public AddressValidator createAddressValidator()
public AddressValidator createAddressValidator(Address address,
boolean throwOnFirst)
address - The Address to validate.throwOnFirst - Whether the exception, if any, should be thrown on
the first broken validation rule or after the last one has been checked.
public BindingTemplatesValidator createBindingTemplatesValidator()
public BindingTemplatesValidator createBindingTemplatesValidator(BindingTemplates bindingTemplates,
boolean throwOnFirst)
bindingTemplates - The BindingTemplates to validate.throwOnFirst - Whether the exception, if any, should be thrown on
the first broken validation rule or after the last one has been checked.
public BindingTemplateValidator createBindingTemplateValidator()
public BindingTemplateValidator createBindingTemplateValidator(BindingTemplate bindingTemplate,
boolean throwOnFirst)
bindingTemplate - The BindingTemplate to validate.throwOnFirst - Whether the exception, if any, should be thrown on
the first broken validation rule or after the last one has been checked.
public BusinessEntityValidator createBusinessEntityValidator()
public BusinessEntityValidator createBusinessEntityValidator(BusinessEntity businessEntity,
boolean throwOnFirst)
businessEntity - The BusinessEntity to validate.throwOnFirst - Whether the exception, if any, should be thrown on
the first broken validation rule or after the last one has been checked.
public BusinessServicesValidator createBusinessServicesValidator()
public BusinessServicesValidator createBusinessServicesValidator(BusinessServices businessServices,
boolean throwOnFirst)
businessServices - The BusinessServices to validate.throwOnFirst - Whether the exception, if any, should be thrown on
the first broken validation rule or after the last one has been checked.
public BusinessServiceValidator createBusinessServiceValidator()
public BusinessServiceValidator createBusinessServiceValidator(BusinessService businessService,
boolean throwOnFirst)
businessService - The BusinessService to validate.throwOnFirst - Whether the exception, if any, should be thrown on
the first broken validation rule or after the last one has been checked.
public ContactsValidator createContactsValidator()
public ContactsValidator createContactsValidator(Contacts contacts,
boolean throwOnFirst)
contacts - The Contacts to validate.throwOnFirst - Whether the exception, if any, should be thrown on
the first broken validation rule or after the last one has been checked.
public ContactValidator createContactValidator()
public ContactValidator createContactValidator(Contact contact,
boolean throwOnFirst)
contact - The Contact to validate.throwOnFirst - Whether the exception, if any, should be thrown on
the first broken validation rule or after the last one has been checked.
public DiscoveryURLValidator createDiscoveryURLValidator()
public DiscoveryURLValidator createDiscoveryURLValidator(DiscoveryURL discoveryURL,
boolean throwOnFirst)
discoveryURL - The DiscoveryURL to validate.throwOnFirst - Whether the exception, if any, should be thrown on
the first broken validation rule or after the last one has been checked.
public DiscoveryURLsValidator createDiscoveryURLsValidator()
public DiscoveryURLsValidator createDiscoveryURLsValidator(DiscoveryURLs discoveryURLs,
boolean throwOnFirst)
discoveryURLs - The DiscoveryURLs to validate.throwOnFirst - Whether the exception, if any, should be thrown on
the first broken validation rule or after the last one has been checked.
public EMailValidator createEMailValidator()
public EMailValidator createEMailValidator(EMail email,
boolean throwOnFirst)
email - The EMail to validate.throwOnFirst - Whether the exception, if any, should be thrown on
the first broken validation rule or after the last one has been checked.
public InstanceDetailsValidator createInstanceDetailsValidator()
public InstanceDetailsValidator createInstanceDetailsValidator(InstanceDetails instanceDetails,
boolean throwOnFirst)
instanceDetails - The InstanceDetails to validate.throwOnFirst - Whether the exception, if any, should be thrown on
the first broken validation rule or after the last one has been checked.
public PhoneValidator createPhoneValidator()
public PhoneValidator createPhoneValidator(Phone phone,
boolean throwOnFirst)
phone - The Phone to validate.throwOnFirst - Whether the exception, if any, should be thrown on
the first broken validation rule or after the last one has been checked.
public TModelInstanceInfoValidator createTModelInstanceInfoValidator()
public TModelInstanceInfoValidator createTModelInstanceInfoValidator(TModelInstanceInfo tModelInstanceInfo,
boolean throwOnFirst)
tModelInstanceInfo - The TModelInstanceInfo to validate.throwOnFirst - Whether the exception, if any, should be thrown on
the first broken validation rule or after the last one has been checked.
public TModelValidator createTModelValidator()
public TModelValidator createTModelValidator(TModel tModel,
boolean throwOnFirst)
tModel - The TModel to validate.throwOnFirst - Whether the exception, if any, should be thrown on
the first broken validation rule or after the last one has been checked.
|
Ruddi™ UDDI Client API 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||