Class QName
- java.lang.Object
-
- de.haumacher.msgbuf.data.AbstractDataObject
-
- de.haumacher.msgbuf.generator.ast.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.ObservableA dot-separated qualified name.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description QNameaddName(String value)Adds a value to thegetNames()list.static QNamecreate()Creates aQNameinstance.Objectget(String field)List<String>getNames()The parts that compose this qualified name.protected voidinternalAddName(String value)Implementation ofaddName(String)without chain call utility.protected voidinternalRegisterListener(de.haumacher.msgbuf.observer.Listener l)protected voidinternalSetNames(List<String> value)Internal setter forgetNames()without chain call utility.protected voidinternalUnregisterListener(de.haumacher.msgbuf.observer.Listener l)StringjsonType()List<String>properties()protected voidreadField(de.haumacher.msgbuf.json.JsonReader in, String field)static QNamereadQName(de.haumacher.msgbuf.json.JsonReader in)Reads a new instance from the given reader.QNameregisterListener(de.haumacher.msgbuf.observer.Listener l)voidremoveName(String value)Removes a value from thegetNames()list.voidset(String field, Object value)QNamesetNames(List<String> value)QNameunregisterListener(de.haumacher.msgbuf.observer.Listener l)protected voidwriteFields(de.haumacher.msgbuf.json.JsonWriter out)voidwriteTo(de.haumacher.msgbuf.json.JsonWriter out)
-
-
-
Field Detail
-
QNAME__TYPE
public static final String QNAME__TYPE
Identifier for theQNametype in JSON format.- See Also:
- Constant Field Values
-
NAMES
public static final String NAMES
- See Also:
getNames(), Constant Field Values
-
_listener
protected de.haumacher.msgbuf.observer.Listener _listener
-
-
Method Detail
-
setNames
public QName setNames(List<String> value)
- See Also:
getNames()
-
internalSetNames
protected final void internalSetNames(List<String> value)
Internal setter forgetNames()without chain call utility.
-
addName
public QName addName(String value)
Adds a value to thegetNames()list.
-
internalAddName
protected final void internalAddName(String value)
Implementation ofaddName(String)without chain call utility.
-
removeName
public final void removeName(String value)
Removes a value from thegetNames()list.
-
registerListener
public QName registerListener(de.haumacher.msgbuf.observer.Listener l)
- Specified by:
registerListenerin interfacede.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:
unregisterListenerin interfacede.haumacher.msgbuf.observer.Observable
-
internalUnregisterListener
protected final void internalUnregisterListener(de.haumacher.msgbuf.observer.Listener l)
-
jsonType
public String jsonType()
- Specified by:
jsonTypein interfacede.haumacher.msgbuf.data.ReflectiveDataObject
-
properties
public List<String> properties()
- Specified by:
propertiesin interfacede.haumacher.msgbuf.data.ReflectiveDataObject
-
get
public Object get(String field)
- Specified by:
getin interfacede.haumacher.msgbuf.data.ReflectiveDataObject
-
set
public void set(String field, Object value)
- Specified by:
setin interfacede.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:
writeToin interfacede.haumacher.msgbuf.data.DataObject- Throws:
IOException
-
writeFields
protected void writeFields(de.haumacher.msgbuf.json.JsonWriter out) throws IOException- Overrides:
writeFieldsin classde.haumacher.msgbuf.data.AbstractDataObject- Throws:
IOException
-
readField
protected void readField(de.haumacher.msgbuf.json.JsonReader in, String field) throws IOException- Overrides:
readFieldin classde.haumacher.msgbuf.data.AbstractDataObject- Throws:
IOException
-
-