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 Summary
Constructors Constructor Description StringElement(DocumentSource source, String string)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
DocumentSource
getDocumentSource()
Returns the document source of this element.String
getString()
Returns the string representation of this element.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
StringElement
public StringElement(DocumentSource source, String string)
-
-
Method Detail
-
getString
public String getString()
Description copied from interface:Document.Element
Returns the string representation of this element. If the elements were generated originally from a string they should return the exact string again.- Specified by:
getString
in interfaceDocument.Element
- Returns:
- the string of this element.
-
getDocumentSource
public DocumentSource getDocumentSource()
Description copied from interface:Document.AnnotatedElement
Returns the document source of this element.- Specified by:
getDocumentSource
in interfaceDocument.AnnotatedElement
- Returns:
- the source of this element.
-
-