Class DefaultDocumentSource

  • All Implemented Interfaces:
    DocumentSource

    public class DefaultDocumentSource
    extends java.lang.Object
    implements DocumentSource
    Provides a default document source
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultDocumentSource​(java.lang.String location, java.lang.String author, long date, java.lang.String revision)
      Creates a new default document source
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAuthor()
      Returns the author
      long getDate()
      Returns the date
      java.lang.String getLabel()
      Returns the revision information.
      java.lang.String getLocation()
      Returns some location information of the source.
      java.lang.String getRevision()
      Returns the revision
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DefaultDocumentSource

        public DefaultDocumentSource​(java.lang.String location,
                                     java.lang.String author,
                                     long date,
                                     java.lang.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 Detail

      • getLocation

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

        public java.lang.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 java.lang.String getAuthor()
        Returns the author
        Returns:
        the author
      • getDate

        public long getDate()
        Returns the date
        Returns:
        the date
      • getRevision

        public java.lang.String getRevision()
        Returns the revision
        Returns:
        the revision
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object