|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.google.wave.api.Blip
public class Blip
A class that models a single blip instance. Blips are essentially the documents that make up a conversation, that contain annotations, content and elements.
| Method Summary | |
|---|---|
protected void |
addThread(BlipThread thread)
Adds the given BlipThread as a reply or inline reply thread. |
BlipContentRefs |
all()
Returns a reference to the entire content of the blip. |
BlipContentRefs |
all(ElementType target,
int maxResult,
Restriction... restrictions)
Returns all references to this blip's content that match target and
restrictions. |
BlipContentRefs |
all(ElementType target,
Restriction... restrictions)
Returns all references to this blip's content that match target and
restrictions. |
BlipContentRefs |
all(java.lang.String target)
Returns all references to this blip's content that match target. |
BlipContentRefs |
all(java.lang.String target,
int maxResult)
Returns all references to this blip's content that match target. |
BlipContentRefs |
append(BlipContent argument)
Appends the given argument (element, text, or markup) to the blip. |
BlipContentRefs |
append(java.lang.String argument)
Appends the given string to the blip. |
void |
appendMarkup(java.lang.String markup)
Appends markup ( HTML) content. |
BlipContentRefs |
at(int index)
Returns the reference to this blip's content at the specified index. |
Blip |
continueThread()
Continues the containing thread of this blip.. |
protected void |
deleteAnnotations(int start,
int end)
Deletes all annotations that span from start to end. |
protected void |
deleteChildBlipId(java.lang.String childBlipId)
Deletes the given blip id from the list of child blip ids. |
static Blip |
deserialize(OperationQueue operationQueue,
Wavelet wavelet,
BlipData blipData)
Deserializes the given BlipData object into an instance of
Blip. |
BlipContentRefs |
first(ElementType target,
Restriction... restrictions)
Returns the first reference to this blip's content that matches target and restrictions. |
BlipContentRefs |
first(java.lang.String target)
Returns the first reference to this blip's content that matches target. |
Annotations |
getAnnotations()
Returns the annotations for this blip's content. |
java.lang.String |
getBlipId()
Returns the id of this blip. |
java.util.List<java.lang.String> |
getChildBlipIds()
Returns the list of ids of this blip children. |
java.util.List<Blip> |
getChildBlips()
Returns the list of child blips. |
java.lang.String |
getContent()
Returns the text content of this blip. |
java.util.List<java.lang.String> |
getContributors()
Returns the participant ids of the contributors of this blip. |
java.lang.String |
getCreator()
Returns the participant id of the creator of this blip. |
java.util.SortedMap<java.lang.Integer,Element> |
getElements()
Returns the elements content of this blip. |
int |
getInlineBlipOffset()
Deprecated. please use getThread().getLocation() to get the offset
of the inline reply thread that contains this blip. |
java.util.Collection<BlipThread> |
getInlineReplyThreads()
|
long |
getLastModifiedTime()
Returns the last modified time of this blip. |
protected OperationQueue |
getOperationQueue()
Returns the operation queue for sending outgoing operations to the robot proxy. |
Blip |
getParentBlip()
Returns the parent blip. |
java.lang.String |
getParentBlipId()
Returns the id of this blip's parent, or null if this blip is in
the root thread. |
java.util.Collection<BlipThread> |
getReplyThreads()
|
BlipThread |
getThread()
|
long |
getVersion()
Returns the version of this blip. |
WaveId |
getWaveId()
Returns the id of the wave that owns this blip. |
Wavelet |
getWavelet()
Returns the wavelet that owns this Blip. |
WaveletId |
getWaveletId()
Returns the id of the wavelet that owns this blip. |
Blip |
insertInlineBlip(int position)
Inserts an inline blip at the given position. |
boolean |
isRoot()
Checks whether this is a root blip or not. |
int |
length()
Returns the length/size of the blip, denoted by the length of this blip's text content. |
Blip |
proxyFor(java.lang.String proxyForId)
Returns a view of this blip that will proxy for the specified id. |
BlipContentRefs |
range(int start,
int end)
Returns the reference to this blip's content at the specified range. |
protected void |
removeThread(BlipThread thread)
Removes the given BlipThread from the reply or inline reply thread. |
Blip |
reply()
Creates a reply to this blip. |
BlipData |
serialize()
Serializes this Blip into a BlipData. |
protected void |
shift(int position,
int shiftAmount)
Moves all elements and annotations after the given position by shiftAmount. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String getBlipId()
public WaveId getWaveId()
public WaveletId getWaveletId()
public java.util.List<java.lang.String> getChildBlipIds()
public java.util.List<Blip> getChildBlips()
public java.util.Collection<BlipThread> getInlineReplyThreads()
public java.util.Collection<BlipThread> getReplyThreads()
public java.util.List<java.lang.String> getContributors()
public java.lang.String getCreator()
public long getLastModifiedTime()
public long getVersion()
public java.lang.String getParentBlipId()
null if this blip is in
the root thread.
public Blip getParentBlip()
public BlipThread getThread()
public boolean isRoot()
true if this is a root blip, denoted by null parent
id.public Annotations getAnnotations()
public java.util.SortedMap<java.lang.Integer,Element> getElements()
public java.lang.String getContent()
public int length()
public Wavelet getWavelet()
protected OperationQueue getOperationQueue()
public BlipContentRefs all()
BlipContentRefs.public BlipContentRefs all(java.lang.String target)
target.
target - the text to search for.
BlipContentRefs.
public BlipContentRefs all(java.lang.String target,
int maxResult)
target.
This blip references object will have at most maxResult hits.
target - the text to search for.maxResult - the maximum number of hits. Specify -1 for no limit.
BlipContentRefs.
public BlipContentRefs all(ElementType target,
Restriction... restrictions)
target and
restrictions.
target - the element type to search for.restrictions - the element properties that need to be matched.
BlipContentRefs.
public BlipContentRefs all(ElementType target,
int maxResult,
Restriction... restrictions)
target and
restrictions. This blip references object will have at most
maxResult hits.
target - the element type to search for.maxResult - the maximum number of hits. Specify -1 for no limit.restrictions - the element properties that need to be matched.
BlipContentRefs.public BlipContentRefs first(java.lang.String target)
target.
target - the text to search for.
BlipContentRefs.
public BlipContentRefs first(ElementType target,
Restriction... restrictions)
target and restrictions.
target - the type of element to search for.restrictions - the list of restrictions to filter the search.
BlipContentRefs.public BlipContentRefs at(int index)
index - the index to reference.
BlipContentRefs.
public BlipContentRefs range(int start,
int end)
start - the start index of the range to reference.end - the end index of the range to reference.
BlipContentRefs.public BlipContentRefs append(BlipContent argument)
argument - the element, text, or markup to be appended.
BlipContentRefs.public BlipContentRefs append(java.lang.String argument)
argument - the string to be appended.
BlipContentRefs.public Blip reply()
Blip that represents a reply to the blip.public Blip continueThread()
Blip that represents a the new continuation
reply blip.public Blip insertInlineBlip(int position)
position - the index to insert the inline blip at. This has to be
greater than 0.
Blip that represents the new inline blip.public void appendMarkup(java.lang.String markup)
HTML) content.
markup - the markup content to add.public Blip proxyFor(java.lang.String proxyForId)
proxyingFor
field set. Any modifications made to this copy will be done using the
proxyForId, i.e. the robot+<proxyForId>@appspot.com address
will be used.
proxyForId - the id to proxy. Please note that this parameter should
be properly encoded to ensure that the resulting participant id is
valid (see Util.checkIsValidProxyForId(String) for more
details).
@Deprecated public int getInlineBlipOffset()
getThread().getLocation() to get the offset
of the inline reply thread that contains this blip.
protected void shift(int position,
int shiftAmount)
shiftAmount.
position - the anchor position.shiftAmount - the amount to shift the annotations range and elements
position.
protected void deleteAnnotations(int start,
int end)
start to end.
start - the start position.end - the end position.protected void deleteChildBlipId(java.lang.String childBlipId)
childBlipId - the blip id to delete.protected void addThread(BlipThread thread)
BlipThread as a reply or inline reply thread.
thread - the new thread to add.protected void removeThread(BlipThread thread)
BlipThread from the reply or inline reply thread.
thread - the new thread to remove.public BlipData serialize()
Blip into a BlipData.
BlipData that represents this blip.
public static Blip deserialize(OperationQueue operationQueue,
Wavelet wavelet,
BlipData blipData)
BlipData object into an instance of
Blip.
operationQueue - the operation queue.wavelet - the wavelet that owns this blip.blipData - the blip data to be deserialized.
Wavelet.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||