Class IdentifierReference

java.lang.Object
gov.nasa.pds.tools.validate.IdentifierReference
All Implemented Interfaces:
Comparable<IdentifierReference>

public class IdentifierReference
extends Object
implements Comparable<IdentifierReference>
Defines a reference from a location to an identifier.
  • Constructor Details

    • IdentifierReference

      public IdentifierReference​(String referenceLocation, Identifier identifier)
      Creates a new instance with a given location for the target referring to an identifier.
      Parameters:
      referenceLocation - the location of the target containing the reference
      identifier - the identifier referred to
  • Method Details

    • getReferenceLocation

      public String getReferenceLocation()
      Gets the location of the target containing the reference.
      Returns:
      the target location containing the reference
    • getIdentifier

      public Identifier getIdentifier()
      Gets the identifier referenced.
      Returns:
      the identifier
    • compareTo

      public int compareTo​(IdentifierReference other)
      Specified by:
      compareTo in interface Comparable<IdentifierReference>
    • equals

      public boolean equals​(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object