org.apache.tapestry.asset
Class AbstractAsset

java.lang.Object
  extended by org.apache.tapestry.asset.AbstractAsset
All Implemented Interfaces:
IAsset, ILocatable
Direct Known Subclasses:
ContextAsset, ExternalAsset, PrivateAsset

public abstract class AbstractAsset
extends Object
implements IAsset

Base class for IAsset implementations. Provides the location property.

Since:
3.0
Version:
$Id: AbstractAsset.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship

Constructor Summary
protected AbstractAsset(IResourceLocation resourceLocation, ILocation location)
           
 
Method Summary
 ILocation getLocation()
          Returns the location from which this object orginates, or null if not known.
 IResourceLocation getResourceLocation()
          Returns the underlying location of the asset.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.IAsset
buildURL, getResourceAsStream
 

Constructor Detail

AbstractAsset

protected AbstractAsset(IResourceLocation resourceLocation,
                        ILocation location)
Method Detail

getLocation

public ILocation getLocation()
Description copied from interface: ILocatable
Returns the location from which this object orginates, or null if not known.

Specified by:
getLocation in interface ILocatable

getResourceLocation

public IResourceLocation getResourceLocation()
Description copied from interface: IAsset
Returns the underlying location of the asset.

Specified by:
getResourceLocation in interface IAsset

toString

public String toString()
Overrides:
toString in class Object