com.japisoft.xmlpad.action
Class ParseAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--com.japisoft.xmlpad.action.XMLAction
              |
              +--com.japisoft.xmlpad.action.ParseAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, org.xml.sax.ErrorHandler, java.util.EventListener, java.io.Serializable

public class ParseAction
extends XMLAction
implements org.xml.sax.ErrorHandler

Refresh action : XML Parsing

Version:
1.1
Author:
(c) 2002 JAPISoft
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.japisoft.xmlpad.action.XMLAction
IMAGE_SIZE
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ParseAction()
           
 
Method Summary
 void error(org.xml.sax.SAXParseException exception)
           
 void fatalError(org.xml.sax.SAXParseException exception)
           
 org.w3c.dom.Document getDocument()
           
 boolean hasError()
          An error has been found while parsing
 boolean hasValidation()
           
 boolean notifyAction()
          Notify action must be done.
 void setValidation(boolean validation)
          Validate the XML.
 void warning(org.xml.sax.SAXParseException exception)
           
 
Methods inherited from class com.japisoft.xmlpad.action.XMLAction
actionPerformed, getName, hasFeature, isPopable, setActionIcon, setFeature, setPopable, setXMLContainer, setXMLEditor
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseAction

public ParseAction()
Method Detail

setValidation

public void setValidation(boolean validation)
Validate the XML. By default false


hasValidation

public boolean hasValidation()
Returns:
true if validation is managed

notifyAction

public boolean notifyAction()
Description copied from class: XMLAction
Notify action must be done. It return false if the action is not accessible

Specified by:
notifyAction in class XMLAction
Returns:
true if the action is possible

getDocument

public org.w3c.dom.Document getDocument()
Returns:
the parsed document

hasError

public boolean hasError()
An error has been found while parsing


warning

public void warning(org.xml.sax.SAXParseException exception)
             throws org.xml.sax.SAXException
Specified by:
warning in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException

error

public void error(org.xml.sax.SAXParseException exception)
           throws org.xml.sax.SAXException
Specified by:
error in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException

fatalError

public void fatalError(org.xml.sax.SAXParseException exception)
                throws org.xml.sax.SAXException
Specified by:
fatalError in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException