Class DefaultDocumentSource
- java.lang.Object
-
- org.apache.jackrabbit.vault.util.diff.DefaultDocumentSource
-
- All Implemented Interfaces:
DocumentSource
public class DefaultDocumentSource extends Object implements DocumentSource
Provides a default document source
-
-
Constructor Summary
Constructors Constructor Description DefaultDocumentSource(String location, String author, long date, String revision)
Creates a new default document source
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAuthor()
Returns the authorlong
getDate()
Returns the dateString
getLabel()
Returns the revision information.String
getLocation()
Returns some location information of the source.String
getRevision()
Returns the revisionString
toString()
-
-
-
Constructor Detail
-
DefaultDocumentSource
public DefaultDocumentSource(String location, String author, long date, String revision)
Creates a new default document source- Parameters:
location
- some location informationauthor
- the author of the documentdate
- some date of the documentrevision
- some revision of the document
-
-
Method Detail
-
getLocation
public String getLocation()
Returns some location information of the source.- Specified by:
getLocation
in interfaceDocumentSource
- Returns:
- some location information.
-
getLabel
public String getLabel()
Returns the revision information. Returns a label of the source.- Specified by:
getLabel
in interfaceDocumentSource
- Returns:
- a label of the source.
-
getAuthor
public String getAuthor()
Returns the author- Returns:
- the author
-
getDate
public long getDate()
Returns the date- Returns:
- the date
-
getRevision
public String getRevision()
Returns the revision- Returns:
- the revision
-
-