biz.c24.io.api.data
Class ValidationConstraints

java.lang.Object
  extended by biz.c24.io.api.data.ValidationConstraints
All Implemented Interfaces:
Serializable

public class ValidationConstraints
extends Object
implements Serializable

Specifies the way a validation call should proceed, i.e. what should and should not be validated.

See Also:
Serialized Form

Field Summary
 ValidationSeverityEnum severity
          Specified the severity of validation rule to run.
 boolean validateAttributes
          Specifies whether attributes should be validated.
 boolean validateElements
          Specifies whether elements should be validated.
 boolean validateEnumerations
          Specifies whether enumerations should be validated.
 boolean validateRules
          Specifies whether validation rules should be run.
 
Constructor Summary
ValidationConstraints()
          Creates a new instance which validates nothing.
ValidationConstraints(ValidationConstraints clone)
          Creates a new instance which is a clone of the specificed argument.
 
Method Summary
 ValidationSeverityEnum getSeverity()
          Returns the severity field if it is not null or ValidationSeverityEnum.ERROR otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

validateElements

public boolean validateElements
Specifies whether elements should be validated.


validateAttributes

public boolean validateAttributes
Specifies whether attributes should be validated.


validateEnumerations

public boolean validateEnumerations
Specifies whether enumerations should be validated.


validateRules

public boolean validateRules
Specifies whether validation rules should be run.


severity

public ValidationSeverityEnum severity
Specified the severity of validation rule to run.

Constructor Detail

ValidationConstraints

public ValidationConstraints()
Creates a new instance which validates nothing.


ValidationConstraints

public ValidationConstraints(ValidationConstraints clone)
Creates a new instance which is a clone of the specificed argument.

Parameters:
clone - The object to clone.
Method Detail

getSeverity

public ValidationSeverityEnum getSeverity()
Returns the severity field if it is not null or ValidationSeverityEnum.ERROR otherwise.

Returns:
The severity.


C24 Technologies © 2002-2012: All Rights Reserved.