org.apache.tapestry.spec
Interface IPropertySpecification

All Superinterfaces:
org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder
All Known Implementing Classes:
PropertySpecification

public interface IPropertySpecification
extends org.apache.hivemind.LocationHolder

Defines a transient or persistant property of a component or page. A org.apache.tapestry.enhance.ComponentClassFactoryuses this information to create a subclass with the necessary instance variables and methods.

Author:
glongman@intelligentworks.com

Method Summary
 java.lang.String getInitialValue()
          Returns the initial value for this property, as a binding reference.
 java.lang.String getName()
           
 java.lang.String getPersistence()
          If null, then the property is not persistent.
 java.lang.String getType()
           
 boolean isPersistent()
          Returns true if getPersistence()is null.
 void setInitialValue(java.lang.String initialValue)
           
 void setName(java.lang.String name)
          Sets the name of the property.
 void setPersistence(java.lang.String persistence)
          A string indicating how the property is persisted.
 void setType(java.lang.String type)
           
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Method Detail

getInitialValue

public java.lang.String getInitialValue()
Returns the initial value for this property, as a binding reference. May return null if the property has no initial value. The initial value is from finishLoad() and re-applied in pageDetached().


getName

public java.lang.String getName()

isPersistent

public boolean isPersistent()
Returns true if getPersistence()is null.


getType

public java.lang.String getType()

setInitialValue

public void setInitialValue(java.lang.String initialValue)

setName

public void setName(java.lang.String name)
Sets the name of the property. This should not be changed once this IPropertySpecification is added to a IComponentSpecification.


setType

public void setType(java.lang.String type)

setPersistence

public void setPersistence(java.lang.String persistence)
A string indicating how the property is persisted.

Since:
4.0

getPersistence

public java.lang.String getPersistence()
If null, then the property is not persistent.

Since:
4.0