com.pietschy.command.configuration.impl
Class FaceIntegerAttributeParser

java.lang.Object
  extended by com.pietschy.command.configuration.impl.FaceAttributeParser
      extended by com.pietschy.command.configuration.impl.InheritedAttributeParser
          extended by com.pietschy.command.configuration.impl.FaceIntegerAttributeParser

 class FaceIntegerAttributeParser
extends InheritedAttributeParser

Parser for integer values.


Constructor Summary
FaceIntegerAttributeParser(java.lang.String... propertyNames)
          Creates a new instance for the specified property names.
 
Method Summary
protected  java.lang.Object parseValue(java.lang.String propertyName, java.lang.String value, ExceptionFactory factory)
          Parses strings representing integer values.
 
Methods inherited from class com.pietschy.command.configuration.impl.InheritedAttributeParser
parseEmptyImpl, parseImpl
 
Methods inherited from class com.pietschy.command.configuration.impl.FaceAttributeParser
getProperties, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FaceIntegerAttributeParser

public FaceIntegerAttributeParser(java.lang.String... propertyNames)
Creates a new instance for the specified property names.

Parameters:
propertyNames - the property names this parser handles.
Method Detail

parseValue

protected java.lang.Object parseValue(java.lang.String propertyName,
                                      java.lang.String value,
                                      ExceptionFactory factory)
                               throws ParseException
Parses strings representing integer values.

Specified by:
parseValue in class InheritedAttributeParser
Parameters:
propertyName - the property name
value - the value
factory - the exception factory .
Returns:
the integer represented by the property value.
Throws:
ParseException - if the value didn't represent an integer value.


Copyright © 2006 - 2007 Andrew Pietsch