| java.lang.Object org.xml.sax.helpers.DefaultHandler org.apache.cocoon.transformation.pagination.Pagesheet
Pagesheet | public class Pagesheet extends DefaultHandler implements Cloneable,Modifiable(Code) | | 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 :)
author: Stefano Mazzocchi author: Boon Hian Tek version: CVS $Id: Pagesheet.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public Object | clone() | public void | endDocument() | public void | endElement(String uri, String loc, String raw) | public String | getItemGroupName(String elementURI, String elementName) | public int | getPageForItem(int item, String itemGroup) | public PageRules | getPageRules(int page) | public int | getTotalItems(String itemGroup) | public int | getTotalPages() | public boolean | isInPage(int page, int item, String itemGroup) | public int | itemCount(String elementURI, String elementName) | public boolean | modifiedSince(long date) | public void | processCharacters(char[] ch, int index, int len) | public void | processEndElement(String uri, String name) | public void | processStartElement(String uri, String name) | public void | setLastModified(long lastModified) | public void | startElement(String uri, String loc, String raw, Attributes a) | public void | startPrefixMapping(String prefix, String uri) |
itemGroupsPerElement | Map itemGroupsPerElement(Code) | | |
itemGroupsPerName | Map itemGroupsPerName(Code) | | |
itemListsPerElement | Map itemListsPerElement(Code) | | |
Pagesheet | public Pagesheet()(Code) | | |
getPageForItem | public int getPageForItem(int item, String itemGroup)(Code) | | |
getTotalItems | public int getTotalItems(String itemGroup)(Code) | | |
getTotalPages | public int getTotalPages()(Code) | | |
isInPage | public boolean isInPage(int page, int item, String itemGroup)(Code) | | |
modifiedSince | public boolean modifiedSince(long date)(Code) | | |
processCharacters | public void processCharacters(char[] ch, int index, int len)(Code) | | |
setLastModified | public void setLastModified(long lastModified)(Code) | | |
Methods inherited from org.xml.sax.helpers.DefaultHandler | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|