issrg.utils.gui.xml
Class SubXMLChangeEventGenerator
java.lang.Object
issrg.utils.gui.xml.SubXMLChangeEventGenerator
public class SubXMLChangeEventGenerator
- extends java.lang.Object
The class is not intend for instantiate new object. It contains a public static method for generate
sub events which is used to cover knock-on effects in a user's modification.
Firstly, it check the passed parameters to determine where and how the user is modifying the policy.
Then, the corresponding methods which are used to deal with specific dependencies will be invoked.
Finally, the sub events ,which may be empty due to no knock-on effects in the modification,
will be returned.
- Author:
- Cheng Chung Yang
Method Summary |
static java.util.Set<XMLChangeEvent> |
generateSubEvents(XMLEditor xmlED,
org.w3c.dom.Element parentNode,
org.w3c.dom.Element childNode,
java.lang.String[] attribs,
java.lang.String[] newValues,
java.lang.String action)
Return the list of sub events which contains the information for updating affected fields in this modification. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubXMLChangeEventGenerator
public SubXMLChangeEventGenerator()
generateSubEvents
public static java.util.Set<XMLChangeEvent> generateSubEvents(XMLEditor xmlED,
org.w3c.dom.Element parentNode,
org.w3c.dom.Element childNode,
java.lang.String[] attribs,
java.lang.String[] newValues,
java.lang.String action)
- Return the list of sub events which contains the information for updating affected fields in this modification.
- Parameters:
xmlED
- XMLEditor for this policyparentNode
- The parent element being updatedchildNode
- The child element being updatedattribs
- The attributes of child element being updatednewValues
- The new attribute values of child element being setaction
- the action type of the update
- Returns:
- the sub events list