| Package | Description |
|---|---|
| com.topologi.diffx.algorithm |
Main algorithm implementations.
|
| com.topologi.diffx.event |
The event interfaces used by the Diff-X algorithm.
|
| com.topologi.diffx.event.impl |
The events implementations used by the Diff-X.
|
| com.topologi.diffx.format |
Classes for formatting and text processing.
|
| com.topologi.diffx.sequence |
Sequences and sequence utility tools.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ElementState.delete(DiffXEvent e)
Updates the state from the deleted event.
|
void |
ElementState.format(DiffXEvent e)
Updates the state from the formatted event.
|
boolean |
ElementState.hasPriorityOver(DiffXEvent e1,
DiffXEvent e2)
Indicates whether the first specified event has priority over the second element.
|
void |
ElementState.insert(DiffXEvent e)
Updates the state from the inserted event.
|
boolean |
ElementState.matchCurrent(DiffXEvent e)
Indicates whether the specified event is a close element that
matches the name and URI of the current open element.
|
boolean |
ElementState.okDelete(DiffXEvent e)
Indicates whether the specified event is a close element that
matches the name and URI of the current open element.
|
boolean |
ElementState.okFormat(DiffXEvent e)
Indicates whether the specified event is a close element that
matches the name and URI of the current open element.
|
boolean |
ElementState.okInsert(DiffXEvent e)
Indicates whether the specified event is a close element that
matches the name and URI of the current open element.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
AttributeEvent
An event for attributes.
|
interface |
CloseElementEvent
The event corresponding to the
endElement SAX event. |
interface |
OpenElementEvent
The event corresponding to the
startElement SAX event. |
interface |
TextEvent
An interface for any data that comes from a text node.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
DiffXEvent.equals(DiffXEvent e)
Indicates whether the specified event is equal to this event.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AttributeEventImpl
A basic implementation of the attribute event.
|
class |
AttributeEventNSImpl
A namespace aware implementation of the attribute event.
|
class |
CharactersEvent
An event corresponds to the "characters" SAX event.
|
class |
CharactersEventBase
A base class for all the characters events "characters" SAX event.
|
class |
CharEvent
Event corresponding to a single character.
|
class |
CloseElementEventImpl
A basic implementation of the close element event.
|
class |
CloseElementEventNSImpl
The event corresponding to the
startElement SAX event. |
class |
CommentEvent
A comment event.
|
class |
IgnorableSpaceEvent
A particular type of event reserved for ignored white spaces.
|
class |
LineEvent
An interface for any data that comes from a text node.
|
class |
OpenElementEventImpl
A basic implementation of the close element event.
|
class |
OpenElementEventNSImpl
The event corresponding to the
startElement SAX event. |
class |
ProcessingInstructionEvent
A processing instruction event.
|
class |
SpaceEvent
A particular type of event reserved for white spaces.
|
class |
WordEvent
A text event representing a word.
|
class |
XMLBranchEvent
A branch of XML data.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
IgnorableSpaceEvent.equals(DiffXEvent e)
Returns
true if the event is an ignorable white space, regardless of the
characters that it matches. |
boolean |
LineEvent.equals(DiffXEvent e)
Returns
true if the event is a character event and the content is equivalent. |
boolean |
CloseElementEventNSImpl.equals(DiffXEvent e)
Returns
true if the event is a close element event. |
boolean |
CloseElementEventImpl.equals(DiffXEvent e)
Returns
true if the event is a close element
and has the same name. |
boolean |
ProcessingInstructionEvent.equals(DiffXEvent e)
Returns
true if the event is a processing instruction. |
boolean |
CharEvent.equals(DiffXEvent e) |
boolean |
CharactersEventBase.equals(DiffXEvent e)
Returns
true if the event is a character event and its content is equivalent. |
boolean |
OpenElementEventImpl.equals(DiffXEvent e)
Returns
true if the event is an open element event. |
boolean |
AttributeEventNSImpl.equals(DiffXEvent e)
Returns
true if the event is an attribute event. |
boolean |
AttributeEventImpl.equals(DiffXEvent e)
Returns
true if the event is an attribute event. |
boolean |
XMLBranchEvent.equals(DiffXEvent e)
Returns
true if the diffX events in the branch are all equal. |
boolean |
OpenElementEventNSImpl.equals(DiffXEvent e)
Returns
true if the event is a open element event. |
boolean |
CommentEvent.equals(DiffXEvent e)
Returns
true if the event is a comment event. |
| Constructor and Description |
|---|
XMLBranchEvent(DiffXEvent[] events)
Creates a new XML branch.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ShortStringFormatter.delete(DiffXEvent e)
Writes the event as a short string preceded by '+'.
|
void |
ConvenientXMLFormatter.delete(DiffXEvent e) |
void |
MultiplexFormatter.delete(DiffXEvent e) |
void |
SafeXMLFormatter.delete(DiffXEvent e) |
void |
SmartXMLFormatter.delete(DiffXEvent e) |
void |
BasicXMLFormatter.delete(DiffXEvent e)
Formats the specified deleted event.
|
void |
StrictXMLFormatter.delete(DiffXEvent e) |
void |
DiffXFormatter.delete(DiffXEvent e)
Formats the specified deleted event.
|
void |
ShortStringFormatter.format(DiffXEvent e)
Writes the event as a short string.
|
void |
ConvenientXMLFormatter.format(DiffXEvent e) |
void |
MultiplexFormatter.format(DiffXEvent e) |
void |
SafeXMLFormatter.format(DiffXEvent e) |
void |
SmartXMLFormatter.format(DiffXEvent e) |
void |
BasicXMLFormatter.format(DiffXEvent e)
Formats the specified event.
|
void |
StrictXMLFormatter.format(DiffXEvent e) |
void |
DiffXFormatter.format(DiffXEvent e)
Formats the specified event.
|
void |
ShortStringFormatter.insert(DiffXEvent e)
Writes the event as a short string preceded by '+'.
|
void |
ConvenientXMLFormatter.insert(DiffXEvent e) |
void |
MultiplexFormatter.insert(DiffXEvent e) |
void |
SafeXMLFormatter.insert(DiffXEvent e) |
void |
SmartXMLFormatter.insert(DiffXEvent e) |
void |
BasicXMLFormatter.insert(DiffXEvent e)
Formats the specified inserted event.
|
void |
StrictXMLFormatter.insert(DiffXEvent e) |
void |
DiffXFormatter.insert(DiffXEvent e)
Formats the specified inserted event.
|
static String |
ShortStringFormatter.toShortString(DiffXEvent e)
Returns the short string for the given event.
|
| Modifier and Type | Method and Description |
|---|---|
DiffXEvent |
EventSequence.getEvent(int i)
Returns the event at position i.
|
DiffXEvent |
EventSequence.EventIterator.next() |
DiffXEvent |
EventSequence.EventIterator.nextEvent()
Returns the next event.
|
DiffXEvent |
EventSequence.removeEvent(int index)
Removes an event from this sequence at the specified position.
|
DiffXEvent |
EventSequence.setEvent(int index,
DiffXEvent e)
Replaces an event of this sequence at the specified position.
|
| Modifier and Type | Method and Description |
|---|---|
List<DiffXEvent> |
EventSequence.events()
Returns the sequence of events.
|
| Modifier and Type | Method and Description |
|---|---|
void |
EventSequence.addEvent(DiffXEvent e)
Adds an event to this sequence.
|
void |
EventSequence.addEvent(int i,
DiffXEvent e)
Inserts an event to this sequence at the specified position.
|
DiffXEvent |
EventSequence.setEvent(int index,
DiffXEvent e)
Replaces an event of this sequence at the specified position.
|
Copyright © 2007-2022. All Rights Reserved.