verinec.validation.gui.menu.actions
Class ValidateAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by verinec.validation.gui.menu.actions.ValidateAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class ValidateAction
extends AbstractAction

validates the open netsim logfile against the linked schemas. This class is implemented as a Singleton. Instances can be get using @see #getInstance(ValidationGui)

Version:
$Revision: 47 $
Author:
Dominik Jungo
See Also:
Serialized Form

Field Summary
private static String icon
           
private static ValidateAction instance
           
private  Logger jlogger
           
private  ValidationGui validationGui
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
private ValidateAction(String name, ValidationGui gui)
           
 
Method Summary
 void actionPerformed(ActionEvent arg0)
          validates the open netsim logfile against the linked schemas.
private  Element createIDList(Element logentry, Element idlist)
           
static ValidateAction getInstance(ValidationGui gui)
          returns and instance of this class. the singleton pattern ensures that there is only one instance of it. an instance is created, linked with a static variable and returned if this wasn't done before or the instance created before is just returned.
private  Document transform(Document vrp)
           
private  Document transform2(Document doc)
           
private  Document validate()
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static ValidateAction instance

validationGui

private ValidationGui validationGui

jlogger

private Logger jlogger

icon

private static final String icon
See Also:
Constant Field Values
Constructor Detail

ValidateAction

private ValidateAction(String name,
                       ValidationGui gui)
                throws VerinecException
Throws:
VerinecException
Method Detail

validate

private Document validate()

transform

private Document transform(Document vrp)
                    throws VerinecException
Throws:
VerinecException

createIDList

private Element createIDList(Element logentry,
                             Element idlist)

transform2

private Document transform2(Document doc)
                     throws VerinecException
Throws:
VerinecException

actionPerformed

public void actionPerformed(ActionEvent arg0)
validates the open netsim logfile against the linked schemas.

See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

getInstance

public static ValidateAction getInstance(ValidationGui gui)
                                  throws VerinecException
returns and instance of this class. the singleton pattern ensures that there is only one instance of it. an instance is created, linked with a static variable and returned if this wasn't done before or the instance created before is just returned.

Parameters:
gui - the validator gui
Returns:
an instance of this class
Throws:
VerinecException - if the action cannot be instanciated

Copyright © 2005 Verinec, DIUF