| java.lang.Object simpleorm.properties.SProperty
SProperty | public class SProperty (Code) | | Represents the key to SPropertyMap. Each property is identified
by its name, which is used to index the map. There is only one
instance of this class for each type of property.
|
Constructor Summary | |
public | SProperty(String name) Name of property (Must be globaly unique). |
SProperty | public SProperty(String name)(Code) | | Name of property (Must be globaly unique).
|
defaultValue | protected Object defaultValue(SPropertyMap map)(Code) | | Provides a default value for a property. Often specialized.
|
equals | public boolean equals(Object key2)(Code) | | Equality is based only on the name
|
hashCode | public int hashCode()(Code) | | |
ptrue | public SPropertyValue ptrue()(Code) | | Convienience routine that returns a PV with TRUE as the value.
|
pvalue | public SPropertyValue pvalue(Object value)(Code) | | Convenience routine that return new SPropertyValue(this,
value); . Used as a parameter to SField etc. eg.
{MYPROP.pvalue("myvalue"), ...}
|
theValue | protected Object theValue(SPropertyMap map)(Code) | | Provides the value for a property. If this is specialized then
setting the property has no effect.
|
validate | protected void validate(SPropertyMap map, Object value)(Code) | | Validates the property value, throw an exception if
invalid. specialized.
|
|
|