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 intcompareTo(IdentifierReference other)booleanequals(Object obj)IdentifiergetIdentifier()Gets the identifier referenced.StringgetReferenceLocation()Gets the location of the target containing the reference.inthashCode()
-
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:
compareToin interfaceComparable<IdentifierReference>
-
equals
-
hashCode
public int hashCode()
-