|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.chemistry.gui.extended.molecule.PropAttributes
public class PropAttributes
This is a base class which the Atom and Bond classes include. It provides the common functionality of property pairs which can be added to the end of either an Atom or a Bond
| Field Summary | |
|---|---|
java.util.Properties |
prop
The property to be maninpulate |
| Constructor Summary | |
|---|---|
PropAttributes()
Default constuctor |
|
PropAttributes(PropAttributes propSource)
Copy Constructor, using clone on property |
|
PropAttributes(java.util.Properties prop)
Constructor if a property exist, create a copy with (clone) |
|
| Method Summary | |
|---|---|
boolean |
checkIfKeyExist(java.lang.String key)
Check to see if a key is in the atom's property list |
java.util.Properties |
getProperties()
access the atom's properties |
java.lang.String |
getPropertyValue(java.lang.String key)
Get a value from the Atoms property |
java.lang.String |
getPropertyValue(java.lang.String key,
java.lang.String defValue)
Get a value from the Atoms property |
boolean |
setPropertyValue(java.lang.String key,
java.lang.String value)
Get a value from the Atoms property |
java.lang.String |
toString()
Overridden to String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.util.Properties prop
| Constructor Detail |
|---|
public PropAttributes()
public PropAttributes(java.util.Properties prop)
prop - DOCUMENT ME!public PropAttributes(PropAttributes propSource)
propSource - DOCUMENT ME!| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Properties getProperties()
public boolean checkIfKeyExist(java.lang.String key)
key - value to look for
public java.lang.String getPropertyValue(java.lang.String key)
key - value to search for
public java.lang.String getPropertyValue(java.lang.String key,
java.lang.String defValue)
key - value to search fordefValue - value to return if search failes
public boolean setPropertyValue(java.lang.String key,
java.lang.String value)
key - key to setvalue - value to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||