Package net.sf.saxon.trans
Class DecimalSymbols
java.lang.Object
net.sf.saxon.trans.DecimalSymbols
- All Implemented Interfaces:
Serializable
This class is modelled on Java's DecimalFormatSymbols, but it allows the use of any
Unicode character to represent symbols such as the decimal point and the grouping
separator, whereas DecimalFormatSymbols restricts these to a char (1-65535). Since
this is essentially a data structure with no behaviour, we don't bother with getter
and setter methods but just expose the fields
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
int
int
int
int
int
int
int
(package private) static int[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Check that no character is used in more than one roleboolean
Test if two sets of decimal format symbols are the sameint
hashCode()
boolean
Check that the character declared as a zero-digit is indeed a valid zero-digit
-
Field Details
-
decimalSeparator
public int decimalSeparator -
groupingSeparator
public int groupingSeparator -
digit
public int digit -
minusSign
public int minusSign -
percent
public int percent -
permill
public int permill -
zeroDigit
public int zeroDigit -
patternSeparator
public int patternSeparator -
infinity
-
NaN
-
zeroDigits
static int[] zeroDigits
-
-
Constructor Details
-
DecimalSymbols
public DecimalSymbols()
-
-
Method Details
-
checkDistinctRoles
Check that no character is used in more than one role- Throws:
XPathException
-
isValidZeroDigit
Check that the character declared as a zero-digit is indeed a valid zero-digit- Returns:
- false if it is not a valid zero-digit
- Throws:
XPathException
-
equals
Test if two sets of decimal format symbols are the same -
hashCode
public int hashCode()
-