Package org.apache.axiom.c14n.omwrapper.interfaces

Examples of org.apache.axiom.c14n.omwrapper.interfaces.NamedNodeMap


     */
    public static void checkForRelativeNamespace(Element ctxNode)
            throws CanonicalizationException {

        if (ctxNode != null) {
            NamedNodeMap attributes = ctxNode.getAttributes();

            for (int i = 0; i < attributes.getLength(); i++) {
                C14nHelper.assertNotRelativeNS((Attr) attributes.item(i));
            }
        } else {
            throw new CanonicalizationException(
                    "Called checkForRelativeNamespace() on null");
        }
View Full Code Here


     */
    Iterator handleAttributesSubtree(Element E, NameSpaceSymbTable ns)
            throws CanonicalizationException {
        SortedSet result = this.result;
        result.clear();
        NamedNodeMap attrs = null;

        int attrsLength = 0;
        if (E.hasAttributes()) {
            attrs = E.getAttributes();
            attrsLength = attrs.getLength();
        }
        //The prefix visibly utilized(in the attribute or in the name) in the element
        SortedSet visiblyUtilized = (SortedSet) _inclusiveNSSet.clone();

        for (int i = 0; i < attrsLength; i++) {
            Attr N = (Attr) attrs.item(i);

            if (XMLNS_URI != N.getNamespaceURI()) {
                //Not a namespace definition.
                //The Element is output element, add his prefix(if used) to visibyUtilized
                String prefix = N.getPrefix();
View Full Code Here

            return null;
        }
        // result will contain the attrs which have to be outputted
        final SortedSet result = this.result;
        result.clear();
        NamedNodeMap attrs = E.getAttributes();
        int attrsLength = attrs.getLength();

        for (int i = 0; i < attrsLength; i++) {
            Attr N = (Attr) attrs.item(i);
            String NUri = N.getNamespaceURI();

            if (XMLNS_URI != NUri) {
                //It's not a namespace attr node. Add to the result and continue.
                result.add(N);
View Full Code Here

    void handleParent(Element e, NameSpaceSymbTable ns) {
        if (!e.hasAttributes()) {
            return;
        }
        xmlattrStack.push(-1);
        NamedNodeMap attrs = e.getAttributes();
        int attrsLength = attrs.getLength();
        for (int i = 0; i < attrsLength; i++) {
            Attr N = (Attr) attrs.item(i);
            if (Constants.NamespaceSpecNS != N.getNamespaceURI()) {
                //Not a namespace definition, ignore.
                if (XML_LANG_URI == N.getNamespaceURI()) {
                    xmlattrStack.addXmlnsAttr(N);
                }
View Full Code Here

     */
    public static void checkForRelativeNamespace(Element ctxNode)
            throws CanonicalizationException {

        if (ctxNode != null) {
            NamedNodeMap attributes = ctxNode.getAttributes();

            for (int i = 0; i < attributes.getLength(); i++) {
                C14nHelper.assertNotRelativeNS((Attr) attributes.item(i));
            }
        } else {
            throw new CanonicalizationException(
                    "Called checkForRelativeNamespace() on null");
        }
View Full Code Here

     */
    Iterator handleAttributesSubtree(Element E, NameSpaceSymbTable ns)
            throws CanonicalizationException {
        SortedSet result = this.result;
        result.clear();
        NamedNodeMap attrs = null;

        int attrsLength = 0;
        if (E.hasAttributes()) {
            attrs = E.getAttributes();
            attrsLength = attrs.getLength();
        }
        //The prefix visibly utilized(in the attribute or in the name) in the element
        SortedSet visiblyUtilized = (SortedSet) _inclusiveNSSet.clone();

        for (int i = 0; i < attrsLength; i++) {
            Attr N = (Attr) attrs.item(i);

            if (XMLNS_URI != N.getNamespaceURI()) {
                //Not a namespace definition.
                //The Element is output element, add his prefix(if used) to visibyUtilized
                String prefix = N.getPrefix();
View Full Code Here

            return null;
        }
        // result will contain the attrs which have to be outputted
        final SortedSet result = this.result;
        result.clear();
        NamedNodeMap attrs = E.getAttributes();
        int attrsLength = attrs.getLength();

        for (int i = 0; i < attrsLength; i++) {
            Attr N = (Attr) attrs.item(i);
            String NUri = N.getNamespaceURI();

            if (XMLNS_URI != NUri) {
                //It's not a namespace attr node. Add to the result and continue.
                result.add(N);
View Full Code Here

    void handleParent(Element e, NameSpaceSymbTable ns) {
        if (!e.hasAttributes()) {
            return;
        }
        xmlattrStack.push(-1);
        NamedNodeMap attrs = e.getAttributes();
        int attrsLength = attrs.getLength();
        for (int i = 0; i < attrsLength; i++) {
            Attr N = (Attr) attrs.item(i);
            if (Constants.NamespaceSpecNS != N.getNamespaceURI()) {
                //Not a namespace definition, ignore.
                if (XML_LANG_URI == N.getNamespaceURI()) {
                    xmlattrStack.addXmlnsAttr(N);
                }
View Full Code Here

TOP

Related Classes of org.apache.axiom.c14n.omwrapper.interfaces.NamedNodeMap

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.