Package com.adobe.granite.references
Class Reference
- java.lang.Object
-
- com.adobe.granite.references.Reference
-
- Direct Known Subclasses:
ContentReference,LinkReference
@ConsumerType public class Reference extends java.lang.ObjectAReferencerepresents a reference to theResourcebacking theReferenceList. References can only be retrieved via aReferenceList. Each reference has a reference type. The types available are defined by theReferenceProviders registered in the system and may vary.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)ResourcegetSource()Returns the source resource for which the references have been retrieved through theReferenceProvider.ResourcegetTarget()Returns the target resource of the reference, i.e.java.lang.StringgetType()Returns the reference type of this reference.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getSource
public Resource getSource()
Returns the source resource for which the references have been retrieved through theReferenceProvider.- Returns:
- The source resource.
-
getTarget
public Resource getTarget()
Returns the target resource of the reference, i.e. one of the results retrieved by theReferenceProvider.- Returns:
- The target resource.
-
getType
public java.lang.String getType()
Returns the reference type of this reference.- Returns:
- The reference type.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-