|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xml.security.c14n.helper.C14nHelper
Temporary swapped static functions from the normalizer Section
Method Summary | |
static void |
assertNotRelativeNS(org.w3c.dom.Attr attr)
This method throws an exception if the Attribute value contains a relative URI. |
static void |
checkForRelativeNamespace(org.w3c.dom.Element ctxNode)
This method throws a CanonicalizationException if the supplied Element contains any relative namespaces. |
static void |
checkTraversability(org.w3c.dom.Document document)
This method throws a CanonicalizationException if the supplied Document is not able to be traversed using a TreeWalker. |
static boolean |
namespaceIsAbsolute(org.w3c.dom.Attr namespace)
Method namespaceIsAbsolute |
static boolean |
namespaceIsAbsolute(java.lang.String namespaceValue)
Method namespaceIsAbsolute |
static boolean |
namespaceIsRelative(org.w3c.dom.Attr namespace)
Method namespaceIsRelative |
static boolean |
namespaceIsRelative(java.lang.String namespaceValue)
Method namespaceIsRelative |
static java.lang.String |
normalizeAttr(java.lang.String s)
Normalizes an Attr ibute value
The string value of the node is modified by replacing
all ampersands (&) with &
all open angle brackets (<) with <
all quotation mark characters with "
and the whitespace characters #x9 , #xA, and #xD, with character
references. |
static java.lang.String |
normalizeComment(java.lang.String s)
Normalizes a Comment value |
static java.lang.String |
normalizeProcessingInstruction(java.lang.String s)
Normalizes a ProcessingInstruction value |
static java.lang.String |
normalizeText(java.lang.String s)
Normalizes a Text value
Text Nodes - the string value, except all ampersands (& are replaced by
&, all open angle brackets (<) are replaced by <, all closing
angle brackets (>) are replaced by >, and all #xD characters
are replaced by 
. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static final java.lang.String normalizeAttr(java.lang.String s)
Attr
ibute value
The string value of the node is modified by replacing
&
<
"
#x9
, #xA, and #xD, with character
references. The character references are written in uppercase
hexadecimal with no leading zeroes (for example, #xD
is represented
by the character reference 
)
s
-
Attr
ibute value (((String
)public static final java.lang.String normalizeComment(java.lang.String s)
Comment
value
s
-
Comment
value (((String
)public static final java.lang.String normalizeProcessingInstruction(java.lang.String s)
ProcessingInstruction
value
s
-
ProcessingInstruction
value (((String
)public static final java.lang.String normalizeText(java.lang.String s)
Text
value
Text Nodes - the string value, except all ampersands (& are replaced by &, all open angle brackets (<) are replaced by <, all closing angle brackets (>) are replaced by >, and all #xD characters are replaced by 
. (See processing model section in the specification)
s
-
Text
value (((String
)public static boolean namespaceIsRelative(org.w3c.dom.Attr namespace)
namespace
-
public static boolean namespaceIsRelative(java.lang.String namespaceValue)
namespaceValue
-
public static boolean namespaceIsAbsolute(org.w3c.dom.Attr namespace)
namespace
-
public static boolean namespaceIsAbsolute(java.lang.String namespaceValue)
namespaceValue
-
public static void assertNotRelativeNS(org.w3c.dom.Attr attr) throws CanonicalizationException
attr
-
CanonicalizationException
public static void checkTraversability(org.w3c.dom.Document document) throws CanonicalizationException
document
-
CanonicalizationException
public static void checkForRelativeNamespace(org.w3c.dom.Element ctxNode) throws CanonicalizationException
ctxNode
-
CanonicalizationException
assertNotRelativeNS(Attr)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |