|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.google.wave.api.BlipContent
com.google.wave.api.Element
public class Element
Elements are non-text content within a document. What the represent is generally abstracted from the Robot. Although a Robot can query the properties of an element it can only interact with the specific types that the element represents.
| Constructor Summary | |
|---|---|
Element(ElementType type)
Creates an element of the given type. |
|
Element(ElementType type,
java.util.Map<java.lang.String,java.lang.String> properties)
Constructs an Element of the given type with an initial set of properties. |
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Returns the map of properties for this element. |
java.lang.String |
getProperty(java.lang.String name)
Returns the named property of this element. |
java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
Returns the named property of this element, or the default value if the property was not found. |
java.lang.String |
getText()
Returns the textual representation of of this blip content, for example, if it's an element, it returns a space. |
ElementType |
getType()
Returns the type of the element. |
boolean |
isAttachment()
Returns whether this element is an attachment. |
boolean |
isFormElement()
Returns whether this element is a form element. |
boolean |
isGadget()
Returns whether this element is a gadget. |
boolean |
isImage()
Returns whether this element is an image. |
boolean |
isInlineBlip()
Returns whether this element is an inline blip. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Creates/replaces a property with the given to a new value. |
java.lang.String |
toString()
|
| Methods inherited from class com.google.wave.api.BlipContent |
|---|
asElement, asPlaintext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Element(ElementType type)
type - the type of element to construct.
public Element(ElementType type,
java.util.Map<java.lang.String,java.lang.String> properties)
type - the type of element to construct.properties - the properties of the element.| Method Detail |
|---|
public ElementType getType()
public java.util.Map<java.lang.String,java.lang.String> getProperties()
public void setProperty(java.lang.String name,
java.lang.String value)
name - the name of the property to create/replace.value - the value to be set on this property.public java.lang.String getProperty(java.lang.String name)
name - the name of the property.
public java.lang.String getProperty(java.lang.String name,
java.lang.String defaultValue)
name - the name of the property.defaultValue - the default value of the property.
public boolean isFormElement()
public boolean isGadget()
public boolean isInlineBlip()
public boolean isImage()
public boolean isAttachment()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getText()
BlipContent
getText in class BlipContent
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||