Package net.sf.saxon.functions
Class FormatNumber.SubPicture
- java.lang.Object
-
- net.sf.saxon.functions.FormatNumber.SubPicture
-
- Enclosing class:
- FormatNumber
public static class FormatNumber.SubPicture extends java.lang.Object
Inner class to represent one sub-picture (the negative or positive subpicture)
-
-
Field Summary
Fields Modifier and Type Field Description protected int[]
fractionalPartGroupingPositions
protected boolean
is31
protected boolean
isPercent
protected boolean
isPerMille
protected int
maxFractionPartSize
protected int
maxWholePartSize
protected int
minExponentSize
protected int
minFractionPartSize
protected int
minWholePartSize
protected java.lang.String
prefix
protected boolean
regular
protected int
scalingFactor
protected java.lang.String
suffix
protected int[]
wholePartGroupingPositions
-
Constructor Summary
Constructors Constructor Description SubPicture(int[] pic, DecimalSymbols dfs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(NumericValue value, DecimalSymbols dfs, java.lang.String minusSign)
Format a number using this sub-picture
-
-
-
Field Detail
-
minWholePartSize
protected int minWholePartSize
-
maxWholePartSize
protected int maxWholePartSize
-
minFractionPartSize
protected int minFractionPartSize
-
maxFractionPartSize
protected int maxFractionPartSize
-
minExponentSize
protected int minExponentSize
-
scalingFactor
protected int scalingFactor
-
isPercent
protected boolean isPercent
-
isPerMille
protected boolean isPerMille
-
prefix
protected java.lang.String prefix
-
suffix
protected java.lang.String suffix
-
wholePartGroupingPositions
protected int[] wholePartGroupingPositions
-
fractionalPartGroupingPositions
protected int[] fractionalPartGroupingPositions
-
regular
protected boolean regular
-
is31
protected boolean is31
-
-
Constructor Detail
-
SubPicture
public SubPicture(int[] pic, DecimalSymbols dfs) throws XPathException
- Throws:
XPathException
-
-
Method Detail
-
format
public java.lang.String format(NumericValue value, DecimalSymbols dfs, java.lang.String minusSign)
Format a number using this sub-picture- Parameters:
value
- the absolute value of the number to be formatteddfs
- the decimal format symbols to be usedminusSign
- the representation of a minus sign to be used- Returns:
- the formatted number
-
-