Class QName


  • public class QName
    extends Object
    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
    • Constructor Detail

      • QName

        public QName()
        Default constructor.
      • QName

        public QName​(String uri,
                     String prefix,
                     String name)
        Constructor from full set of components.
        Parameters:
        uri - Namespace URL
        prefix - Prefix
        name - namespace
    • Method Detail

      • getName

        public String getName()
        Get local name.
        Returns:
        name
      • setName

        public void setName​(String name)
        Set local name.
        Parameters:
        name - name
      • getPrefix

        public String getPrefix()
        Get namespace prefix.
        Returns:
        prefix
      • setPrefix

        public void setPrefix​(String prefix)
        Set namespace prefix.
        Parameters:
        prefix - prefix
      • getUri

        public String getUri()
        Get namespace URI.
        Returns:
        uri
      • setUri

        public void setUri​(String uri)
        Set namespace URI.
        Parameters:
        uri - uri
      • deserialize

        public static QName deserialize​(String text,
                                        org.jibx.runtime.IUnmarshallingContext ictx)
                                 throws org.jibx.runtime.JiBXException
        JiBX deserializer method. This is intended for use as a deserializer for instances of the class.
        Parameters:
        text - value text
        ictx - unmarshalling context
        Returns:
        created class instance
        Throws:
        org.jibx.runtime.JiBXException - on error in unmarshalling
      • serialize

        public static String serialize​(QName qname,
                                       org.jibx.runtime.IMarshallingContext ictx)
                                throws org.jibx.runtime.JiBXException
        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 serialized
        ictx - unmarshalling context
        Returns:
        created class instance
        Throws:
        org.jibx.runtime.JiBXException - on error in marshalling