Class DefaultDocumentSource

java.lang.Object
com.day.util.diff.DefaultDocumentSource
All Implemented Interfaces:
DocumentSource

public class DefaultDocumentSource extends Object implements DocumentSource
Provides a default document source
  • Constructor Details

    • DefaultDocumentSource

      public DefaultDocumentSource(String location, String author, long date, String revision)
      Creates a new default document source
      Parameters:
      location - some location information
      author - the author of the document
      date - some date of the document
      revision - some revision of the document
  • Method Details

    • getLocation

      public String getLocation()
      Returns some location information of the source.
      Specified by:
      getLocation in interface DocumentSource
      Returns:
      some location information.
    • getLabel

      public String getLabel()
      Returns the revision information. Returns a label of the source.
      Specified by:
      getLabel in interface DocumentSource
      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
    • toString

      public String toString()
      Overrides:
      toString in class Object