org.sovt
Class Sovt

java.lang.Object
  extended byorg.sovt.Sovt

public final class Sovt
extends java.lang.Object

This class provides some convenience methods to perform validation, transformation and inspection.

Author:
Vilmantas Baranauskas (vilmantas_baranauskas@yahoo.com)

Method Summary
static java.lang.Object transform(java.lang.Object object, java.lang.String transformer)
          Performs transformation of the object.
static ValidationResult validate(java.lang.Object object, java.lang.String validator)
          Performs validation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

transform

public static java.lang.Object transform(java.lang.Object object,
                                         java.lang.String transformer)
Performs transformation of the object.

Parameters:
object - Object to transform.
transformer - Named transformer to use. This corresponds to the "id" attribute in the xml definition.
Returns:
transformed object.

validate

public static ValidationResult validate(java.lang.Object object,
                                        java.lang.String validator)
Performs validation of the object.

Parameters:
object - Object to validate.
validator - Named validator to use. This corresponds to the "id" attribute in the xml definition.
Returns:
result of the validation.


Copyright © 2003-2005 . All Rights Reserved.