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.ObjectInner class to represent one sub-picture (the negative or positive subpicture)
-
-
Field Summary
Fields Modifier and Type Field Description protected int[]fractionalPartGroupingPositionsprotected booleanis31protected booleanisPercentprotected booleanisPerMilleprotected intmaxFractionPartSizeprotected intmaxWholePartSizeprotected intminExponentSizeprotected intminFractionPartSizeprotected intminWholePartSizeprotected java.lang.Stringprefixprotected booleanregularprotected intscalingFactorprotected java.lang.Stringsuffixprotected 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.Stringformat(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
-
-