Package com.day.cq.wcm.api.reference
Class Reference
- java.lang.Object
 - 
- com.day.cq.wcm.api.reference.Reference
 
 
- 
public class Reference extends java.lang.ObjectThe ReferencedResource represents a resource which is referenced from anotherResource.Unless otherwise noted, all fields contained in this class are not null.
 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetLastModified()java.lang.StringgetName()ResourcegetResource()java.lang.StringgetType() 
 - 
 
- 
- 
Constructor Detail
- 
Reference
public Reference(java.lang.String type, java.lang.String name, Resource resource, long lastModified) 
 - 
 
- 
Method Detail
- 
getType
public java.lang.String getType()
- Returns:
 - the type of the resource, for informative purposes
 
 
- 
getName
public java.lang.String getName()
- Returns:
 - the friendly name of the resource, for informative purposes
 
 
- 
getResource
public Resource getResource()
- Returns:
 - the referenced resource
 
 
- 
getLastModified
public long getLastModified()
- Returns:
 - the time when this resource was last modified, or -1 if the last modified time is not known
 
 
 - 
 
 -