|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.agent.conversation.content.Content
This class encapsulates content information in the form:
this has an attribute with a value of value
In general, the information contained within a Content object is
either: a) Other Content objects (forming a tree like structure);
b) Double objects; c) Long objects; or d) String objects (anything
which doesn't fit catergories a-c).
XMLDataBinding
Constructor Summary | |
Content()
Deprecated. Creates a completely blank Content object with no attributes and no name |
|
Content(Content c)
Deprecated. This Constructor will clone the structure of the Content object given in a manner which completely decouples this from the given Content object (i.e. |
|
Content(java.util.Map content)
Deprecated. Constructs a Content object using the given Map as a basis for the internal data structure. |
|
Content(java.lang.String name)
Deprecated. Creates a completely blank Content object with the given name |
Method Summary | |
void |
addAttribute(java.lang.String name,
java.util.List value)
Deprecated. This method associates the specified values with the specified attribute. |
void |
addAttribute(java.lang.String name,
java.lang.Object value)
Deprecated. This method associates the specified value with the specified attribute. |
java.lang.Object |
getAttribute(java.lang.String name)
Deprecated. This method returns the value to which the given attribute maps to. |
java.util.Set |
getAttributeNames()
Deprecated. This method returns a Set of the attribute names contained in this Content object. |
java.lang.String |
getName()
Deprecated. Method to get the name of this Content object |
boolean |
isEmpty()
Deprecated. This method indicates if this Content object has no attributes associated with it. |
void |
removeAttribute(java.lang.String name)
Deprecated. This method removes the mapping for this attribute from this if it is present. |
void |
setAttribute(java.lang.String name,
java.util.List values)
Deprecated. This method associates the specified values with the specified attribute. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Deprecated. This method associates the specified value with the specified attribute. |
java.lang.String |
toString()
Deprecated. This is the public toString method which returns a String. |
java.lang.String |
toString(java.lang.String pre)
Deprecated. This is a toString method which returns a String representation of this, each line pre-fixed with the given String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Content()
public Content(java.lang.String name)
name
- The name of this particular Content objectpublic Content(java.util.Map content)
content
- The Map upon which the internal data structure should be basedpublic Content(Content c)
content
- The Content object to "clone"Method Detail |
public java.util.Set getAttributeNames()
public void addAttribute(java.lang.String name, java.lang.Object value)
addAttribute() does not overwrite attributes. It is suggested that if this is the desired operation, setAttribute() is used instead.
name
- The attribute name to add the value tovalue
- The value to associate with the attributepublic void addAttribute(java.lang.String name, java.util.List value)
addAttribute() does not overwrite attributes. It is suggested that if this is the desired operation, setAttribute() is used instead.
name
- The attribute name to add the value tovalues
- The values to associate with the attributepublic void setAttribute(java.lang.String name, java.lang.Object value)
name
- The attribute name to add the value tovalue
- The value to associate with the attributepublic void setAttribute(java.lang.String name, java.util.List values)
name
- The attribute name to add the value tovalues
- The values to associate with the attributepublic void removeAttribute(java.lang.String name)
name
- The name of the attribute to removepublic java.lang.Object getAttribute(java.lang.String name)
name
- The name of the attribute for which to retreive the associated valuepublic java.lang.String getName()
public boolean isEmpty()
public java.lang.String toString(java.lang.String pre)
pre
- The String to prefix to each line of the created Stringpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |