| java.lang.Object org.springframework.xml.namespace.QNameUtils
createQName | public static QName createQName(String namespaceUri, String localPart, String prefix)(Code) | | Creates a new QName with the given parameters. Sets the prefix if possible, i.e. if the
QName(String, String, String) constructor can be found. If this constructor is not available (as is
the case on older implementations of JAX-RPC), the prefix is ignored.
Parameters: namespaceUri - namespace URI of the QName Parameters: localPart - local part of the QName Parameters: prefix - prefix of the QName . May be ignored. the created QName See Also: QName.QName(StringStringString) |
getPrefix | public static String getPrefix(QName qName)(Code) | | Returns the prefix of the given QName . Returns the prefix if available, i.e. if the
QName.getPrefix() method can be found. If this method is not available (as is the case on older
implementations of JAX-RPC), an empty string is returned.
Parameters: qName - the QName to return the prefix from the prefix, if available, or an empty string See Also: javax.xml.namespace.QName.getPrefix |
getQNameForNode | public static QName getQNameForNode(Node node)(Code) | | Returns the qualified name of the given DOM Node.
Parameters: node - the node the qualified name of the node |
parseQNameString | public static QName parseQNameString(String qNameString)(Code) | | Parse the given qualified name string into a QName . Expects the syntax localPart ,
{namespace}localPart , or {namespace}prefix:localPart . This format resembles the
toString() representation of QName itself, but allows for prefixes to be specified as
well.
a corresponding QName instance throws: IllegalArgumentException - when the given string is null or empty. |
toQName | public static QName toQName(String namespaceUri, String qualifiedName)(Code) | | Convert a namespace URI and DOM or SAX qualified name to a QName . The qualified name can have the
form prefix:localname or localName .
Parameters: namespaceUri - the namespace URI Parameters: qualifiedName - the qualified name a QName |
toQualifiedName | public static String toQualifiedName(QName qName)(Code) | | Convert a QName to a qualified name, as used by DOM and SAX. The returned string has a format of
prefix:localName if the prefix is set, or just localName if not.
Parameters: qName - the QName the qualified name |
validateQName | public static boolean validateQName(String text)(Code) | | Validates the given String as a QName
Parameters: text - the qualified name true if valid, false otherwise |
|
|