lux.xml
Class QName
java.lang.Object
javax.xml.namespace.QName
lux.xml.QName
- All Implemented Interfaces:
- Serializable
public final class QName
- extends QName
- See Also:
- Serialized Form
QName
public QName(String localPart)
QName
public QName(String namespace,
String localName)
QName
public QName(String namespace,
String localName,
String prefix)
toString
public void toString(StringBuilder buf)
toString
public String toString()
- Overrides:
toString in class QName
getClarkName
public String getClarkName()
- The Clark name is named after James Clark. It has the namespace surrounded by {},
followed by the local name. We omit the {} when the namespace is empty.
- Returns:
- the Clark name
getEncodedName
public String getEncodedName()
- Returns:
- the name encoded in a suitable form for indexing. The namespace uri, if any,
is wrapped in {} and appended to the local-name.
encode
public static String encode(String localPart,
String namespaceURI)
- Parameters:
localPart - the local part of the QName to encodenamespaceURI - the namespace (URI) of the QName to encode (may be null)
- Returns:
- the QName encoded in a suitable form for indexing. The namespace uri, if any,
is wrapped in {} and appended to the local-name.
Copyright © 2013. All Rights Reserved.