Package com.adobe.granite.references
Class Reference
java.lang.Object
com.adobe.granite.references.Reference
- Direct Known Subclasses:
ContentReference,LinkReference
A
Reference represents a reference to the Resource backing the ReferenceList.
References can only be retrieved via a ReferenceList.
Each reference has a reference type.
The types available are defined by the ReferenceProviders registered in the system and may vary.- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the source resource for which the references have been retrieved through theReferenceProvider.Returns the target resource of the reference, i.e.getType()Returns the reference type of this reference.inthashCode()toString()
-
Constructor Details
-
Reference
-
-
Method Details
-
getSource
Returns the source resource for which the references have been retrieved through theReferenceProvider.- Returns:
- The source resource.
-
getTarget
Returns the target resource of the reference, i.e. one of the results retrieved by theReferenceProvider.- Returns:
- The target resource.
-
getType
Returns the reference type of this reference.- Returns:
- The reference type.
-
equals
-
hashCode
public int hashCode() -
toString
-