Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 772 → Rev 773

/sun/xmleditor/trunk/src/parser/Parser.java
4,10 → 4,10
* Coded by: Group 5, software practice summer 2003
* University of Bielefeld, Germany
*
* @version $Revision: 1.53 $
* @version $Revision: 1.54 $
*
* Last modification: $Date: 2003/07/24 13:56:14 $
* $Id: Parser.java,v 1.53 2003/07/24 13:56:14 smcsporr Exp $
* Last modification: $Date: 2003/07/24 14:20:05 $
* $Id: Parser.java,v 1.54 2003/07/24 14:20:05 smcsporr Exp $
*/
 
package src.parser;
53,12 → 53,11
*
* The <code>AdapterDomToTreeModel</code> needs such a document.
*
* @see org.apache.xerces.dom.DocumentImpl
* @see <code>AdapterDomToTreeModel</code>
*
* @author Group 5
*
* @version $Revision: 1.53 $ Last modification: $Date: 2003/07/24 13:56:14 $
* @version $Revision: 1.54 $ Last modification: $Date: 2003/07/24 14:20:05 $
*/
public class Parser {
 
283,7 → 282,6
* level elements.
*
* @see java.util.Vector
* @see org.apache.xerces.parsers.XMLGrammarPreparser
*
* Last revision: 21-Jul-2003 by S. McSporran
*/
/sun/xmleditor/trunk/src/parser/AdapterDomToTreeModel.java
4,10 → 4,10
* Coded by: Group 5, software practice summer 2003
* University of Bielefeld, Germany
*
* $Revision: 1.62 $
* $Revision: 1.63 $
*
* Last modification: $Date: 2003/07/19 11:33:27 $
* $Id: AdapterDomToTreeModel.java,v 1.62 2003/07/19 11:33:27 mdonner Exp $
* Last modification: $Date: 2003/07/19 12:16:42 $
* $Id: AdapterDomToTreeModel.java,v 1.63 2003/07/19 12:16:42 mdonner Exp $
*/
 
package src.parser;
40,7 → 40,7
*
* @author Group 5
*
* @version $Revision: 1.62 $ Last modification: $Date: 2003/07/19 11:33:27 $
* @version $Revision: 1.63 $ Last modification: $Date: 2003/07/19 12:16:42 $
*/
public class AdapterDomToTreeModel implements TreeModel, LogInterface {
 
73,7 → 73,7
* This constructor takes over the document and initializes the list
* for the listeners.
*
* @param document: The Document which must be converted.
* @param document The Document which must be converted.
*
* author Sascha Walkenhorst
*
92,8 → 92,8
* This constructor must be used if XPath filtered <code>NodeList</code> should be displayed
* in the <code>JTree</code>.
*
* @param document: The DOM <code>Document</code> which must be converted.
* @param list: The <code>NodeList</code> from XPath filtering.
* @param document The DOM <code>Document</code> which must be converted.
* @param list The <code>NodeList</code> from XPath filtering.
*
* author Matthias Donner
*
123,7 → 123,7
* This method generates a <code>TreePath</code> expression based on the parent information stored
* in the <code>Node</code>-parameter.
*
* @param node: The node whose path should be generated.
* @param node The node whose path should be generated.
*
* author Matthias Donner
*
159,8 → 159,8
/**
* This method returns the child node of another node with the given index.
*
* @param parent: The parent node of the wanted child.
* @param index: The index of the child.
* @param parent The parent node of the wanted child.
* @param index The index of the child.
*
* @return The child with given index.
*
177,7 → 177,7
/**
* This method returns the number of children.
*
* @param parent: The parent node of the children.
* @param parent The parent node of the children.
*
* @return The number of children.
*
192,7 → 192,7
/**
* This method gives the number of children.
*
* @param parent: The parent node of the children.
* @param parent The parent node of the children.
*
* @return Returns <code>true</code> if the given node is a leaf, this means it has
* no children.
211,8 → 211,8
* This method carries out routine jobs if the value of the node with
* given path has changed.
*
* @param path: The path of modified node.
* @param newValue: The new value of modified node.
* @param path The path of modified node.
* @param newValue The new value of modified node.
*
* author Sascha Walkenhorst
*
228,7 → 228,7
/**
* This method gives the index of the child.
*
* @param parent: The parent node of the child.
* @param parent The parent node of the child.
*
* @return The index of the child. If the child doesn't exist the value
* is -1.
246,7 → 246,7
/**
* This method adds the <code>TreeModelListener</code>.
*
* @param tml: The listener to add.
* @param tml The listener to add.
*
* author Sascha Walkenhorst
*
262,7 → 262,7
/**
* This method removes the listener.
*
* @param tml: The listener to remove.
* @param tml The listener to remove.
*
* author Sascha Walkenhorst
*
278,7 → 278,7
/**
* This method fires an <code>Event</code> when a <code>Node</code> has been removed.
*
* @param e: A <code>TreeModelEvent</code> which describes what happened.
* @param e A <code>TreeModelEvent</code> which describes what happened.
*
* author Matthias Donner
*
297,7 → 297,7
/**
* This method fires an <code>Event</code> when a <code>Node</code> has been inserted.
*
* @param e: A <code>TreeModelEvent</code> which describes what happened.
* @param e A <code>TreeModelEvent</code> which describes what happened.
*
* author Matthias Donner
*
315,7 → 315,7
/**
* This method fires an <code>Event</code> when a <code>Node</code> has been updated or changed.
*
* @param e: A <code>TreeModelEvent</code> which describes what happened.
* @param e A <code>TreeModelEvent</code> which describes what happened.
*
* author Matthias Donner
*
334,7 → 334,7
* This method fires an Event when a Node has been updated or
* changed and its children may have changed,too.
*
* @param e: A TreeModelEvent which describes what happened.
* @param e A TreeModelEvent which describes what happened.
*
* author Matthias Donner
*
353,7 → 353,7
/**
* getDocPath returns the document path belonging to the XPath path
*
* @param path: The Xpath path to look for.
* @param path The Xpath path to look for.
*
* @return The document path belonging to the XPath
*
371,7 → 371,7
* If it is not found there it will be generated together with its belonging
* document path and added to the 'XPathNodes' list. Besides all sub-paths will be added.
*
* @param path: The Xpath path to look for.
* @param path The Xpath path to look for.
*
* @return The index of the 'path' in the list.
*
408,7 → 408,7
* This method searches in the 'XPathNodes' list for the path 'path'.
* If it is found its index will be returned
*
* @param path: The path to look for.
* @param path The path to look for.
*
* @return The index of the path. If the path doesn't exist in the list the value is -1.
*
430,9 → 430,9
/**
* This method compares two TreePaths Node by Node
*
* @param a: One path.
* @param a One path.
*
* @param b: The other path.
* @param b The other path.
*
* @return TRUE: if they contain the same nodes FALSE: otherwise
*
462,7 → 462,7
*
* @param docPath: The path to the Node which should be deleted.
*
* @param path: The path in the current filtered view.
* @param path The path in the current filtered view.
*
*
* author Matthias Donner
497,7 → 497,7
* This method removes an element from the tree. This method is called by a <code>PopUpTree</code>
* instance.
*
* @param path: Path to the element which should be deleted.
* @param path Path to the element which should be deleted.
*
* author Matthias Donner
*
519,7 → 519,7
* This method removes an element from the tree. This method is called by a <code>PopUpTree</code>
* instance. The node is saved in 'copynode' so that later it can be added to the document again
*
* @param path: Path to the element which should be deleted.
* @param path Path to the element which should be deleted.
*
* author Matthias Donner
*
540,10 → 540,10
/**
* This method removes an element from the tree. This method can only be accessed inside this class.
*
* @param path: Path to the element which should be deleted.
* @param aNode: The root of the element which should be deleted
* @param saveToCopynode: If True the Node which should be deleted is previously saved to 'copynode' so that it can be pasted in the document later.
* @param fireEvent: A flag indicating if an <code>Event</code> should be fired or not.
* @param path Path to the element which should be deleted.
* @param aNode The root of the element which should be deleted
* @param saveToCopynode If True the Node which should be deleted is previously saved to 'copynode' so that it can be pasted in the document later.
* @param fireEvent A flag indicating if an <code>Event</code> should be fired or not.
*
* author Matthias Donner
*
580,8 → 580,8
* This method adds an element to the tree. This method is called by a <code>PopUpJTree</code>
* instance.
*
* @param path: Path to the parent element.
* @param name: The node's name.
* @param path Path to the parent element.
* @param name The node's name.
*
* author Matthias Donner
*
616,7 → 616,7
* This method copys a <code>Node</code>. The actual node will be saved in the
* 'copynode' variable. This method is called by a <code>PopUpJTree</code> instance.
*
* @param path: Path to the element which should be copied.
* @param path Path to the element which should be copied.
*
* author Matthias Donner
*
638,7 → 638,7
/**
* This method pastes a <code>Node</code> in the tree.
*
* @param path: Path to the parent node.
* @param path Path to the parent node.
*
* author Matthias Donner
*
659,9 → 659,9
/**
* This method inserts an element in the tree. This method can only be accessed inside this class.
*
* @param path: Path to the element which should be inserted.
* @param aNode: The root of the element which should be inserted
* @param index: the position at which the Node should be inserted
* @param path Path to the element which should be inserted.
* @param aNode The root of the element which should be inserted
* @param index the position at which the Node should be inserted
*
* author Matthias Donner
*
690,13 → 690,10
/**
* This method gets the result of the plugin. It replaces the old node with the new one.
*
* @param oldNode: The old Node.
*
* @param newNode: The new Node.
*
* @param path: The path to the old Node.
*
* @param index: The index of the node which should be updated.
* @param oldNode The old Node.
* @param newNode The new Node.
* @param path The path to the old Node.
* @param index The index of the node which should be updated.
*
* author Matthias Donner
*
729,10 → 726,9
/**
* This method adds Children (which are not shown in filtered view) again to the node before it is inserted in the document.
*
* @param node: The node which should get its children back
* @param node The node which should get its children back
* @param path The path to the node in the document
*
* @param path: The path to the node in the document
*
* author Matthias Donner
*
* Last revision: 17-Jul-2003
749,9 → 745,9
/**
* This method compares two nodes and their sub nodes based on their string representation.
*
* @param nodeOne: The first node to compare
* @param nodeOne The first node to compare
*
* @param nodeTwo: The second node to compare.
* @param nodeTwo The second node to compare.
*
* @return TRUE: if the two nodes are equal FALSE: otherwise
*
788,10 → 784,10
/**
* This method replaces an old node with a new one. Private Method.
*
* @param newNode: The new node.
* @param oldNode: The old node wich should be replaced.
* @param path: The path to the old node.
* @param fireEvent: Flag if Events should be fired by this method or not.
* @param newNode The new node.
* @param oldNode The old node wich should be replaced.
* @param path The path to the old node.
* @param fireEvent Flag if Events should be fired by this method or not.
* author Matthias Donner
*
* Last revision: 11-Jul-2003
846,9 → 842,9
}
 
/**
* This method returns if the Document is modified by TreeOperation(add,paste,delete).
* This method returns if the document is modified by TreeOperation(add,paste,delete).
*
* @return TRUE: when the Document was modified FALSE: otherwise
* @return <code>true</code> if the document was modified, <code>false</code> otherwise.
*
* author Matthias Donner
*
861,7 → 857,7
/**
* This method sets the internal reference of <code>LogInterface</code>.
*
* @param log: An instance of an object compliant to src.gui.LogInterface.
* @param log An instance of an object compliant to src.gui.LogInterface.
*
* author Sascha Walkenhorst
*