com.kedwards.swt.entries
Class AbstractPropertiesEntry
com.kedwards.swt.entries.AbstractPropertiesEntry
- All Implemented Interfaces:
- java.io.Serializable
- public class AbstractPropertiesEntry
- implements java.io.Serializable
AbstractPropertiesEntry.java
This class serves as a super for various subclasses that contain Java
properties as attributes. This class supports a public Map member that
contains all of a set of properties. Particular subclasses may reflect
various of these properties as first-class members, for purposes of
searchability. This superclass provides code to reflect on the members
in the subclass to ensure that values in the Map are consistent with
those in the members.
See http://www.kedwards.com/jini
No warranty expressed or implied; use at your own risk; for educational
purposes only.
- Author:
- Keith Edwards
- See Also:
- Serialized Form
allProperties
protected java.util.Map allProperties
AbstractPropertiesEntry
public AbstractPropertiesEntry()
setProperty
public void setProperty(java.lang.String name,
java.lang.String value)
getProperty
public java.lang.String getProperty(java.lang.String name)
getPrefix
public java.lang.String getPrefix()
- Some subclasses may only store certain properties, perhaps
those prefixed with a certain value (such as java.vm, or
placeless.loglevel). Such properties can return a prefix
here. It is used as an optimization by reflectSearchableProperties.
equals
public boolean equals(java.lang.Object o)
hashCode
public int hashCode()
toString
public java.lang.String toString()
load
protected static AbstractPropertiesEntry load(AbstractPropertiesEntry e)
- Called by subclasses as a helper to building new instances