org.apache.axiom.c14n.helpers
Class C14nHelper

java.lang.Object
  extended by org.apache.axiom.c14n.helpers.C14nHelper

public class C14nHelper
extends Object


Method Summary
static void assertNotRelativeNS(Attr attr)
          This method throws an exception if the Attribute value contains a relative URI.
static void checkForRelativeNamespace(Element ctxNode)
          This method throws a CanonicalizationException if the supplied Element contains any relative namespaces.
static boolean namespaceIsAbsolute(Attr namespace)
          Method namespaceIsAbsolute
static boolean namespaceIsAbsolute(String namespaceValue)
          Method namespaceIsAbsolute
static boolean namespaceIsRelative(Attr namespace)
          Method namespaceIsRelative
static boolean namespaceIsRelative(String namespaceValue)
          Method namespaceIsRelative
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

namespaceIsRelative

public static boolean namespaceIsRelative(Attr namespace)
Method namespaceIsRelative

Parameters:
namespace -
Returns:
true if the given namespace is relative.

namespaceIsRelative

public static boolean namespaceIsRelative(String namespaceValue)
Method namespaceIsRelative

Parameters:
namespaceValue -
Returns:
true if the given namespace is relative.

namespaceIsAbsolute

public static boolean namespaceIsAbsolute(Attr namespace)
Method namespaceIsAbsolute

Parameters:
namespace -
Returns:
true if the given namespace is absolute.

namespaceIsAbsolute

public static boolean namespaceIsAbsolute(String namespaceValue)
Method namespaceIsAbsolute

Parameters:
namespaceValue -
Returns:
true if the given namespace is absolute.

assertNotRelativeNS

public static void assertNotRelativeNS(Attr attr)
                                throws CanonicalizationException
This method throws an exception if the Attribute value contains a relative URI.

Parameters:
attr -
Throws:
CanonicalizationException

checkForRelativeNamespace

public static void checkForRelativeNamespace(Element ctxNode)
                                      throws CanonicalizationException
This method throws a CanonicalizationException if the supplied Element contains any relative namespaces.

Parameters:
ctxNode -
Throws:
CanonicalizationException
See Also:
assertNotRelativeNS(Attr)


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