Package org.apache.xmlbeans.impl.common
Class QNameHelper
java.lang.Object
org.apache.xmlbeans.impl.common.QNameHelper
public class QNameHelper extends Object
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_NAME_LENGTH
static String
URI_SHA1_PREFIX
-
Constructor Summary
Constructors Constructor Description QNameHelper()
-
Method Summary
Modifier and Type Method Description static QName
forLN(String localname)
static QName
forLNS(String localname, String uri)
static QName
forPretty(String pretty, int offset)
static String
getLocalPart(String qname)
Returns the local name of the given node.static String
getPrefixPart(String qname)
Returns the local name of the given node.static XMLName
getXMLName(QName qname)
static String
hexsafe(String s)
static String
hexsafedir(QName name)
static String
namespace(SchemaType sType)
static String
pretty(QName name)
static String
readable(QName name)
static String
readable(QName name, Map prefixes)
static String
readable(SchemaType sType)
static String
readable(SchemaType sType, Map nsPrefix)
static String
suggestPrefix(String namespace)
-
Field Details
-
MAX_NAME_LENGTH
public static final int MAX_NAME_LENGTH- See Also:
- Constant Field Values
-
URI_SHA1_PREFIX
- See Also:
- Constant Field Values
-
-
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
-