001 // Copyright 2004, 2005 The Apache Software Foundation 002 // 003 // Licensed under the Apache License, Version 2.0 (the "License"); 004 // you may not use this file except in compliance with the License. 005 // You may obtain a copy of the License at 006 // 007 // http://www.apache.org/licenses/LICENSE-2.0 008 // 009 // Unless required by applicable law or agreed to in writing, software 010 // distributed under the License is distributed on an "AS IS" BASIS, 011 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 012 // See the License for the specific language governing permissions and 013 // limitations under the License. 014 015 package org.apache.tapestry.spec; 016 017 /** 018 * Defines an internal, external or private asset. 019 * 020 * @author Howard Lewis Ship 021 */ 022 023 public class AssetSpecification extends LocatablePropertyHolder implements IAssetSpecification 024 { 025 protected String _path; 026 027 /** @since 4.0 */ 028 private String _propertyName; 029 030 /** 031 * Returns the base path for the asset. This may be interpreted as a URL, relative URL or the 032 * path to a resource, depending on the type of asset. Starting with 4.0, this may have a prefix 033 * added to identify the type of resource. 034 */ 035 036 public String getPath() 037 { 038 return _path; 039 } 040 041 /** @since 3.0 * */ 042 043 public void setPath(String path) 044 { 045 this._path = path; 046 } 047 048 /** @since 4.0 */ 049 public String getPropertyName() 050 { 051 return _propertyName; 052 } 053 054 /** @since 4.0 */ 055 public void setPropertyName(String propertyName) 056 { 057 _propertyName = propertyName; 058 } 059 }