Package org.jibx.extras
Class QName
java.lang.Object
org.jibx.extras.QName
Representation of a qualified name. This includes the serializer/deserializer
methods for the representation. It assumes that the actual namespace
declarations are being handled separately for marshalling.
- Author:
- Dennis M. Sosnoski
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QName
deserialize
(String text, IUnmarshallingContext ictx) JiBX deserializer method.getName()
Get local name.Get namespace prefix.getUri()
Get namespace URI.static String
serialize
(QName qname, IMarshallingContext ictx) JiBX serializer method.void
Set local name.void
Set namespace prefix.void
Set namespace URI.
-
Field Details
-
m_uri
-
m_prefix
-
m_name
-
-
Constructor Details
-
QName
public QName()Default constructor. -
QName
Constructor from full set of components.- Parameters:
uri
-prefix
-name
-
-
-
Method Details
-
getName
Get local name.- Returns:
- name
-
setName
Set local name.- Parameters:
name
- name
-
getPrefix
Get namespace prefix.- Returns:
- prefix
-
setPrefix
Set namespace prefix.- Parameters:
prefix
- prefix
-
getUri
Get namespace URI.- Returns:
- uri
-
setUri
Set namespace URI.- Parameters:
uri
- uri
-
deserialize
JiBX deserializer method. This is intended for use as a deserializer for instances of the class.- Parameters:
text
- value textictx
- unmarshalling context- Returns:
- created class instance
- Throws:
JiBXException
- on error in unmarshalling
-
serialize
JiBX serializer method. This is intended for use as a serializer for instances of the class. The namespace must be active in the output document at the point where this is called.- Parameters:
qname
- instance to be serializedictx
- unmarshalling context- Returns:
- created class instance
- Throws:
JiBXException
- on error in marshalling
-