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
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 Details
-
IdentifierReference
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 Details
-
getReferenceLocation
Gets the location of the target containing the reference.- Returns:
- the target location containing the reference
-
getIdentifier
Gets the identifier referenced.- Returns:
- the identifier
-
compareTo
- Specified by:
compareTo
in interfaceComparable<IdentifierReference>
-
equals
-
hashCode
public int hashCode()
-