Package org.apache.cocoon.stax.navigation

Examples of org.apache.cocoon.stax.navigation.InSubtreeNavigator


     * @param events list for caching non link info specific events.
     * @return a linkInfo object
     * @throws XMLStreamException
     */
    private LinkInfo collectLinkInfo(List<XMLEvent> events) throws XMLStreamException {
        Navigator linkInfoNavigator = new InSubtreeNavigator(LINK_INFO_EL);
        Navigator linkInfoPartNavigator = new FindStartElementNavigator(LINK_PART_INFO_EL);
        LinkInfo linkInfo = null;

        while (this.getParent().hasNext()) {
            XMLEvent event = this.getParent().peek();

            if (linkInfoNavigator.fulfillsCriteria(event)) {
                event = this.getParent().nextEvent();
                if (linkInfoPartNavigator.fulfillsCriteria(event)) {
                    if (linkInfo == null) {
                        throw new ProcessingException(new NullPointerException(
                                "The LinkInfo object mustn't be null here."));
View Full Code Here


     *
     * @param name The name of the element which will be deleted including all subelements.
     * @param attributes The attributes an element has to contain in order to get deleted.
     */
    public DeletionTransformer(String name, List<Attribute> attributes) {
        this.navigator = new InSubtreeNavigator(name, attributes);
    }
View Full Code Here

     *            deleted.
     * @param attribute The attributes an element must contain in order to be the root of the sub
     *            tree that is not deleted.
     */
    public SubSetTransformer(String name, Attribute... attribute) {
        this.navigator = new InSubtreeNavigator(name, attribute);
    }
View Full Code Here

TOP

Related Classes of org.apache.cocoon.stax.navigation.InSubtreeNavigator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.