Examples of OMContainerEx


Examples of org.apache.axiom.om.impl.OMContainerEx

                }
            } else {
                // Calculate the depth of the element to be discarded. This determines how many
                // END_ELEMENT events we need to consume.
                int targetDepth = elementLevel-1;
                OMContainerEx current = target;
                while (current != container) {
                    if (current instanceof OMElement) {
                        targetDepth--;
                        current = (OMContainerEx)((OMElement)current).getParent();
                    } else {
                        throw new OMException("Called discard for an element that is not being built by this builder");
                    }
                }
                while (elementLevel > targetDepth) {
                    parserNext();
                }
            }

            // Mark nodes as discarded
            OMContainerEx current = target;
            while (true) {
                discarded(current);
                if (current == container) {
                    break;
                }
View Full Code Here

Examples of org.apache.axiom.om.impl.OMContainerEx

                    "Parser already accessed!");
        }
        if (!cache) {
            parserAccessed = true;
            // Mark all containers in the hierarchy as discarded because they can no longer be built
            OMContainerEx current = target;
            while (current != null) {
                discarded(current);
                if (current instanceof OMElement) {
                    current = (OMContainerEx)((OMElement)current).getParent();
                } else {
View Full Code Here

Examples of org.apache.axiom.om.impl.OMContainerEx

                                     false);
                ((OMNodeEx) lastNode).setNextOMSibling(node);
                ((OMNodeEx) node).setPreviousOMSibling(lastNode);
            }
        } else {
            OMContainerEx e = (OMContainerEx) lastNode;
            node = constructNode((OMElement) lastNode, elementName, false);
            e.setFirstChild(node);
        }

        if (isDebugEnabled) {
            log.debug("Build the OMElement " + node.getLocalName() +
                    " by the StaxSOAPModelBuilder");
View Full Code Here

Examples of org.apache.axiom.om.impl.OMContainerEx

            node = omfactory.createOMElement(elementName, null,
                                             lastNode.getParent(), this);
            ((OMNodeEx) lastNode).setNextOMSibling(node);
            ((OMNodeEx) node).setPreviousOMSibling(lastNode);
        } else {
            OMContainerEx e = (OMContainerEx) lastNode;
            node = omfactory.createOMElement(elementName, null,
                                             (OMElement) lastNode, this);
            e.setFirstChild(node);
        }
        populateOMElement(node);
        return node;
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.OMContainerEx

                node = omfactory.createOMText(contentID, (OMElement) lastNode
                        .getParent(), this);
                ((OMNodeEx) lastNode).setNextOMSibling(node);
                ((OMNodeEx) node).setPreviousOMSibling(lastNode);
            } else {
                OMContainerEx e = (OMContainerEx) lastNode;
                node = omfactory.createOMText(contentID, (OMElement) lastNode, this);
                e.setFirstChild(node);
            }
            return node;
        } else {
            return super.createOMElement();
        }
View Full Code Here

Examples of org.apache.axiom.om.impl.OMContainerEx

            node = omfactory.createOMElement(elementName, null,
                                             lastNode.getParent(), this);
            ((OMNodeEx) lastNode).setNextOMSibling(node);
            ((OMNodeEx) node).setPreviousOMSibling(lastNode);
        } else {
            OMContainerEx e = (OMContainerEx) lastNode;
            node = omfactory.createOMElement(elementName, null,
                                             (OMElement) lastNode, this);
            e.setFirstChild(node);
        }
        populateOMElement(node);
        return node;
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.OMContainerEx

            e = factory.createOMElement(localName, null, lastNode.getParent(),
                                        null);
            ((OMNodeEx) lastNode).setNextOMSibling(e);
            ((OMNodeEx) e).setPreviousOMSibling(lastNode);
        } else {
            OMContainerEx parent = (OMContainerEx) lastNode;
            e = factory.createOMElement(localName, null, (OMElement) lastNode,
                                        null);
            parent.setFirstChild(e);
        }
        return e;
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.OMContainerEx

                                         new String(ch,
                                                    start, length));
            ((OMNodeEx) lastNode).setNextOMSibling(node);
            ((OMNodeEx) node).setPreviousOMSibling(lastNode);
        } else {
            OMContainerEx e = (OMContainerEx) lastNode;
            node = factory.createOMText(e, new String(ch, start, length));
            e.setFirstChild(node);
        }
        lastNode = node;
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.OMContainerEx

                                 elementName,
                                 false);
            ((OMNodeEx) lastNode).setNextOMSibling(node);
            ((OMNodeEx) node).setPreviousOMSibling(lastNode);
        } else {
            OMContainerEx e = (OMContainerEx) lastNode;
            node = constructNode((OMElement) lastNode, elementName, false);
            e.setFirstChild(node);
        }

        if (isDebugEnabled) {
            log.debug("Build the OMElelment " + node.getLocalName() +
                    "By the StaxSOAPModelBuilder");
View Full Code Here

Examples of org.apache.axiom.om.impl.OMContainerEx

            } else if (lastNode.isComplete() & lastNode.getParent() != null) {
                node = omfactory.createOMText(contentID, lastNode.getParent(), this);
                ((OMNodeEx) lastNode).setNextOMSibling(node);
                ((OMNodeEx) node).setPreviousOMSibling(lastNode);
            } else {
                OMContainerEx e = (OMContainerEx) lastNode;
                node = omfactory.createOMText(contentID, (OMElement) lastNode,
                                              this);
                e.setFirstChild(node);
            }
            return node;

        } else {
            return super.createOMElement();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.