jd.xml.xslt.format
Class Numbering

java.lang.Object
  extended byjd.xml.xslt.format.Numbering
Direct Known Subclasses:
LevelNumbering, ValueNumbering

public abstract class Numbering
extends Object

Numbering implements the algorithm of the xsl:number instruction.


Field Summary
protected static int[] EMPTY_LIST
           
 
Constructor Summary
Numbering()
           
 
Method Summary
 AttributeValue getFormat()
           
 AttributeValue getGroupingSeparator()
           
 AttributeValue getGroupingSize()
           
protected abstract  int[] getNumbers(XsltContext context)
           
 String getText(XsltContext context)
           
 void setFormat(AttributeValue format, AttributeValue groupingSeparator, AttributeValue groupingSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_LIST

protected static final int[] EMPTY_LIST
Constructor Detail

Numbering

public Numbering()
Method Detail

setFormat

public void setFormat(AttributeValue format,
                      AttributeValue groupingSeparator,
                      AttributeValue groupingSize)

getFormat

public AttributeValue getFormat()

getGroupingSize

public AttributeValue getGroupingSize()

getGroupingSeparator

public AttributeValue getGroupingSeparator()

getText

public String getText(XsltContext context)

getNumbers

protected abstract int[] getNumbers(XsltContext context)