it.amattioli.workstate.config
Class XmlConfiguration

Show UML class diagram
java.lang.Object
  extended by it.amattioli.workstate.config.XmlConfiguration
All Implemented Interfaces:
Configuration, Serializable

public class XmlConfiguration
extends Object
implements Configuration, Serializable

An XmlConfiguration reads a state machine configuration from an XML file. The datasource string will be interpreted as the name of a resource to be found in the current thread classpath. The xml file DTD can be found in WorkflowConfig.dtd

Author:
a.mattioli
See Also:
Serialized Form

Constructor Summary
XmlConfiguration()
           
XmlConfiguration(String fileName, String id)
          Construct an XmlConfiguration given the file name and the configuration id.
 
Method Summary
 boolean equals(Object obj)
           
 String getId()
           
 int hashCode()
           
 MetaMachine read()
           
 void setId(String id)
           
 void setSource(String source)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlConfiguration

public XmlConfiguration()

XmlConfiguration

public XmlConfiguration(String fileName,
                        String id)
Construct an XmlConfiguration given the file name and the configuration id.

Parameters:
fileName - the name of the xml resource file containing the configuration
id - the configuration identifier
Method Detail

setSource

public void setSource(String source)
Specified by:
setSource in interface Configuration

setId

public void setId(String id)
Specified by:
setId in interface Configuration

getId

public String getId()
Specified by:
getId in interface Configuration

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

read

public MetaMachine read()
Specified by:
read in interface Configuration


Copyright © 2011. All Rights Reserved.