public class ServiceConfigurationValidatorResults
extends java.util.Hashtable
Title: Open Service Framework
Description: The ServiceConfigurationValidatorResults
class represents a result set
object returned when the Framework Documentation
streamscape.service.osf.config.ServiceConfigurationValidator#validate() method is
called by the framework. Typically the validate()
method will be
called by a configuration object extended from AbstractServiceConfigurationObject
.
However, there may be cases when a user may want to directly invoke this method or construct
another validator type that uses this object.
Copyright: Copyright (c) 2008
Company: StreamScape Technologies
Modifier and Type | Class and Description |
---|---|
static class |
ServiceConfigurationValidatorResults.Type |
static class |
ServiceConfigurationValidatorResults.ValidatorResult
An instance of a validator
Result that represents some type of configuration parameter error. |
Constructor and Description |
---|
ServiceConfigurationValidatorResults() |
Modifier and Type | Method and Description |
---|---|
void |
addResult(ServiceConfigurationValidatorResults.ValidatorResult result)
Adds a
ValidatorResult object to the chain of validation errors. |
void |
addResultsAll(ServiceConfigurationValidatorResults results)
Chains an existing
ServiceConfigurationValidatorResults list to this result set. |
void |
clearResults() |
ServiceConfigurationValidatorResults.ValidatorResult |
createValidationResult(java.lang.String propertyName)
Create a new empty validation result.
|
ServiceConfigurationValidatorResults.ValidatorResult |
createValidationResult(java.lang.String propertyName,
int errorType,
java.lang.String errorMsg) |
int |
getErrorCount() |
java.util.Enumeration |
getValidationResultProperties()
Return an enumeration of properties that experienced an error.
|
java.util.Enumeration |
getValidatorResults()
Returns an
Enumeration of validator error results. |
void |
removeResult(java.lang.String propertyName) |
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, toString, values
public ServiceConfigurationValidatorResults()
public ServiceConfigurationValidatorResults.ValidatorResult createValidationResult(java.lang.String propertyName)
propertyName
- Stringpublic ServiceConfigurationValidatorResults.ValidatorResult createValidationResult(java.lang.String propertyName, int errorType, java.lang.String errorMsg)
public void addResult(ServiceConfigurationValidatorResults.ValidatorResult result)
ValidatorResult
object to the chain of validation errors.result
- ValidatorResult An error object for a particular property.public void addResultsAll(ServiceConfigurationValidatorResults results)
ServiceConfigurationValidatorResults
list to this result set.
This function allows multiple Validator
results to be combined togegther into a single chain.results
- ServiceConfigurationValidatorResults The validation results to append to this set.public void removeResult(java.lang.String propertyName)
public void clearResults()
public java.util.Enumeration getValidatorResults()
Enumeration
of validator error results.ValidatorResult
objects that represent validator errors.public java.util.Enumeration getValidationResultProperties()
public int getErrorCount()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.