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.Object
AReference
represents a reference to theResource
backing theReferenceList
. References can only be retrieved via aReferenceList
. Each reference has a reference type. The types available are defined by theReferenceProvider
s registered in the system and may vary.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resource
getSource()
Returns the source resource for which the references have been retrieved through theReferenceProvider
.Resource
getTarget()
Returns the target resource of the reference, i.e.java.lang.String
getType()
Returns the reference type of this reference.java.lang.String
toString()
-
-
-
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.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-