biz.c24.io.api.data
Class ValidationStatistics

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

public class ValidationStatistics
extends Object
implements Serializable

Stores statistics on what has been validated.

See Also:
Serialized Form

Nested Class Summary
 class ValidationStatistics.Stat
          A statistic of the number of valid / invalid instances validated.
 
Constructor Summary
ValidationStatistics()
          Creates a new instance.
ValidationStatistics(ValidationStatistics clone)
          Creates a new instance which is a clone of the specificed argument.
 
Method Summary
 void clear()
          Clears all statistics.
 ValidationStatistics.Stat getAttributes()
          Returns details of the attributes that have been validated.
 ValidationStatistics.Stat getElements()
          Returns details of the elements that have been validated.
 ValidationStatistics.Stat getEnumerations()
          Returns details of the enumerations that have been validated.
 int getNumberOfStats()
          Returns the number of statistics held by this class.
 ValidationStatistics.Stat getRules()
          Returns details of the rules that have been validated.
 ValidationStatistics.Stat getStat(int index)
          Returns the statistic at notional index
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationStatistics

public ValidationStatistics()
Creates a new instance.


ValidationStatistics

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

Parameters:
clone - The object to clone.
Method Detail

getNumberOfStats

public int getNumberOfStats()
Returns the number of statistics held by this class.

Returns:
The number of statistics.

getStat

public ValidationStatistics.Stat getStat(int index)
Returns the statistic at notional index

Parameters:
index - The index of the statistic to be returned.
Returns:
The statistic.

getElements

public ValidationStatistics.Stat getElements()
Returns details of the elements that have been validated.

Returns:
The statistics;

getAttributes

public ValidationStatistics.Stat getAttributes()
Returns details of the attributes that have been validated.

Returns:
The statistics;

getEnumerations

public ValidationStatistics.Stat getEnumerations()
Returns details of the enumerations that have been validated.

Returns:
The statistics;

getRules

public ValidationStatistics.Stat getRules()
Returns details of the rules that have been validated.

Returns:
The statistics;

clear

public void clear()
Clears all statistics.


toString

public String toString()
Overrides:
toString in class Object


C24 Technologies © 2002-2012: All Rights Reserved.