| java.lang.Object org.jibx.runtime.QName
QName | public class QName (Code) | | Representation of a qualified name. This includes the JiBX
serializer/deserializer methods for the representation. It assumes that the
actual namespace declarations are being handled separately for
marshalling
Note that this implementation treats only the namespace and local name as
significant for purposes of comparing values. The prefix is held only as a
convenience, and the actual prefix used when writing a value may differ from
the prefix defined by the instance.
author: Dennis M. Sosnoski |
QName | public QName(String uri, String prefix, String name)(Code) | | Constructor from full set of components.
Parameters: uri - namespace uri, null if no-namespace namespace Parameters: prefix - namespace prefix, null if unspecified, emptystring if default namespace Parameters: name - local name |
QName | public QName(String uri, String name)(Code) | | Constructor from namespace and local name. This constructor is provided
as a convenience for when the actual prefix used for a namespace is
irrelevant.
Parameters: uri - namespace uri, null if no-namespace namespace Parameters: name - |
QName | public QName(String name)(Code) | | Constructor from local name only. This constructor is provided as a
convenience for names in the no-namespace namespace.
Parameters: name - |
deserialize | public static QName deserialize(String text, IUnmarshallingContext ictx) throws JiBXException(Code) | | JiBX deserializer method. This is intended for use as a deserializer for
instances of the class.
Parameters: text - value text Parameters: ictx - unmarshalling context created class instance throws: JiBXException - on error in unmarshalling |
deserializeList | public static QName[] deserializeList(String text, IUnmarshallingContext ictx) throws JiBXException(Code) | | JiBX deserializer method. This is intended for use as a deserializer for
a list made up of instances of the class.
Parameters: text - value text Parameters: ictx - unmarshalling context array of instances throws: JiBXException - on error in marshalling |
getPrefix | public String getPrefix()(Code) | | Get namespace prefix.
prefix, null if unspecified, empty string if defaultnamespace |
getUri | public String getUri()(Code) | | Get namespace URI.
uri namespace uri, null if no-namespace namespace |
hashCode | public int hashCode()(Code) | | |
serialize | public static String serialize(QName qname, IMarshallingContext ictx) throws JiBXException(Code) | | 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 - value to be serialized Parameters: ictx - unmarshalling context created class instance throws: JiBXException - on error in marshalling |
serializeList | public static String serializeList(QName[] qnames, IMarshallingContext ictx) throws JiBXException(Code) | | JiBX serializer method. This is intended for use as a serializer for a
list made up of instances of the class. The namespace must be active in
the output document at the point where this is called.
Parameters: qnames - array of names to be serialized Parameters: ictx - unmarshalling context generated text throws: JiBXException - on error in marshalling |
setName | public void setName(String name)(Code) | | Set local name.
Parameters: name - name |
setPrefix | public void setPrefix(String prefix)(Code) | | Set namespace prefix.
Parameters: prefix - prefix, null if unspecified, empty string ifdefault namespace |
setUri | public void setUri(String uri)(Code) | | Set namespace URI.
Parameters: uri - namespace uri, null if no-namespace namespace |
|
|