◆ endXMLParentTag()
void sortie.tools.parfileupdater.GroupBase.endXMLParentTag |
( |
String |
sXMLTag | ) |
|
◆ findObjectByXMLTag()
ModelData sortie.tools.parfileupdater.GroupBase.findObjectByXMLTag |
( |
String |
sXMLTag, |
|
|
String |
sXMLParentTag |
|
) |
| |
Finds an object based on its XML tag.
- Parameters
-
sXMLTag | XML tag for the object. |
sXMLParentTag | Parent tag to sXMLTag. |
- Returns
- ModelData object corresponding to the XML tag, or null if no such object is found.
◆ getBehaviorByXMLTag()
ArrayList<Behavior> sortie.tools.parfileupdater.GroupBase.getBehaviorByXMLTag |
( |
String |
sXMLTag | ) |
|
Finds a behavior by its XML tag.
- Parameters
-
sXMLTag | String The XML tag for which to find a behavior. |
- Returns
- Behavior Behavior for the XML tag, or NULL if none of the behaviors has that tag.
◆ loadDataMember()
void sortie.tools.parfileupdater.GroupBase.loadDataMember |
( |
ModelData |
oData | ) |
|
|
protected |
Takes some data and adds it to all applicable behaviors in their string buffer.
◆ parentTagOKForQueue()
boolean sortie.tools.parfileupdater.GroupBase.parentTagOKForQueue |
( |
String |
sTag | ) |
|
Some tags get everything messed up in a parsing queue.
Override this to clean out certain tags, generally empty parent tags or enclosing tags that are now ignored.
- Parameters
-
- Returns
- Whether or not to keep this tag in the queue.
◆ readXMLParentTag()
boolean sortie.tools.parfileupdater.GroupBase.readXMLParentTag |
( |
String |
sXMLTag, |
|
|
Attributes |
oAttributes |
|
) |
| throws ModelException |
Accepts an XML parent tag (empty, no data) from the parser.
- Parameters
-
sXMLTag | The XML tag. |
oAttributes | The attributes of this object. |
- Exceptions
-
ModelException | if there is a problem reading this data. |
◆ setSingleValueByXMLTag()
boolean sortie.tools.parfileupdater.GroupBase.setSingleValueByXMLTag |
( |
String |
sXMLTag, |
|
|
String |
sXMLParentTag, |
|
|
Attributes |
oAttributes, |
|
|
String |
sData |
|
) |
| throws ModelException |
Sets a data object's value.
Override this to add functionality.
- Parameters
-
sXMLTag | XML tag of data object whose value is to be set. |
sXMLParentTag | The immediate parent tag that sXMLTag is within. |
oAttributes | Attributes of the object. Ignored, but may be needed by overriding objects. |
sData | Data value, either a String or a type appropriate to the data type |
- Returns
- true if the value was set successfully; false if the value could not be found. (This would not be an error, because I need a way to cycle through the objects until one of the objects comes up with a match.)
- Exceptions
-
ModelException | if the value could not be assigned to the data object. |
◆ writeBehaviorsList()
void sortie.tools.parfileupdater.GroupBase.writeBehaviorsList |
( |
BufferedWriter |
jOut | ) |
throws IOException |
◆ writeDataToFile()
void sortie.tools.parfileupdater.GroupBase.writeDataToFile |
( |
BufferedWriter |
jOut | ) |
throws IOException |
Writes all data to an XML file.
- Parameters
-
jOut | The file to write to. |
- Exceptions
-
IOException | Passes on exceptions from FileWriter |
◆ m_sXMLTag
String sortie.tools.parfileupdater.GroupBase.m_sXMLTag |
|
protected |
Highest-level XML tag for this object.
◆ mp_oAllData
ArrayList<ModelData> sortie.tools.parfileupdater.GroupBase.mp_oAllData |
|
protected |
All data for this object.
It should be placed in the order in which it should be written in XML.
◆ mp_oChildBehaviors
Behavior [] sortie.tools.parfileupdater.GroupBase.mp_oChildBehaviors |
|
protected |
The documentation for this class was generated from the following file: