Package net.sf.saxon.type
Class StringToDouble
- java.lang.Object
-
- net.sf.saxon.type.StringToDouble
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
StringToDouble11
public class StringToDouble extends java.lang.Object implements java.io.SerializableThis class converts a string to an xs:double according to the rules in XML Schema 1.0- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStringToDouble()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringToDoublegetInstance()Get the singleton instanceprotected doublesignedPositiveInfinity()doublestringToNumber(java.lang.CharSequence s)Convert a string to a double.
-
-
-
Method Detail
-
getInstance
public static StringToDouble getInstance()
Get the singleton instance- Returns:
- the singleton instance of this class
-
stringToNumber
public double stringToNumber(java.lang.CharSequence s) throws java.lang.NumberFormatExceptionConvert a string to a double.- Parameters:
s- the String to be converted- Returns:
- a double representing the value of the String
- Throws:
java.lang.NumberFormatException- if the value cannot be converted
-
signedPositiveInfinity
protected double signedPositiveInfinity()
-
-