Package com.thoughtworks.xstream.io.xml
Class QNameMap
java.lang.Object
com.thoughtworks.xstream.io.xml.QNameMap
Represents a mapping of
QName
instances to Java class names
allowing class aliases and namespace aware mappings of QNames to class names.- Version:
- $Revision$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetJavaClassName
(QName qname) Returns the Java class name that should be used for the given QName.Returns the Java class name that should be used for the given QName.void
registerMapping
(QName qname, Class type) Registers the mapping of the type to the QNamevoid
registerMapping
(QName qname, String javaClassName) Registers the mapping of the Java class name to the QNamevoid
setDefaultNamespace
(String defaultNamespace) void
setDefaultPrefix
(String defaultPrefix)
-
Field Details
-
qnameToJava
-
javaToQName
-
defaultPrefix
-
defaultNamespace
-
-
Constructor Details
-
QNameMap
public QNameMap()
-
-
Method Details
-
getJavaClassName
Returns the Java class name that should be used for the given QName. If no explicit mapping has been made then the localPart of the QName is used which is the normal default in XStream. -
getQName
Returns the Java class name that should be used for the given QName. If no explicit mapping has been made then the localPart of the QName is used which is the normal default in XStream. -
registerMapping
Registers the mapping of the Java class name to the QName -
registerMapping
Registers the mapping of the type to the QName -
getDefaultNamespace
-
setDefaultNamespace
-
getDefaultPrefix
-
setDefaultPrefix
-