|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.apache.cocoon.transformation.pagination.Pagesheet
Interprets the pagesheet rules to perform pagination.
FIXME (SM): this code sucks! It was done to show the concept of
rule driven pagination (which I find very nice) but
it needs major refactoring in order to be sufficiently
stable to allow any input to enter without breaking
SAX well-formness. I currently don't have the time to make
it any better (along with implementing the char-based rule
that is mostly useful for text documents) but if you want
to blast the code and rewrite it better, you'll make me happy :)
| Constructor Summary | |
Pagesheet()
|
|
| Method Summary | |
Object |
clone()
|
void |
endDocument()
|
void |
endElement(String uri,
String loc,
String raw)
|
String |
getItemGroupName(String elementURI,
String elementName)
|
int |
getPageForItem(int item,
String itemGroup)
|
PageRules |
getPageRules(int page)
|
int |
getTotalItems(String itemGroup)
|
int |
getTotalPages()
|
boolean |
isInPage(int page,
int item,
String itemGroup)
|
int |
itemCount(String elementURI,
String elementName)
|
boolean |
modifiedSince(long date)
Queries the class to estimate its ergodic period termination. |
void |
processCharacters(char[] ch,
int index,
int len)
|
void |
processEndElement(String uri,
String name)
|
void |
processStartElement(String uri,
String name)
|
void |
setLastModified(long lastModified)
|
void |
startElement(String uri,
String loc,
String raw,
Attributes a)
|
void |
startPrefixMapping(String prefix,
String uri)
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Pagesheet()
| Method Detail |
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
startPrefixMapping in interface ContentHandlerSAXException
public void startElement(String uri,
String loc,
String raw,
Attributes a)
throws SAXException
startElement in interface ContentHandlerSAXException
public void endElement(String uri,
String loc,
String raw)
throws SAXException
endElement in interface ContentHandlerSAXException
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXException
public void processStartElement(String uri,
String name)
public void processEndElement(String uri,
String name)
public void processCharacters(char[] ch,
int index,
int len)
public boolean isInPage(int page,
int item,
String itemGroup)
public int getTotalPages()
public int getTotalItems(String itemGroup)
public int getPageForItem(int item,
String itemGroup)
public int itemCount(String elementURI,
String elementName)
public String getItemGroupName(String elementURI,
String elementName)
public PageRules getPageRules(int page)
public void setLastModified(long lastModified)
public boolean modifiedSince(long date)
Modifiable
modifiedSince in interface Modifiablepublic Object clone()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||