org.jboss.managed.plugins.constraints
Class NumberConstraintsPopulator

java.lang.Object
  extended by org.jboss.managed.plugins.constraints.NumberConstraintsPopulator
All Implemented Interfaces:
ManagedPropertyConstraintsPopulator

public class NumberConstraintsPopulator
extends Object
implements ManagedPropertyConstraintsPopulator

A ManagedPropertyConstraintsPopulator for Number min/max values

Version:
$Revision: 81573 $
Author:
Scott.Stark@jboss.org

Constructor Summary
NumberConstraintsPopulator(String min, String max, String numberClassName)
           
 
Method Summary
 Number getMax()
           
 Number getMin()
           
 void populateManagedProperty(Class attachmentClass, org.jboss.beans.info.spi.PropertyInfo info, Fields fields)
          Populate the ManagedProperty fields constraint related info.
 void setMax(Number max)
           
 void setMin(Number min)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberConstraintsPopulator

public NumberConstraintsPopulator(String min,
                                  String max,
                                  String numberClassName)
                           throws Exception
Throws:
Exception
Method Detail

getMin

public Number getMin()

setMin

public void setMin(Number min)

getMax

public Number getMax()

setMax

public void setMax(Number max)

populateManagedProperty

public void populateManagedProperty(Class attachmentClass,
                                    org.jboss.beans.info.spi.PropertyInfo info,
                                    Fields fields)
Description copied from interface: ManagedPropertyConstraintsPopulator
Populate the ManagedProperty fields constraint related info.

Specified by:
populateManagedProperty in interface ManagedPropertyConstraintsPopulator
Parameters:
attachmentClass - - the attachment class the property is associated with
info - - the PropertyInfo for the attachment class property
fields - - the fields to add the constraints to


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.