org.apache.tapestry.spec
Class AssetSpecification

java.lang.Object
  extended by org.apache.tapestry.util.BasePropertyHolder
      extended by org.apache.tapestry.spec.LocatablePropertyHolder
          extended by org.apache.tapestry.spec.AssetSpecification
All Implemented Interfaces:
org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, IAssetSpecification, PropertyInjectable, IPropertyHolder

public class AssetSpecification
extends LocatablePropertyHolder
implements IAssetSpecification

Defines an internal, external or private asset.

Author:
Howard Lewis Ship

Field Summary
protected  String _path
           
 
Constructor Summary
AssetSpecification()
           
 
Method Summary
 String getPath()
          Returns the base path for the asset.
 String getPropertyName()
          Returns the name of the property to be created for this component, or null if no property should be created.
 void setPath(String path)
           
 void setPropertyName(String propertyName)
           
 
Methods inherited from class org.apache.tapestry.spec.LocatablePropertyHolder
getLocation, setLocation
 
Methods inherited from class org.apache.tapestry.util.BasePropertyHolder
getProperty, getPropertyNames, removeProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.util.IPropertyHolder
getProperty, getPropertyNames, removeProperty, setProperty
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Field Detail

_path

protected String _path
Constructor Detail

AssetSpecification

public AssetSpecification()
Method Detail

getPath

public String getPath()
Returns the base path for the asset. This may be interpreted as a URL, relative URL or the path to a resource, depending on the type of asset. Starting with 4.0, this may have a prefix added to identify the type of resource.

Specified by:
getPath in interface IAssetSpecification

setPath

public void setPath(String path)
Specified by:
setPath in interface IAssetSpecification
Since:
3.0 *

getPropertyName

public String getPropertyName()
Description copied from interface: PropertyInjectable
Returns the name of the property to be created for this component, or null if no property should be created.

Specified by:
getPropertyName in interface PropertyInjectable
Since:
4.0

setPropertyName

public void setPropertyName(String propertyName)
Specified by:
setPropertyName in interface PropertyInjectable
Since:
4.0


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.