Package org.eclipse.wst.xml.xpath2.processor.internal.types


org.eclipse.wst.xml.xpath2.processor.internal.types
Class XPathDecimalFormat



public class XPathDecimalFormat
extends java.text.DecimalFormat
This is an XPath specific implementation of DecimalFormat to handle some of the xpath specific formatting requirements. Specifically it allows for E# to be represented to indicate that the exponent value is optional. Otherwise all existing DecimalFormat patterns are handled as is.


Constructor Summary

XPathDecimalFormat(java.lang.String pattern)

Method Summary

public java.lang.StringxpathFormat(java.lang.Object obj)
     Formats the string dropping a Zero Exponent Value if it exists.

Constructor Detail

XPathDecimalFormat

public XPathDecimalFormat(java.lang.String pattern)


Methods Detail

xpathFormat

public java.lang.String xpathFormat(java.lang.Object obj)

Formats the string dropping a Zero Exponent Value if it exists.

Parameters

obj

Returns

java.lang.String