it.amattioli.workstate.config
Class XmlConfiguration
java.lang.Object
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
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 configurationid - the configuration identifier
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.