Class ItemDocReader.RelatedResource

java.lang.Object
org.dlese.dpc.index.reader.ItemDocReader.RelatedResource
Enclosing class:
ItemDocReader

public class ItemDocReader.RelatedResource extends Object
Data for a related resource.
Author:
John Weatherley
  • Constructor Details

    • RelatedResource

      public RelatedResource(String id, String title, String url, String kind, String specifiedById)
      Parameters:
      id - The ID
      title - The title
      url - The url
      kind - The kind
      specifiedById - The ID of the record that specified this related resource
  • Method Details

    • toString

      public String toString()
      String representation
      Overrides:
      toString in class Object
      Returns:
      String representation
    • equals

      public boolean equals(Object o)
      True if the two RelatedResource URLs and kind are the same.
      Overrides:
      equals in class Object
      Parameters:
      o - A RelatedResource
      Returns:
      True if the two RelatedResource URLs and kind are the same
    • getId

      public String getId()
      Gets the id attribute of the RelatedResource object
      Returns:
      The id value
    • getTitle

      public String getTitle()
      Gets the title attribute of the RelatedResource object
      Returns:
      The title value
    • getUrl

      public String getUrl()
      Gets the url attribute of the RelatedResource object
      Returns:
      The url value
    • getKind

      public String getKind()
      Gets the relation attribute of the RelatedResource object
      Returns:
      The relation value
    • getSpecifiedById

      public String getSpecifiedById()
      Gets the specifiedById attribute of the RelatedResource object
      Returns:
      The specifiedById value