Package gov.nasa.pds.tools.validate
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 Summary
Constructors Constructor Description IdentifierReference(String referenceLocation, Identifier identifier)
Creates a new instance with a given location for the target referring to an identifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(IdentifierReference other)
boolean
equals(Object obj)
Identifier
getIdentifier()
Gets the identifier referenced.String
getReferenceLocation()
Gets the location of the target containing the reference.int
hashCode()
-
-
-
Constructor Detail
-
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 referenceidentifier
- the identifier referred to
-
-
Method Detail
-
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 interfaceComparable<IdentifierReference>
-
-