|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jibx.runtime.QName
public class QName
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.
Constructor Summary | |
---|---|
QName(java.lang.String name)
Constructor from local name only. |
|
QName(java.lang.String uri,
java.lang.String name)
Constructor from namespace and local name. |
|
QName(java.lang.String uri,
java.lang.String prefix,
java.lang.String name)
Constructor from full set of components. |
Method Summary | |
---|---|
static QName |
deserialize(java.lang.String text,
IUnmarshallingContext ictx)
JiBX deserializer method. |
static QName[] |
deserializeList(java.lang.String text,
IUnmarshallingContext ictx)
JiBX deserializer method. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getName()
Get local name. |
java.lang.String |
getPrefix()
Get namespace prefix. |
java.lang.String |
getUri()
Get namespace URI. |
int |
hashCode()
|
static java.lang.String |
serialize(QName qname,
IMarshallingContext ictx)
JiBX serializer method. |
static java.lang.String |
serializeList(QName[] qnames,
IMarshallingContext ictx)
JiBX serializer method. |
void |
setName(java.lang.String name)
Set local name. |
void |
setPrefix(java.lang.String prefix)
Set namespace prefix. |
void |
setUri(java.lang.String uri)
Set namespace URI. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QName(java.lang.String uri, java.lang.String prefix, java.lang.String name)
uri
- namespace uri, null
if no-namespace namespaceprefix
- namespace prefix, null
if unspecified, empty
string if default namespacename
- local namepublic QName(java.lang.String uri, java.lang.String name)
uri
- namespace uri, null
if no-namespace namespacename
- public QName(java.lang.String name)
name
- Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
public void setName(java.lang.String name)
name
- namepublic java.lang.String getPrefix()
null
if unspecified, empty string if default
namespacepublic void setPrefix(java.lang.String prefix)
prefix
- prefix, null
if unspecified, empty string if
default namespacepublic java.lang.String getUri()
null
if no-namespace namespacepublic void setUri(java.lang.String uri)
uri
- namespace uri, null
if no-namespace namespacepublic static QName deserialize(java.lang.String text, IUnmarshallingContext ictx) throws JiBXException
text
- value textictx
- unmarshalling context
JiBXException
- on error in unmarshallingpublic static java.lang.String serialize(QName qname, IMarshallingContext ictx) throws JiBXException
qname
- value to be serializedictx
- unmarshalling context
JiBXException
- on error in marshallingpublic static QName[] deserializeList(java.lang.String text, IUnmarshallingContext ictx) throws JiBXException
text
- value textictx
- unmarshalling context
JiBXException
- on error in marshallingpublic static java.lang.String serializeList(QName[] qnames, IMarshallingContext ictx) throws JiBXException
qnames
- array of names to be serializedictx
- unmarshalling context
JiBXException
- on error in marshalling
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |