org.glassfish.config.support.datatypes
Class NonNegativeInteger

java.lang.Object
  extended by org.glassfish.config.support.datatypes.NonNegativeInteger
All Implemented Interfaces:
org.jvnet.hk2.config.DataType

@Service
public class NonNegativeInteger
extends java.lang.Object
implements org.jvnet.hk2.config.DataType

Represents an integer from 0 to Integer.MAX_VALUE. It's modeled as a functional class.

Author:
केदार (km@dev.java.net)

Constructor Summary
NonNegativeInteger()
           
 
Method Summary
 void validate(java.lang.String value)
          Validates the value as a non-negative integer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonNegativeInteger

public NonNegativeInteger()
Method Detail

validate

public void validate(java.lang.String value)
              throws org.jvnet.hk2.config.ValidationException
Validates the value as a non-negative integer.

Specified by:
validate in interface org.jvnet.hk2.config.DataType
Parameters:
value -
Throws:
org.jvnet.hk2.config.ValidationException


Copyright © 2012 GlassFish Community. All Rights Reserved.