|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.orderlysoftware.orderlycalls.base.Settings
public class Settings
This class holds initialisation data for the Service
objects created
by OrderlyCalls.
If you're intending to create your own Service
classes, you should
consider creating an accompanying Settings subclass to hold initialisation
parameters.
These subclasses should have getter/setter pairs for each XML attribute, which should be stored as a property.
If the tag for your services requires child tags, consider creating further
Settings subclasses as inner classes (see
AGISettings
for an example).
Constructor Summary | |
---|---|
Settings()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Compare two Settings objects. |
java.lang.String |
getName()
Gets the name of this Settings instance. |
org.w3c.dom.Element |
getXMLSettings()
Gets the XML Element that created this instance. |
void |
setName(java.lang.String name)
Sets the name of this Settings instance. |
boolean |
setXMLSettings(org.w3c.dom.Element xmlSettings)
Override this method to do your own processing of settings. |
java.lang.String |
toString()
Gets a representation of this object suitable for logging. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Settings()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set.public org.w3c.dom.Element getXMLSettings()
public boolean setXMLSettings(org.w3c.dom.Element xmlSettings)
Make sure you call super.setXMLSettings(xmlSettings)
to
capture name, if present.
xmlSettings
-
public boolean equals(java.lang.Object o)
Returns true only if the objects are both Settings objects of the same subclass, and have the same name field.
Subclasses may wish to extend this method to check other member fields.
equals
in class java.lang.Object
public java.lang.String toString()
Subclasses should override this method to show all properties.
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |