cziegeler 02/02/21 23:11:41 Modified: src/scratchpad/src/org/apache/cocoon/transformation/pagination Paginator.java Log: Now, it compiles again Revision Changes Path 1.5 +34 -34 xml-cocoon2/src/scratchpad/src/org/apache/cocoon/transformation/pagination/Paginator.java Index: Paginator.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/transformation/pagination/Paginator.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- Paginator.java 22 Feb 2002 06:58:03 -0000 1.4 +++ Paginator.java 22 Feb 2002 07:11:41 -0000 1.5 @@ -89,7 +89,7 @@ * A paginating transformer. * * @author <a href="mailto:[EMAIL PROTECTED]">Stefano Mazzocchi</a> - * @version CVS $Revision: 1.4 $ $Date: 2002/02/22 06:58:03 $ + * @version CVS $Revision: 1.5 $ $Date: 2002/02/22 07:11:41 $ */ public class Paginator extends AbstractTransformer implements Composable, Disposable, Cacheable { @@ -102,10 +102,10 @@ private Parser parser; private Store store; private Source inputSource; + private int page; private Parameters par; private Map objectModel; private SourceResolver resolver; - private int page; private int item; private String itemGroup; private String requestURI; @@ -156,7 +156,7 @@ throw new ProcessingException("I need the paginate instructions (pagesheet) to continue. Set the 'src' attribute."); } - this.level = 0; + /* this.level = 0; this.prefixMapping = false; this.par = par; this.objectModel = objectModel; @@ -188,7 +188,7 @@ // Clone it in order to avoid concurrency collisions since the // implementation is not reentrant. - this.pagesheet = (Pagesheet) this.pagesheet.clone(); + this.pagesheet = (Pagesheet) this.pagesheet.clone();*/ } /** @@ -235,7 +235,7 @@ * @param a The attributes attached to the element. If there are no * attributes, it shall be an empty Attributes object. */ - public void startElement(String uri, String loc, String raw, Attributes a) +/* public void startElement(String uri, String loc, String raw, Attributes a) throws SAXException { if (!prefixMapping) { super.startPrefixMapping(PAGINATE_PREFIX, PAGINATE_URI); @@ -268,7 +268,7 @@ } } } - +*/ /** * Receive notification of the end of an element. * @@ -280,7 +280,7 @@ * @param raw The raw XML 1.0 name (with prefix), or the empty string if * raw names are not available. */ - public void endElement(String uri, String loc, String raw) +/* public void endElement(String uri, String loc, String raw) throws SAXException { level--; if (pagesheet.isInPage(page, item, itemGroup)) { @@ -363,7 +363,7 @@ } pagesheet.processEndElement(uri,loc); } - +*/ /** * Receive notification of character data. * @@ -371,12 +371,12 @@ * @param start The start position in the array. * @param len The number of characters to read from the array. */ - public void characters(char c[], int start, int len) +/* public void characters(char c[], int start, int len) throws SAXException { pagesheet.processCharacters(c, start, len); if (pagesheet.isInPage(page, item, itemGroup)) super.characters(c,start,len); } - +*/ /** * Receive notification of ignorable whitespace in element content. * @@ -384,11 +384,11 @@ * @param start The start position in the array. * @param len The number of characters to read from the array. */ - public void ignorableWhitespace(char c[], int start, int len) +/* public void ignorableWhitespace(char c[], int start, int len) throws SAXException { if (pagesheet.isInPage(page, item, itemGroup)) super.ignorableWhitespace(c,start,len); } - +*/ /** * Receive notification of a processing instruction. * @@ -396,22 +396,22 @@ * @param data The processing instruction data, or null if none was * supplied. */ - public void processingInstruction(String target, String data) +/* public void processingInstruction(String target, String data) throws SAXException { if (pagesheet.isInPage(page, item, itemGroup)) super.processingInstruction(target,data); } - +*/ /** * Receive notification of a skipped entity. * * @param name The name of the skipped entity. If it is a parameter * entity, the name will begin with '%'. */ - public void skippedEntity(String name) +/* public void skippedEntity(String name) throws SAXException { if (pagesheet.isInPage(page, item, itemGroup)) super.skippedEntity(name); } - +*/ /** * Report the start of DTD declarations, if any. * @@ -421,7 +421,7 @@ * @param systemId The declared system identifier for the external DTD * subset, or null if none was declared. */ - public void startDTD(String name, String publicId, String systemId) +/* public void startDTD(String name, String publicId, String systemId) throws SAXException { if (pagesheet.isInPage(page, item, itemGroup)) { super.startDTD(name,publicId,systemId); @@ -431,11 +431,11 @@ ); } } - +*/ /** * Report the end of DTD declarations. */ - public void endDTD() +/* public void endDTD() throws SAXException { if (pagesheet.isInPage(page, item, itemGroup)) { super.endDTD(); @@ -445,44 +445,44 @@ ); } } - +*/ /** * Report the beginning of an entity. * * @param name The name of the entity. If it is a parameter entity, the * name will begin with '%'. */ - public void startEntity(String name) +/* public void startEntity(String name) throws SAXException { if (pagesheet.isInPage(page, item, itemGroup)) super.startEntity(name); } - +*/ /** * Report the end of an entity. * * @param name The name of the entity that is ending. */ - public void endEntity(String name) + /* public void endEntity(String name) throws SAXException { if (pagesheet.isInPage(page, item, itemGroup)) super.endEntity(name); } - +*/ /** * Report the start of a CDATA section. */ - public void startCDATA() +/* public void startCDATA() throws SAXException { if (pagesheet.isInPage(page, item, itemGroup)) super.startCDATA(); } - +*/ /** * Report the end of a CDATA section. */ - public void endCDATA() +/* public void endCDATA() throws SAXException { if (pagesheet.isInPage(page, item, itemGroup)) super.endCDATA(); } - +*/ /** * Report an XML comment anywhere in the document. * @@ -490,16 +490,16 @@ * @param start The starting position in the array. * @param len The number of characters to use from the array. */ - public void comment(char ch[], int start, int len) +/* public void comment(char ch[], int start, int len) throws SAXException { if (pagesheet.isInPage(page, item, itemGroup)) super.comment(ch,start,len); } - +*/ /** * Removes the pagination encoding from the URI by removing the page * number and the previous and next character. */ - private String cleanURI(String uri, int current) { +/* private String cleanURI(String uri, int current) { String currentS = String.valueOf(current); int index = uri.lastIndexOf(currentS); if (index == -1) { @@ -508,7 +508,7 @@ return uri.substring(0, index - 1) + uri.substring(index + currentS.length() + 1); } } - +*/ /** * Encode the next page in the given URI. First tries to use the * existing encoding by replacing the current page number, but if @@ -516,7 +516,7 @@ * filename (before the file extention, if any) where "xx" is the * next page value. */ - private String encodeURI(String uri, int current, int next) { + /* private String encodeURI(String uri, int current, int next) { String currentS = String.valueOf(current); String nextS = String.valueOf(next); int index = uri.lastIndexOf(currentS); @@ -530,5 +530,5 @@ } else { return uri.substring(0, index) + nextS + uri.substring(index + currentS.length()); } - } + }*/ }
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]