com.endeca.portal.attributes.model.formatters
Class AttributeIntegerFormatter

java.lang.Object
  extended by com.endeca.portal.attributes.model.AttributeFormatter
      extended by com.endeca.portal.attributes.model.formatters.AttributeIntegerFormatter
Direct Known Subclasses:
AttributeNumericFormatter

public class AttributeIntegerFormatter
extends AttributeFormatter


Constructor Summary
AttributeIntegerFormatter()
           
 
Method Summary
 java.lang.String format(java.lang.String rawValue)
           
 java.lang.String getGroupingSeparator()
           
protected  java.text.DecimalFormat getIntegerFormat()
           
 boolean isIncludePercentSuffix()
           
 void setGroupingSeparator(java.lang.String groupingSeparator)
           
 void setIncludePercentSuffix(boolean includePercentSuffix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeIntegerFormatter

public AttributeIntegerFormatter()
Method Detail

getIntegerFormat

protected java.text.DecimalFormat getIntegerFormat()
Returns:
a DecimalFormat object rounding to integer

format

public java.lang.String format(java.lang.String rawValue)
Specified by:
format in class AttributeFormatter

isIncludePercentSuffix

public boolean isIncludePercentSuffix()

setIncludePercentSuffix

public void setIncludePercentSuffix(boolean includePercentSuffix)

getGroupingSeparator

public java.lang.String getGroupingSeparator()

setGroupingSeparator

public void setGroupingSeparator(java.lang.String groupingSeparator)