Class LineElementsFactory.IStringElement
- java.lang.Object
-
- org.apache.jackrabbit.vault.util.diff.LineElementsFactory.IStringElement
-
- All Implemented Interfaces:
Document.AnnotatedElement,Document.Element
- Enclosing class:
- LineElementsFactory
public static class LineElementsFactory.IStringElement extends Object implements Document.AnnotatedElement
An element that is based on a string but ignores the whitespaces in the equals method. todo: create non-annotated varian
-
-
Constructor Summary
Constructors Constructor Description IStringElement(DocumentSource source, String string)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)DocumentSourcegetDocumentSource()Returns the document source of this element.StringgetString()Returns the string representation of this element.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
IStringElement
public IStringElement(DocumentSource source, String string)
-
-
Method Detail
-
getDocumentSource
public DocumentSource getDocumentSource()
Description copied from interface:Document.AnnotatedElementReturns the document source of this element.- Specified by:
getDocumentSourcein interfaceDocument.AnnotatedElement- Returns:
- the source of this element.
-
getString
public String 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.
-
-