Package io.keikai.doc.collab.types
Class YXmlText
- java.lang.Object
-
- io.keikai.doc.collab.types.AbstractType<YTextEvent>
-
- io.keikai.doc.collab.types.YText
-
- io.keikai.doc.collab.types.YXmlText
-
public class YXmlText extends YText
Represents text in a Dom Element. In the future this type will also handle simple formatting information like bold and italic.
-
-
Field Summary
-
Fields inherited from class io.keikai.doc.collab.types.AbstractType
_doc, _length, _map, _searchMarker
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description YXmlTextclone()Makes a copy of this data type that can be included somewhere else.YXmlTextcopy()YXmlElementgetNextSibling()YXmlElementgetPrevSibling()static YXmlTextreadYXmlText(UpdateDecoder decoder)Overloaded method for reading with UpdateDecoderV1java.lang.StringtoJSON()Converts the type to a JSON object representation.java.lang.StringtoString()voidwrite(UpdateEncoder encoder)Writes this type's state to the encoder.-
Methods inherited from class io.keikai.doc.collab.types.YText
applyDelta, applyDelta, callObserver, cleanupYTextAfterTransaction, cleanupYTextFormatting, delete, delete, equalAttrs, findNextPosition, format, getAttribute, getAttributes, getSearchMarker, insert, insert, insertEmbed, insertEmbed, insertNegatedAttributes, integrate, isHasFormatting, length, readYText, removeAttribute, setAttribute, setHasFormatting, setSearchMarker, toDeltaList, toDeltaList, toDeltaMap, toDeltaMap
-
Methods inherited from class io.keikai.doc.collab.types.AbstractType
callTypeObservers, createMapIterator, getDeepEventHandler, getDoc, getFirst, getItem, getMap, getParent, getStart, getTypeChildren, isParentOf, observe, observe, observeDeep, setLength, setMap, setStart, typeListCreateIterator, typeListDelete, typeListForEach, typeListForEachSnapshot, typeListGet, typeListInsertGenerics, typeListInsertGenericsAfter, typeListMap, typeListPushGenerics, typeListSlice, typeListToArray, typeListToArraySnapshot, typeMapDelete, typeMapGet, typeMapGetAll, typeMapGetAllSnapshot, typeMapGetSnapshot, typeMapHas, typeMapSet, unobserve, unobserveDeep
-
-
-
-
Method Detail
-
getNextSibling
public YXmlElement getNextSibling()
- Returns:
- YXmlElement or YXmlText|null
-
getPrevSibling
public YXmlElement getPrevSibling()
- Returns:
- YXmlElement or YXmlText|null
-
clone
public YXmlText clone()
Makes a copy of this data type that can be included somewhere else. Note that the content is only readable _after_ it has been included somewhere in the Ydoc.
-
toJSON
public java.lang.String toJSON()
Description copied from class:AbstractTypeConverts the type to a JSON object representation.
-
write
public void write(UpdateEncoder encoder)
Description copied from class:AbstractTypeWrites this type's state to the encoder.
-
readYXmlText
public static YXmlText readYXmlText(UpdateDecoder decoder)
Overloaded method for reading with UpdateDecoderV1- Parameters:
decoder- The decoder to read data from.- Returns:
- YXmlText
-
-