jaxx.runtime.validator
Class BeanValidatorMessage<E extends BeanValidatorMessage<?>>

java.lang.Object
  extended by jaxx.runtime.validator.BeanValidatorMessage<E>
Type Parameters:
E - type of message (use for override Comparable.compareTo(Object) method.
All Implemented Interfaces:
Comparable<E>
Direct Known Subclasses:
SwingValidatorMessage

public class BeanValidatorMessage<E extends BeanValidatorMessage<?>>
extends Object
implements Comparable<E>

The object to box a validation message.

Since:
1.3
Author:
chemit

Field Summary
protected  BeanValidatorField<?> field
          the field that produce the message
protected  String message
          the label of the message (to be displayed somewhere)
protected  BeanValidatorScope scope
          the scope of the message
protected  BeanValidator<?> validator
          the validator that produce the message
 
Constructor Summary
BeanValidatorMessage(BeanValidator<?> validator, BeanValidatorField<?> field, String message, BeanValidatorScope scope)
           
 
Method Summary
 int compareTo(E o)
           
 BeanValidatorField<?> getField()
           
 String getMessage()
           
 BeanValidatorScope getScope()
           
 BeanValidator<?> getValidator()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

validator

protected BeanValidator<?> validator
the validator that produce the message


field

protected BeanValidatorField<?> field
the field that produce the message


message

protected String message
the label of the message (to be displayed somewhere)


scope

protected BeanValidatorScope scope
the scope of the message

Constructor Detail

BeanValidatorMessage

public BeanValidatorMessage(BeanValidator<?> validator,
                            BeanValidatorField<?> field,
                            String message,
                            BeanValidatorScope scope)
Method Detail

getValidator

public BeanValidator<?> getValidator()

getField

public BeanValidatorField<?> getField()

getScope

public BeanValidatorScope getScope()

getMessage

public String getMessage()

compareTo

public int compareTo(E o)
Specified by:
compareTo in interface Comparable<E extends BeanValidatorMessage<?>>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2010 CodeLutin. All Rights Reserved.