org.apache.axiom.c14n.impl
Class Canonicalizer20010315Excl

java.lang.Object
  extended by org.apache.axiom.c14n.CanonicalizerSpi
      extended by org.apache.axiom.c14n.impl.CanonicalizerBase
          extended by org.apache.axiom.c14n.impl.Canonicalizer20010315Excl
Direct Known Subclasses:
Canonicalizer20010315ExclOmitComments, Canonicalizer20010315ExclWithComments

public abstract class Canonicalizer20010315Excl
extends CanonicalizerBase


Field Summary
 
Fields inherited from class org.apache.axiom.c14n.impl.CanonicalizerBase
nullNode
 
Fields inherited from class org.apache.axiom.c14n.CanonicalizerSpi
reset
 
Constructor Summary
Canonicalizer20010315Excl(boolean includeComments)
          Constructor Canonicalizer20010315Excl
 
Method Summary
 byte[] engineCanonicalizeSubTree(Node rootNode)
          Method engineCanonicalizeSubTree
 byte[] engineCanonicalizeSubTree(Node rootNode, String inclusiveNamespaces)
          Method engineCanonicalizeSubTree
 byte[] engineCanonicalizeSubTree(Node rootNode, String inclusiveNamespaces, Node excl)
          Method engineCanonicalizeSubTree
static SortedSet prefixStr2Set(String inclusiveNamespaces)
          Decodes the inclusiveNamespaces String and returns all selected namespace prefixes as a Set.
 
Methods inherited from class org.apache.axiom.c14n.impl.CanonicalizerBase
setWriter
 
Methods inherited from class org.apache.axiom.c14n.CanonicalizerSpi
engineCanonicalize, engineGetIncludeComments, engineGetURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Canonicalizer20010315Excl

public Canonicalizer20010315Excl(boolean includeComments)
Constructor Canonicalizer20010315Excl

Parameters:
includeComments -
Method Detail

engineCanonicalizeSubTree

public byte[] engineCanonicalizeSubTree(Node rootNode)
                                 throws CanonicalizationException
Method engineCanonicalizeSubTree

Overrides:
engineCanonicalizeSubTree in class CanonicalizerBase
Parameters:
rootNode -
Throws:
CanonicalizationException

engineCanonicalizeSubTree

public byte[] engineCanonicalizeSubTree(Node rootNode,
                                        String inclusiveNamespaces)
                                 throws CanonicalizationException
Method engineCanonicalizeSubTree

Specified by:
engineCanonicalizeSubTree in class CanonicalizerSpi
Parameters:
rootNode -
inclusiveNamespaces -
Throws:
CanonicalizationException

engineCanonicalizeSubTree

public byte[] engineCanonicalizeSubTree(Node rootNode,
                                        String inclusiveNamespaces,
                                        Node excl)
                                 throws CanonicalizationException
Method engineCanonicalizeSubTree

Parameters:
rootNode -
inclusiveNamespaces -
excl - A element to exclude from the org.apache.axiom.c14n.impl process.
Returns:
the rootNode org.apache.axiom.c14n.impl.
Throws:
CanonicalizationException

prefixStr2Set

public static SortedSet prefixStr2Set(String inclusiveNamespaces)
Decodes the inclusiveNamespaces String and returns all selected namespace prefixes as a Set. The #default namespace token is represented as an empty namespace prefix ("xmlns").
The String inclusiveNamespaces=" xenc ds #default" is returned as a Set containing the following Strings:

Parameters:
inclusiveNamespaces -
Returns:
A set to string


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.