issrg.utils.gui.xml
Class SubXMLChangeEventGenerator

java.lang.Object
  extended by 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

Constructor Summary
SubXMLChangeEventGenerator()
           
 
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
 

Constructor Detail

SubXMLChangeEventGenerator

public SubXMLChangeEventGenerator()
Method Detail

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 policy
parentNode - The parent element being updated
childNode - The child element being updated
attribs - The attributes of child element being updated
newValues - The new attribute values of child element being set
action - the action type of the update
Returns:
the sub events list