Index
All Classes and Interfaces|All Packages
A
- applyChanges(YXmlFragment, List<DocumentDiff.Change>, Schema) - Static method in class net.carcdr.yprosemirror.IncrementalUpdater
-
Applies a list of changes to a Y-CRDT fragment.
- at(int) - Static method in class net.carcdr.yprosemirror.YPosition
-
Creates a position at the given offset in the root fragment.
- at(int[], int) - Static method in class net.carcdr.yprosemirror.YPosition
-
Creates a position with a custom path.
- at(int, int) - Static method in class net.carcdr.yprosemirror.YPosition
-
Creates a position at the given offset within a child element.
C
- Change(YPosition) - Constructor for class net.carcdr.yprosemirror.DocumentDiff.Change
- child(int, int) - Method in class net.carcdr.yprosemirror.YPosition
-
Creates a new position by appending a child index to this position's path.
- close() - Method in class net.carcdr.yprosemirror.YProseMirrorBinding
-
Closes this binding and releases resources.
D
- Delete(YPosition, int) - Constructor for class net.carcdr.yprosemirror.DocumentDiff.Delete
- diff(Node, Node) - Static method in class net.carcdr.yprosemirror.DocumentDiff
-
Computes the differences between two ProseMirror documents.
- DocumentDiff - Class in net.carcdr.yprosemirror
-
Computes the differences between two ProseMirror documents.
- DocumentDiff.Change - Class in net.carcdr.yprosemirror
-
Represents a single change operation in a document.
- DocumentDiff.Delete - Class in net.carcdr.yprosemirror
-
Represents content deletion at a specific position.
- DocumentDiff.Insert - Class in net.carcdr.yprosemirror
-
Represents content insertion at a specific position.
- DocumentDiff.Replace - Class in net.carcdr.yprosemirror
-
Represents content modification at a specific position.
E
- equals(Object) - Method in class net.carcdr.yprosemirror.YPosition
F
- fragmentToYXml(Fragment, YXmlFragment, Schema) - Static method in class net.carcdr.yprosemirror.ProseMirrorConverter
-
Converts a ProseMirror Fragment to a YXmlFragment.
G
- getContent() - Method in class net.carcdr.yprosemirror.DocumentDiff.Insert
-
Gets the content to insert.
- getCurrentDocument() - Method in class net.carcdr.yprosemirror.YProseMirrorBinding
-
Gets the current ProseMirror document from Y-CRDT.
- getDepth() - Method in class net.carcdr.yprosemirror.YPosition
-
Gets the depth of this position in the document tree.
- getLength() - Method in class net.carcdr.yprosemirror.DocumentDiff.Delete
-
Gets the number of items to delete.
- getNewContent() - Method in class net.carcdr.yprosemirror.DocumentDiff.Replace
-
Gets the new content.
- getOffset() - Method in class net.carcdr.yprosemirror.YPosition
-
Gets the offset within the container at this position.
- getOldContent() - Method in class net.carcdr.yprosemirror.DocumentDiff.Replace
-
Gets the old content being replaced.
- getPath() - Method in class net.carcdr.yprosemirror.YPosition
-
Gets the path through the document tree.
- getPosition() - Method in class net.carcdr.yprosemirror.DocumentDiff.Change
-
Gets the position where this change occurs.
- getSchema() - Method in class net.carcdr.yprosemirror.YProseMirrorBinding
-
Gets the ProseMirror schema.
- getYFragment() - Method in class net.carcdr.yprosemirror.YProseMirrorBinding
-
Gets the bound Y-CRDT fragment.
H
- hashCode() - Method in class net.carcdr.yprosemirror.YPosition
I
- IncrementalUpdater - Class in net.carcdr.yprosemirror
-
Applies incremental updates to Y-CRDT structures based on document diffs.
- Insert(YPosition, Node) - Constructor for class net.carcdr.yprosemirror.DocumentDiff.Insert
- isClosed() - Method in class net.carcdr.yprosemirror.YProseMirrorBinding
-
Checks if this binding is closed.
- isRoot() - Method in class net.carcdr.yprosemirror.YPosition
-
Checks if this position is in the root fragment.
N
- net.carcdr.yprosemirror - package net.carcdr.yprosemirror
- nodeToYXml(Node, YXmlFragment, Schema) - Static method in class net.carcdr.yprosemirror.ProseMirrorConverter
-
Converts a ProseMirror Node to a YXmlFragment.
P
- parent() - Method in class net.carcdr.yprosemirror.YPosition
-
Creates a new position by removing the last element from the path (moving to parent).
- position - Variable in class net.carcdr.yprosemirror.DocumentDiff.Change
- ProseMirrorConverter - Class in net.carcdr.yprosemirror
-
Converts ProseMirror documents to Y-CRDT structures.
- prosemirrorToYDoc(Node, Schema) - Static method in class net.carcdr.yprosemirror.ProseMirrorConverter
-
Converts a ProseMirror document to a new YDoc.
R
- Replace(YPosition, Node, Node) - Constructor for class net.carcdr.yprosemirror.DocumentDiff.Replace
T
- toString() - Method in class net.carcdr.yprosemirror.DocumentDiff.Delete
- toString() - Method in class net.carcdr.yprosemirror.DocumentDiff.Insert
- toString() - Method in class net.carcdr.yprosemirror.DocumentDiff.Replace
- toString() - Method in class net.carcdr.yprosemirror.YPosition
U
- updateFromProseMirror(Node) - Method in class net.carcdr.yprosemirror.YProseMirrorBinding
-
Updates the Y-CRDT document from a new ProseMirror document state.
Y
- YCrdtConverter - Class in net.carcdr.yprosemirror
-
Converts Y-CRDT structures to ProseMirror documents.
- yDocToProsemirror(YDoc, String, Schema) - Static method in class net.carcdr.yprosemirror.YCrdtConverter
-
Converts a YDoc to a ProseMirror document.
- YPosition - Class in net.carcdr.yprosemirror
-
Represents a position in a Y-CRDT document structure.
- YProseMirrorBinding - Class in net.carcdr.yprosemirror
-
Binds a ProseMirror document structure to a Y-CRDT document for real-time collaborative editing.
- YProseMirrorBinding(YXmlFragment, Schema, Consumer<Node>) - Constructor for class net.carcdr.yprosemirror.YProseMirrorBinding
-
Creates a new binding between a Y-CRDT fragment and ProseMirror document.
- YProseMirrorBinding(YXmlFragment, Schema, Consumer<Node>, boolean) - Constructor for class net.carcdr.yprosemirror.YProseMirrorBinding
-
Creates a new binding with optional incremental update support.
- yXmlElementToNode(YXmlElement, Schema) - Static method in class net.carcdr.yprosemirror.YCrdtConverter
-
Converts a YXmlElement to a ProseMirror Node.
- yXmlToNode(YXmlFragment, Schema) - Static method in class net.carcdr.yprosemirror.YCrdtConverter
-
Converts a YXmlFragment to a ProseMirror Node.
All Classes and Interfaces|All Packages