Package net.sf.saxon.type
Class StringToDouble
java.lang.Object
net.sf.saxon.type.StringToDouble
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
StringToDouble11
This class converts a string to an xs:double according to the rules in XML Schema 1.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringToDoubleGet the singleton instanceprotected doubledoubleConvert a string to a double.
-
Constructor Details
-
StringToDouble
protected StringToDouble()
-
-
Method Details
-
getInstance
Get the singleton instance- Returns:
- the singleton instance of this class
-
stringToNumber
Convert a string to a double.- Parameters:
s- the String to be converted- Returns:
- a double representing the value of the String
- Throws:
NumberFormatException- if the value cannot be converted
-
signedPositiveInfinity
protected double signedPositiveInfinity()
-