Class QName

  • All Implemented Interfaces:
    de.haumacher.msgbuf.data.DataObject, de.haumacher.msgbuf.data.ReflectiveDataObject, de.haumacher.msgbuf.observer.Observable

    public class QName
    extends de.haumacher.msgbuf.data.AbstractDataObject
    implements de.haumacher.msgbuf.observer.Observable
    A dot-separated qualified name.
    • Constructor Detail

      • QName

        protected QName()
        Creates a QName instance.
        See Also:
        create()
    • Method Detail

      • create

        public static QName create()
        Creates a QName instance.
      • getNames

        public final List<String> getNames()
        The parts that compose this qualified name.
      • internalSetNames

        protected final void internalSetNames​(List<String> value)
        Internal setter for getNames() without chain call utility.
      • internalAddName

        protected final void internalAddName​(String value)
        Implementation of addName(String) without chain call utility.
      • removeName

        public final void removeName​(String value)
        Removes a value from the getNames() list.
      • registerListener

        public QName registerListener​(de.haumacher.msgbuf.observer.Listener l)
        Specified by:
        registerListener in interface de.haumacher.msgbuf.observer.Observable
      • internalRegisterListener

        protected final void internalRegisterListener​(de.haumacher.msgbuf.observer.Listener l)
      • unregisterListener

        public QName unregisterListener​(de.haumacher.msgbuf.observer.Listener l)
        Specified by:
        unregisterListener in interface de.haumacher.msgbuf.observer.Observable
      • internalUnregisterListener

        protected final void internalUnregisterListener​(de.haumacher.msgbuf.observer.Listener l)
      • jsonType

        public String jsonType()
        Specified by:
        jsonType in interface de.haumacher.msgbuf.data.ReflectiveDataObject
      • properties

        public List<String> properties()
        Specified by:
        properties in interface de.haumacher.msgbuf.data.ReflectiveDataObject
      • get

        public Object get​(String field)
        Specified by:
        get in interface de.haumacher.msgbuf.data.ReflectiveDataObject
      • set

        public void set​(String field,
                        Object value)
        Specified by:
        set in interface de.haumacher.msgbuf.data.ReflectiveDataObject
      • readQName

        public static QName readQName​(de.haumacher.msgbuf.json.JsonReader in)
                               throws IOException
        Reads a new instance from the given reader.
        Throws:
        IOException
      • writeTo

        public final void writeTo​(de.haumacher.msgbuf.json.JsonWriter out)
                           throws IOException
        Specified by:
        writeTo in interface de.haumacher.msgbuf.data.DataObject
        Throws:
        IOException
      • writeFields

        protected void writeFields​(de.haumacher.msgbuf.json.JsonWriter out)
                            throws IOException
        Overrides:
        writeFields in class de.haumacher.msgbuf.data.AbstractDataObject
        Throws:
        IOException
      • readField

        protected void readField​(de.haumacher.msgbuf.json.JsonReader in,
                                 String field)
                          throws IOException
        Overrides:
        readField in class de.haumacher.msgbuf.data.AbstractDataObject
        Throws:
        IOException