Package org.apache.xmlbeans.impl.common
Class QNameHelper
java.lang.Object
org.apache.xmlbeans.impl.common.QNameHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QNamestatic QNamestatic QNamestatic StringgetLocalPart(String qname) Returns the local name of the given node.static StringgetPrefixPart(String qname) Returns the local name of the given node.static XMLNamegetXMLName(QName qname) static Stringstatic Stringhexsafedir(QName name) static Stringnamespace(SchemaType sType) static Stringstatic Stringstatic Stringstatic Stringreadable(SchemaType sType) static Stringreadable(SchemaType sType, Map<String, String> nsPrefix) static StringsuggestPrefix(String namespace)
-
Field Details
-
MAX_NAME_LENGTH
public static final int MAX_NAME_LENGTH- See Also:
-
URI_SHA1_PREFIX
- See Also:
-
-
Constructor Details
-
QNameHelper
public QNameHelper()
-
-
Method Details
-
getXMLName
-
forLNS
-
forLN
-
forPretty
-
pretty
-
hexsafe
-
hexsafedir
-
readable
-
readable
-
readable
-
readable
-
suggestPrefix
-
namespace
-
getLocalPart
Returns the local name of the given node.- Parameters:
qname- Input name- Returns:
- Local part of the name if prefixed, or the given name if not
-
getPrefixPart
Returns the local name of the given node.- Parameters:
qname- Input name- Returns:
- Prefix of name or empty string if none there
-