Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.aendvari.griffin.validation.dataset
Class Dataset  view Dataset download Dataset.java

java.lang.Object
  extended bycom.aendvari.griffin.validation.dataset.Dataset

public class Dataset
extends java.lang.Object

Defines a Dataset.

A Dataset defines a group of Property objects (usually describing a form POST). Each will be used to execute a their described validator methods.


Field Summary
private  java.util.ArrayList properties
          The list of Property objects.
 
Constructor Summary
Dataset()
          Constructs an empty Dataset instance.
 
Method Summary
 void addProperty(Property property)
          Add a property to the list of properties for this dataset.
 void executeValidation(com.aendvari.common.model.ModelNode datasetNode, com.aendvari.common.util.MultiHashMap validators, java.util.HashMap handlers)
          Executes all validate methods on each Property of each Dataset
 java.util.Collection getProperties()
          Get the list of properties for this dataset.
 void setProperties(java.util.Collection setProperties)
          Set the list of properties for this dataset.
 java.lang.String toString()
          Convert this object into a String representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

properties

private java.util.ArrayList properties
The list of Property objects.

Constructor Detail

Dataset

public Dataset()
Constructs an empty Dataset instance.

Method Detail

getProperties

public java.util.Collection getProperties()
Get the list of properties for this dataset.


setProperties

public void setProperties(java.util.Collection setProperties)
Set the list of properties for this dataset.


addProperty

public void addProperty(Property property)
Add a property to the list of properties for this dataset.


executeValidation

public void executeValidation(com.aendvari.common.model.ModelNode datasetNode,
                              com.aendvari.common.util.MultiHashMap validators,
                              java.util.HashMap handlers)
                       throws java.lang.Exception
Executes all validate methods on each Property of each Dataset


toString

public java.lang.String toString()
Convert this object into a String representation.