Class LineElementsFactory.StringElement
java.lang.Object
org.apache.jackrabbit.vault.util.diff.LineElementsFactory.StringElement
- All Implemented Interfaces:
Document.AnnotatedElement,Document.Element
- Enclosing class:
- LineElementsFactory
public static class LineElementsFactory.StringElement
extends Object
implements Document.AnnotatedElement
An element that is based on a string
todo: create non-annotated varian
-
Constructor Details
-
StringElement
-
-
Method Details
-
getString
Description copied from interface:Document.ElementReturns the string representation of this element. If the elements were generated originally from a string they should return the exact string again.- Specified by:
getStringin interfaceDocument.Element- Returns:
- the string of this element.
-
getDocumentSource
Description copied from interface:Document.AnnotatedElementReturns the document source of this element.- Specified by:
getDocumentSourcein interfaceDocument.AnnotatedElement- Returns:
- the source of this element.
-
hashCode
public int hashCode() -
toString
-
equals
-