|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensaml.XML
Utility classes for XML constants and optimizations
Nested Class Summary | |
static class |
XML.ParserPool
Nested class that provides XML parsers as a pooled resource |
Field Summary | |
static java.lang.String |
OPENSAML_NS
OpenSAML XML namespace |
static XML.ParserPool |
parserPool
A global object to manage a pool of custom DOM parsers |
static java.lang.String |
SAML_NS
SAML XML namespace |
protected static byte[] |
SAML_schema
Cached copy of SAML schema |
static java.lang.String |
SAML_SCHEMA_ID
SAML XML Schema Identifier |
protected static byte[] |
SAML11_schema
Cached copy of SAML 1.1 schema |
static java.lang.String |
SAML11_SCHEMA_ID
SAML 1.1 XML Schema Identifier |
static java.lang.String |
SAMLP_NS
SAML protocol XML namespace |
protected static byte[] |
SAMLP_schema
Cached copy of SAML protocol schema |
static java.lang.String |
SAMLP_SCHEMA_ID
SAML protocol XML Schema Identifier |
protected static byte[] |
SAMLP11_schema
Cached copy of SAML 1.1 protocol schema |
static java.lang.String |
SAMLP11_SCHEMA_ID
SAML 1.1 protocol XML Schema Identifier |
static java.lang.String |
SOAP11ENV_NS
SOAP 1.1 Envelope XML namespace |
protected static byte[] |
SOAP11Env_schema
Cached copy of SOAP 1.1 Envelope schema |
static java.lang.String |
SOAP11ENV_SCHEMA_ID
SOAP 1.1 Envelope Schema Identifier |
static java.lang.String |
XML_NS
XML core namespace |
protected static byte[] |
XML_schema
Cached copy of XML core schema |
static java.lang.String |
XML_SCHEMA_ID
XML core schema identifier |
static java.lang.String |
XMLNS_NS
XML namespace for xmlns attributes |
static java.lang.String |
XMLSIG_NS
XML Signature namespace |
protected static byte[] |
XMLSig_schema
Cached copy of XML Signature schema |
static java.lang.String |
XMLSIG_SCHEMA_ID
XML Signature Schema Identifier |
static java.lang.String |
XPATH2_NS
XPath Filter 2 namespace |
protected static byte[] |
XPath2_schema
Cached copy of XPath Filter2 schema |
static java.lang.String |
XPATH2_SCHEMA_ID
XPath Filter 2 Schema Identifier |
static java.lang.String |
XSD_NS
XML Schema Instance namespace |
static java.lang.String |
XSI_NS
XML Schema Instance namespace |
Constructor Summary | |
XML()
|
Method Summary | |
static org.w3c.dom.Element |
getFirstChildElement(org.w3c.dom.Node n)
Gets the first child Element of the node, skipping any Text nodes such as whitespace. |
static org.w3c.dom.Element |
getFirstChildElement(org.w3c.dom.Node n,
java.lang.String ns,
java.lang.String localName)
Gets the first child Element of the node of the given name, skipping any Text nodes such as whitespace. |
static org.w3c.dom.Element |
getLastChildElement(org.w3c.dom.Node n)
Gets the last child Element of the node, skipping any Text nodes such as whitespace. |
static org.w3c.dom.Element |
getLastChildElement(org.w3c.dom.Node n,
java.lang.String ns,
java.lang.String localName)
Gets the last child Element of the node of the given name, skipping any Text nodes such as whitespace. |
static org.w3c.dom.Element |
getNextSiblingElement(org.w3c.dom.Node n)
Gets the next sibling Element of the node, skipping any Text nodes such as whitespace. |
static org.w3c.dom.Element |
getNextSiblingElement(org.w3c.dom.Node n,
java.lang.String ns,
java.lang.String localName)
Gets the next sibling Element of the node of the given name, skipping any Text nodes such as whitespace. |
static org.w3c.dom.Element |
getPreviousSiblingElement(org.w3c.dom.Node n)
Gets the previous sibling Element of the node, skipping any Text nodes such as whitespace. |
static org.w3c.dom.Element |
getPreviousSiblingElement(org.w3c.dom.Node n,
java.lang.String ns,
java.lang.String localName)
Gets the previous sibling Element of the node of the given name, skipping any Text nodes such as whitespace. |
static boolean |
isElementNamed(org.w3c.dom.Element e,
java.lang.String ns,
java.lang.String localName)
Shortcut for checking a DOM element node's namespace and local name |
static boolean |
isEmpty(java.lang.String s)
A "safe" null/empty check for strings. |
static boolean |
safeCompare(java.lang.String s1,
java.lang.String s2)
Compares two strings for equality, allowing for nulls |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String XML_NS
public static final java.lang.String XMLNS_NS
public static final java.lang.String XSI_NS
public static final java.lang.String XSD_NS
public static final java.lang.String OPENSAML_NS
public static final java.lang.String SAML_NS
public static final java.lang.String SAMLP_NS
public static final java.lang.String XMLSIG_NS
public static final java.lang.String XPATH2_NS
public static final java.lang.String SOAP11ENV_NS
public static final java.lang.String XML_SCHEMA_ID
public static final java.lang.String SAML_SCHEMA_ID
public static final java.lang.String SAMLP_SCHEMA_ID
public static final java.lang.String SAML11_SCHEMA_ID
public static final java.lang.String SAMLP11_SCHEMA_ID
public static final java.lang.String XMLSIG_SCHEMA_ID
public static final java.lang.String XPATH2_SCHEMA_ID
public static final java.lang.String SOAP11ENV_SCHEMA_ID
protected static byte[] XML_schema
protected static byte[] SAML_schema
protected static byte[] SAMLP_schema
protected static byte[] SAML11_schema
protected static byte[] SAMLP11_schema
protected static byte[] XMLSig_schema
protected static byte[] XPath2_schema
protected static byte[] SOAP11Env_schema
public static XML.ParserPool parserPool
Constructor Detail |
public XML()
Method Detail |
public static boolean isEmpty(java.lang.String s)
s
- The string to check
public static boolean safeCompare(java.lang.String s1, java.lang.String s2)
s1
- The first operands2
- The second operand
public static boolean isElementNamed(org.w3c.dom.Element e, java.lang.String ns, java.lang.String localName)
e
- An element to compare againstns
- An XML namespace to comparelocalName
- A local name to compare
public static org.w3c.dom.Element getFirstChildElement(org.w3c.dom.Node n)
n
- The parent in which to search for children
public static org.w3c.dom.Element getLastChildElement(org.w3c.dom.Node n)
n
- The parent in which to search for children
public static org.w3c.dom.Element getFirstChildElement(org.w3c.dom.Node n, java.lang.String ns, java.lang.String localName)
n
- The parent in which to search for childrenns
- The namespace URI of the element to locatelocalName
- The local name of the element to locate
public static org.w3c.dom.Element getLastChildElement(org.w3c.dom.Node n, java.lang.String ns, java.lang.String localName)
n
- The parent in which to search for childrenns
- The namespace URI of the element to locatelocalName
- The local name of the element to locate
public static org.w3c.dom.Element getNextSiblingElement(org.w3c.dom.Node n)
n
- The sibling to start with
public static org.w3c.dom.Element getPreviousSiblingElement(org.w3c.dom.Node n)
n
- The sibling to start with
public static org.w3c.dom.Element getNextSiblingElement(org.w3c.dom.Node n, java.lang.String ns, java.lang.String localName)
n
- The sibling to start withns
- The namespace URI of the element to locatelocalName
- The local name of the element to locate
public static org.w3c.dom.Element getPreviousSiblingElement(org.w3c.dom.Node n, java.lang.String ns, java.lang.String localName)
n
- The sibling to start withns
- The namespace URI of the element to locatelocalName
- The local name of the element to locate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |