com.esf.util.validator.toclass
Class ValidateToClass

java.lang.Object
  extended bycom.esf.util.validator.toclass.ValidateToClass

public class ValidateToClass
extends java.lang.Object

ValidateToClass is a class of static functions that take at least a ClassName (not fully qualified) and at least one value to compare to values from the class referred to by the ClassName. This class assumes that the class to compare to exists in a ".service" bundle branched somewhere off the parental namespace of the calling class bundle.

The class should never exist within the calling bundle (never use these methods from within a Service Class definition).

Note: This class has no instance methods.

Author:
matt.demaree

Method Summary
static boolean validateToFields(java.lang.String className, int value)
          Test the value against each of the field values from the class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

validateToFields

public static boolean validateToFields(java.lang.String className,
                                       int value)
Test the value against each of the field values from the class.

Parameters:
className - Test field values from this class
value - Value to test
Returns:
true if the value matches the value of one of the fields in the class false otherwise


Copyright © 2009 Eurotech Inc. All rights reserved.