Uses of Class
io.keikai.doc.collab.types.AbstractType
-
Packages that use AbstractType Package Description io.keikai.doc.collab.structs io.keikai.doc.collab.types io.keikai.doc.collab.utils -
-
Uses of AbstractType in io.keikai.doc.collab.structs
Methods in io.keikai.doc.collab.structs that return AbstractType Modifier and Type Method Description AbstractTypeContentType. getType()Constructors in io.keikai.doc.collab.structs with parameters of type AbstractType Constructor Description ContentType(AbstractType type) -
Uses of AbstractType in io.keikai.doc.collab.types
Subclasses of AbstractType in io.keikai.doc.collab.types Modifier and Type Class Description classYArray<T>A shared Array implementation.classYMap<T>A shared Map implementation.classYTextType that represents text with formatting information.classYXmlElement<T>classYXmlFragment<T>Represents a list ofYXmlElement.andYXmlTexttypes.classYXmlHook<T>classYXmlTextRepresents text in a Dom Element.Methods in io.keikai.doc.collab.types with type parameters of type AbstractType Modifier and Type Method Description static <T extends AbstractType>
voidAbstractType. typeListForEach(T type, TriConsumer<java.lang.Object,java.lang.Integer,T> f)Executes a provided function on every element of the type.Methods in io.keikai.doc.collab.types that return AbstractType Modifier and Type Method Description AbstractTypeAbstractType. clone()Makes a copy of this data type that can be included somewhere else.AbstractTypeAbstractType. copy()AbstractTypeYXmlFragment. getFirstChild()AbstractTypeYXmlElement. getNextSibling()AbstractTypeAbstractType. getParent()AbstractTypeYXmlElement. getPrevSibling()AbstractTypeYXmlTreeWalkerResult. getValue()AbstractTypeYXmlFragment. querySelector(java.lang.String query)Returns the first YXmlElement that matches the query.Methods in io.keikai.doc.collab.types that return types with arguments of type AbstractType Modifier and Type Method Description java.util.List<AbstractType>YXmlFragment. querySelectorAll(java.lang.String query)Returns all YXmlElements that match the query.Methods in io.keikai.doc.collab.types with parameters of type AbstractType Modifier and Type Method Description static <T extends YEvent>
voidAbstractType. callTypeObservers(AbstractType type, Transaction transaction, T event)Calls event listeners with an event and propagates to all parents.static ArraySearchMarkerArraySearchMarker. findMarker(AbstractType yArray, int index)Finds a marker for the given index in an AbstractType.static java.util.List<Item>AbstractType. getTypeChildren(AbstractType t)Retrieves all children of a type as a list.static voidYText. insertNegatedAttributes(Transaction transaction, AbstractType parent, ItemTextListPosition currPos, java.util.Map<java.lang.String,java.lang.Object> negatedAttributes)static booleanAbstractType. isParentOf(AbstractType parent, Item child)Check if `parent` is a parent of `child`.static java.util.Iterator<?>AbstractType. typeListCreateIterator(AbstractType type)Creates an iterator for the elements in the type.static voidAbstractType. typeListDelete(Transaction transaction, AbstractType parent, int index, int length)Deletes content from the type at the specified index and length.static voidAbstractType. typeListForEachSnapshot(AbstractType type, TriConsumer<java.lang.Object,java.lang.Integer,AbstractType> f, Snapshot snapshot)Executes a provided function on every element of the type, based on the provided snapshot.static java.lang.ObjectAbstractType. typeListGet(AbstractType type, int index)Gets the element at the specified index in the type.static voidAbstractType. typeListInsertGenerics(Transaction transaction, AbstractType parent, int index, java.util.List<?> content)Inserts generic content at a specified index in the type.static voidAbstractType. typeListInsertGenericsAfter(Transaction transaction, AbstractType parent, Item referenceItem, java.util.List<?> content)Inserts generic content after a specified item in the type.static <C,R>
java.util.List<R>AbstractType. typeListMap(AbstractType type, TriFunction<C,java.lang.Number,AbstractType,R> f)Maps the elements in the type to a new list using the provided function.static voidAbstractType. typeListPushGenerics(Transaction transaction, AbstractType parent, java.util.List<?> content)Pushes generic content to the end of the type.static java.util.List<java.lang.Object>AbstractType. typeListSlice(AbstractType type, int start, int end)Slices the list elements within the provided range.static java.util.List<java.lang.Object>AbstractType. typeListToArray(AbstractType type)Converts the list of elements in the type to an array.static java.util.List<java.lang.Object>AbstractType. typeListToArraySnapshot(AbstractType type, Snapshot snapshot)Converts the list of elements in the type to an array based on the provided snapshot.static voidAbstractType. typeMapDelete(Transaction transaction, AbstractType parent, java.lang.String key)Deletes a key from the type's map.static java.lang.ObjectAbstractType. typeMapGet(AbstractType parent, java.lang.String key)Gets a value from the type's map by key.static java.util.Map<java.lang.String,java.lang.Object>AbstractType. typeMapGetAll(AbstractType parent)Gets all key-value pairs from the type's map.static java.util.Map<java.lang.String,java.lang.Object>AbstractType. typeMapGetAllSnapshot(AbstractType parent, Snapshot snapshot)Gets all key-value pairs from the type's map for a specific snapshot.static java.lang.ObjectAbstractType. typeMapGetSnapshot(AbstractType parent, java.lang.String key, Snapshot snapshot)Gets a value from the type's map by key for a specific snapshot.static booleanAbstractType. typeMapHas(AbstractType parent, java.lang.String key)Checks if the type's map contains a key.static voidAbstractType. typeMapSet(Transaction transaction, AbstractType parent, java.lang.String key, java.lang.Object value)Sets a value in the type's map.Method parameters in io.keikai.doc.collab.types with type arguments of type AbstractType Modifier and Type Method Description YXmlTreeWalkerYXmlFragment. createTreeWalker(java.util.function.Function<AbstractType,java.lang.Boolean> filter)Create a subtree of childNodes.voidYXmlFragment. forEach(TriConsumer<java.lang.Object,java.lang.Integer,AbstractType> f)Executes a provided function once on every child element.<M> java.util.List<M>YArray. map(TriFunction<T,java.lang.Number,AbstractType,M> f)Returns a List with the result of calling a provided function on every element of this YArray.static voidAbstractType. typeListForEachSnapshot(AbstractType type, TriConsumer<java.lang.Object,java.lang.Integer,AbstractType> f, Snapshot snapshot)Executes a provided function on every element of the type, based on the provided snapshot.static <C,R>
java.util.List<R>AbstractType. typeListMap(AbstractType type, TriFunction<C,java.lang.Number,AbstractType,R> f)Maps the elements in the type to a new list using the provided function.Constructors in io.keikai.doc.collab.types with parameters of type AbstractType Constructor Description YXmlTreeWalker(AbstractType root, java.util.function.Function<AbstractType,java.lang.Boolean> filter)YXmlTreeWalkerResult(AbstractType value, boolean done)Constructor parameters in io.keikai.doc.collab.types with type arguments of type AbstractType Constructor Description YXmlTreeWalker(AbstractType root, java.util.function.Function<AbstractType,java.lang.Boolean> filter) -
Uses of AbstractType in io.keikai.doc.collab.utils
Fields in io.keikai.doc.collab.utils declared as AbstractType Modifier and Type Field Description protected AbstractTypeYEvent. _currentTargetThe current target on which the observe callback is called.protected AbstractTypeYEvent. _targetThe type on which this event was created on.Methods in io.keikai.doc.collab.utils with type parameters of type AbstractType Modifier and Type Method Description <T extends AbstractType>
TDoc. get(java.lang.String name, java.lang.Class<? extends AbstractType> typeClz)Define a shared data type.Methods in io.keikai.doc.collab.utils that return AbstractType Modifier and Type Method Description AbstractTypeYEvent. getTarget()AbstractTypeAbsolutePosition. getType()Methods in io.keikai.doc.collab.utils that return types with arguments of type AbstractType Modifier and Type Method Description java.util.Map<AbstractType,java.util.Set<java.lang.String>>Transaction. getChanged()java.util.Map<AbstractType,java.util.List<YEvent>>StackItemEvent. getChangedParentTypes()java.util.Map<AbstractType,java.util.List<YEvent>>Transaction. getChangedParentTypes()java.util.List<AbstractType>UndoManager. getScope()java.util.Map<java.lang.String,AbstractType>Doc. getShare()Methods in io.keikai.doc.collab.utils with parameters of type AbstractType Modifier and Type Method Description static voidTransaction. addChangedTypeToTransaction(Transaction transaction, AbstractType type, java.lang.String parentSub)Adds a changed type to the transaction.voidUndoManager. addToScope(AbstractType yType)static AbsolutePositionRelativePosition. createAbsolutePosition(AbstractType type, int index, int assoc)Create an AbsolutePosition.static RelativePositionRelativePosition. createRelativePosition(AbstractType type, ID item, int assoc)Create a RelativePosition from an AbstractType and an item ID.static RelativePositionRelativePosition. createRelativePositionFromTypeIndex(AbstractType type, int index)Create a RelativePosition based on an absolute position.static RelativePositionRelativePosition. createRelativePositionFromTypeIndex(AbstractType type, int index, int assoc)Create a RelativePosition based on an absolute position.static java.lang.StringID. findRootTypeKey(AbstractType type)The top types are mapped from y.share.get(keyname) => type.voidYEvent. setCurrentTarget(AbstractType currentTarget)Method parameters in io.keikai.doc.collab.utils with type arguments of type AbstractType Modifier and Type Method Description voidUndoManager. addToScope(java.util.List<AbstractType> yTypes)<T extends AbstractType>
TDoc. get(java.lang.String name, java.lang.Class<? extends AbstractType> typeClz)Define a shared data type.Constructors in io.keikai.doc.collab.utils with parameters of type AbstractType Constructor Description AbsolutePosition(AbstractType type, int index)Constructor for AbsolutePosition with default association value.AbsolutePosition(AbstractType type, int index, int assoc)Constructor for AbsolutePosition.UndoManager(AbstractType typeScope)UndoManager(AbstractType typeScope, UndoManagerOptions options)YEvent(AbstractType target, Transaction transaction)Constructor parameters in io.keikai.doc.collab.utils with type arguments of type AbstractType Constructor Description StackItemEvent(StackItem stackItem, java.lang.Object origin, java.lang.String type, java.util.Map<AbstractType,java.util.List<YEvent>> changedParentTypes)UndoManager(java.util.List<AbstractType> typeScopes)UndoManager(java.util.List<AbstractType> typeScopes, UndoManagerOptions options)
-