Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 771 → Rev 772

/sun/xmleditor/trunk/src/parser/ValidationErrorHandler.java
4,10 → 4,10
* Coded by: Group 5, software practice summer 2003
* University of Bielefeld, Germany
*
* @version $Revision: 1.22 $
* @version $Revision: 1.23 $
*
* Last modification: $Date: 2003/07/15 19:16:37 $
* $Id: ValidationErrorHandler.java,v 1.22 2003/07/15 19:16:37 smcsporr Exp $
* Last modification: $Date: 2003/07/22 18:59:53 $
* $Id: ValidationErrorHandler.java,v 1.23 2003/07/22 18:59:53 smcsporr Exp $
*/
 
package src.parser;
29,7 → 29,7
*
* @author S. McSporran
*
* @version $Revision: 1.22 $ Last modification: $Date: 2003/07/15 19:16:37 $
* @version $Revision: 1.23 $ Last modification: $Date: 2003/07/22 18:59:53 $
*/
public class ValidationErrorHandler extends DefaultErrorHandler {
 
45,7 → 45,7
/**
* This method sets the internal validation status to <code>true</code> or <code>false</code>.
*
* @param value: A <code>boolean</code> value.
* @param value A <code>boolean</code> value.
*
* author S. McSporran
*
74,7 → 74,7
* Warnings indicate that something might be missing or incorrect in a XML file,
* wile no XML wellformedness rule has been broken.
*
* @param <code>SAXParseException</code> saxpe: A warning sent by a SAX Parser.
* @param saxpe A warning sent by a SAX Parser.
*
* author S. McSporran
*
93,7 → 93,7
* occur during validation, if a grammar rule has been broken,but the parser
* will be able to continue.
*
* @param <code>SAXParseException</code> saxpe: An error sent by a SAX Parser.
* @param saxpe An error sent by a SAX Parser.
*
* author S. McSporran
*
115,7 → 115,7
* Fatal errors indicate that a grammar rule has been broken that makes continued
* parsing impossible.
*
* @param <code>SAXParseException</code> saxpe: A fatal error sent by a SAX Parser.
* @param saxpe A fatal error sent by a SAX Parser.
*
* author S. McSporran
*
133,12 → 133,11
}
/**
* This method sets an internal reference to the log panel.
* This method sets an internal reference to the log panel that is used to
* output logging messages to inform the user about program events.
*
* @param log: A log panel implementation compliant to src.gui.LogInterface.
*
* @see src.gui.LogInterface
*
* @param log A log panel implementation compliant to src.gui.LogInterface.
*
* author S. McSporran
*
* Last Revision: 11-Jul-2003
150,7 → 149,7
/**
* This method sets an internal reference to the status panel.
*
* @param stat: A status panel implementation compliant to src.gui.StatusInterface.
* @param stat A status panel implementation compliant to src.gui.StatusInterface.
*
* @see src.gui.StatusInterface
*
/sun/xmleditor/trunk/src/parser/Validator.java
4,10 → 4,10
* Coded by: Group 5, software practice summer 2003
* University of Bielefeld, Germany
*
* @version $Revision: 1.49 $
* @version $Revision: 1.50 $
*
* Last modification: $Date: 2003/07/22 18:59:42 $
* $Id: Validator.java,v 1.49 2003/07/22 18:59:42 smcsporr Exp $
* Last modification: $Date: 2003/07/24 13:56:26 $
* $Id: Validator.java,v 1.50 2003/07/24 13:56:26 smcsporr Exp $
*/
 
package src.parser;
57,7 → 57,7
*
* @author S. McSporran
*
* @version $Revision: 1.49 $ Last modification: $Date: 2003/07/22 18:59:42 $
* @version $Revision: 1.50 $ Last modification: $Date: 2003/07/24 13:56:26 $
*/
public class Validator {
 
98,9 → 98,15
* if Xerces isn't available. Please note that Xerces is required to ensure full
* functionality.
*
* @param logI: A reference to a log panel implementation.
* @param statI: A reference to a status panel implementation.
* The SAX parser will have the following features enabled by default:
*
* - namespace processing
* - validation
* - schema validation
*
* @param logI A reference to a log panel implementation.
* @param statI A reference to a status panel implementation.
*
* @see org.xml.sax.XMLReader
* @see src.gui.LogInterface
* @see src.gui.StatusInterface
363,7 → 369,7
/**
* This method validates a DOM document object.
*
* @param doc: The document to be validated.
* @param doc The document to be validated.
*
* @return <code>true</code>, if the document fits to it's specified grammar,
* <code>false</code> otherwise.
441,7 → 447,7
/**
* This method validates an <code>InputStream</code>.
*
* @param inStream: The stream to be validated.
* @param inStream The stream to be validated.
* @return Returns <code>true</code>, if the stream is valid.
*
* author S. McSporran
496,7 → 502,7
* This method sets an internal reference to the log panel that is used to
* output logging messages to inform the user about program events.
*
* @param log: A log panel implementation compliant to src.gui.LogInterface.
* @param log A log panel implementation compliant to src.gui.LogInterface.
*
* author S. McSporran
*
/sun/xmleditor/trunk/src/parser/AdapterNode.java
4,10 → 4,10
* Coded by: Group 5, software practice summer 2003
* University of Bielefeld, Germany
*
* @version $Revision: 1.22 $
* @version $Revision: 1.23 $
*
* Last modification: $Date: 2003/07/23 11:20:25 $
* $Id: AdapterNode.java,v 1.22 2003/07/23 11:20:25 smcsporr Exp $
* Last modification: $Date: 2003/07/23 13:32:55 $
* $Id: AdapterNode.java,v 1.23 2003/07/23 13:32:55 mdonner Exp $
*/
package src.parser;
24,7 → 24,7
*
* @author Group 5
*
* @version $Revision: 1.22 $ Last modification: $Date: 2003/07/23 11:20:25 $
* @version $Revision: 1.23 $ Last modification: $Date: 2003/07/23 13:32:55 $
*/
public class AdapterNode {
 
34,7 → 34,7
* The class constructor exspects a <code>Node</code>-object which is used
* for the internal data handling.
*
* @param node: The DOM node to work with.
* @param node The DOM node to work with.
*
* author Matthias Donner
*
61,7 → 61,7
/**
* Returns the content of a specified <code>Node</code> as <code>String</code>.
*
* @param n: The <code>Node</code> to work with.
* @param n The <code>Node</code> to work with.
*
* @return A <code>String</code> representation of parameter n's content.
*
92,7 → 92,7
/**
* Checks if another <code>Node</code> is equal to this node.
*
* @param n: The node to compare with.
* @param n The node to compare with.
*
* @return <code>true</code>, if the two nodes are equal, <code>otherwise</code>.
*
134,7 → 134,7
/**
* <code>getChild</code> returns the child node at the specified index.
*
* @param index: The index number of the child node to fetch.
* @param index The index number of the child node to fetch.
*
* @return The requested child node.
*
174,8 → 174,8
/**
* Exchanges an old <code>Node</code> with the specified new one
*
* @param newNode: The new node which should be added to the document.
* @param oldNode: The old node which should be replaced.
* @param newNode The new node which should be added to the document.
* @param oldNode The old node which should be replaced.
*
* author Matthias Donner
*
189,7 → 189,7
/**
* Returns the index of a child node.
*
* @param child: The child node who's index should be retrieved.
* @param child The child node who's index should be retrieved.
*
* @return The index of the requested child node. -1 if a child doesn't exist.
*
234,7 → 234,7
/**
* Removes a child node from it's parent.
*
* @param child: The child node to remove.
* @param child The child node to remove.
*
* @return The node which was removed.
*
249,8 → 249,8
/**
* Adds a child node to it's parent.
*
* @param child: The child node to add.
* @param index: The position at which the child should be inserted.
* @param child The child node to add.
* @param index The position at which the child should be inserted.
*
* @return The added node's parent.
*
/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.52 $
* @version $Revision: 1.53 $
*
* Last modification: $Date: 2003/07/23 11:13:58 $
* $Id: Parser.java,v 1.52 2003/07/23 11:13:58 smcsporr Exp $
* Last modification: $Date: 2003/07/24 13:56:14 $
* $Id: Parser.java,v 1.53 2003/07/24 13:56:14 smcsporr Exp $
*/
 
package src.parser;
58,7 → 58,7
*
* @author Group 5
*
* @version $Revision: 1.52 $ Last modification: $Date: 2003/07/23 11:13:58 $
* @version $Revision: 1.53 $ Last modification: $Date: 2003/07/24 13:56:14 $
*/
public class Parser {
 
141,7 → 141,7
* This constructor creates a new empty <code>Document</code> object and
* calls the method <code>parse</code> with a given file.
*
* @param file: The file to be parsed.
* @param file The file to be parsed.
*
* Last Revision 15-Jul-2003
*/
170,7 → 170,7
/**
* This method parses a file and stores it's DOM representation.
*
* @param file: The file to be parsed.
* @param file The file to be parsed.
*
* Last revision: 15-Jul-2003
*/
226,7 → 226,7
/**
* This method parses a <code>String</code> and builds a DOM representation.
*
* @param inputString: The <code>String</code> to be parsed.
* @param inputString The <code>String</code> to be parsed.
*
* author S. McSporran
*
277,7 → 277,7
* Parses an XML schema grammar and returns the top-level elements
* that are candidates of being the root element of an instance document.
*
* @param schemaFile: The XML schema file to be parsed.
* @param schemaFile The XML schema file to be parsed.
*
* @return A <code>Vector</code> containing the names of the schema's top
* level elements.
342,7 → 342,7
/**
* This method sets an internal reference to the log panel.
*
* @param log: A log panel implementation compliant to src.gui.LogInterface.
* @param log A log panel implementation compliant to src.gui.LogInterface.
*
* Last revision: 24-Jun-2003
*/
353,7 → 353,7
/**
* This method sets an internal reference to the status panel.
*
* @param stat: A status panel implementation compliant to src.gui.StatusInterface.
* @param stat A status panel implementation compliant to src.gui.StatusInterface.
*
* Last revision: 11-Jul-2003
*/
365,7 → 365,7
* This method sets an internal reference to the log panel that is used to
* output logging messages to inform the user about program events.
*
* @param log: A log panel implementation compliant to src.gui.LogInterface.
* @param log A log panel implementation compliant to src.gui.LogInterface.
*
* author S. McSporran
*