1 16 package org.apache.cocoon.components.xpointer; 17 18 import org.xml.sax.SAXException ; 19 import org.apache.cocoon.ResourceNotFoundException; 20 21 import java.util.List ; 22 import java.util.LinkedList ; 23 import java.util.Iterator ; 24 25 33 public class XPointer { 34 private List pointerParts = new LinkedList (); 35 36 public void addPart(PointerPart part) { 37 pointerParts.add(part); 38 } 39 40 public void process(XPointerContext context) throws SAXException , ResourceNotFoundException { 41 Iterator pointerPartsIt = pointerParts.iterator(); 42 while (pointerPartsIt.hasNext()) { 43 PointerPart part = (PointerPart)pointerPartsIt.next(); 44 part.process(context); 45 } 46 } 47 } 48 | Popular Tags |