public class QNameMap
extends java.lang.Object
QName
instances to Java class names
allowing class aliases and namespace aware mappings of QNames to class names.Constructor and Description |
---|
QNameMap() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultNamespace() |
java.lang.String |
getDefaultPrefix() |
java.lang.String |
getJavaClassName(javax.xml.namespace.QName qname)
Returns the Java class name that should be used for the given QName.
|
javax.xml.namespace.QName |
getQName(java.lang.String javaClassName)
Returns the Java class name that should be used for the given QName.
|
void |
registerMapping(javax.xml.namespace.QName qname,
java.lang.Class type)
Registers the mapping of the type to the QName
|
void |
registerMapping(javax.xml.namespace.QName qname,
java.lang.String javaClassName)
Registers the mapping of the Java class name to the QName
|
void |
setDefaultNamespace(java.lang.String defaultNamespace) |
void |
setDefaultPrefix(java.lang.String defaultPrefix) |
public java.lang.String getJavaClassName(javax.xml.namespace.QName qname)
public javax.xml.namespace.QName getQName(java.lang.String javaClassName)
public void registerMapping(javax.xml.namespace.QName qname, java.lang.String javaClassName)
public void registerMapping(javax.xml.namespace.QName qname, java.lang.Class type)
public java.lang.String getDefaultNamespace()
public void setDefaultNamespace(java.lang.String defaultNamespace)
public java.lang.String getDefaultPrefix()
public void setDefaultPrefix(java.lang.String defaultPrefix)
Copyright © 2004–2021 XStream. All rights reserved.