Keel 2.1RC2

org.keel.comm
Class AbstractMessageResponseElement

java.lang.Object
  extended byorg.keel.comm.AbstractMessageResponseElement
All Implemented Interfaces:
ResponseElement, java.io.Serializable
Direct Known Subclasses:
CommandMessage, InputMessage, OutputMessage

public class AbstractMessageResponseElement
extends java.lang.Object
implements ResponseElement, java.io.Serializable

This class is the superclass for all ResponseElement implementations in this package. It provides the attribute and nested element handling that all response elements have in common, and checks the parameters to ensure they are serializable versions

See Also:
Serialized Form

Field Summary
private  java.util.Map attributes
           
private  java.lang.String name
           
private  java.util.List nestedElements
           
 
Constructor Summary
AbstractMessageResponseElement()
           
 
Method Summary
 void add(ResponseElement re)
           
protected  void copyFrom(ResponseElement re)
           
 java.util.List getAll()
           
 java.lang.Object getAttribute(java.lang.String key)
           
 java.util.Map getAttributes()
           
 java.lang.String getName()
           
 void remove(ResponseElement re)
           
 void removeAttribute(java.lang.String key)
           
 void setAttribute(java.lang.String key, java.lang.Object value)
          Set the value of an attribute of this element
 void setName(java.lang.String newName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name

nestedElements

private java.util.List nestedElements

attributes

private java.util.Map attributes
Constructor Detail

AbstractMessageResponseElement

public AbstractMessageResponseElement()
Method Detail

removeAttribute

public void removeAttribute(java.lang.String key)
Specified by:
removeAttribute in interface ResponseElement

add

public void add(ResponseElement re)
Specified by:
add in interface ResponseElement

remove

public void remove(ResponseElement re)
Specified by:
remove in interface ResponseElement

setAttribute

public void setAttribute(java.lang.String key,
                         java.lang.Object value)
Description copied from interface: ResponseElement
Set the value of an attribute of this element

Specified by:
setAttribute in interface ResponseElement

getAttribute

public java.lang.Object getAttribute(java.lang.String key)
Specified by:
getAttribute in interface ResponseElement

getAttributes

public java.util.Map getAttributes()
Specified by:
getAttributes in interface ResponseElement

setName

public void setName(java.lang.String newName)
Specified by:
setName in interface ResponseElement

getName

public java.lang.String getName()
Specified by:
getName in interface ResponseElement

getAll

public java.util.List getAll()
Specified by:
getAll in interface ResponseElement

copyFrom

protected void copyFrom(ResponseElement re)

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.