org.databene.benerator.engine.parser.xml
Class SettingParser

java.lang.Object
  extended by org.databene.webdecs.xml.AbstractXMLElementParser<Statement>
      extended by org.databene.benerator.engine.parser.xml.AbstractBeneratorDescriptorParser
          extended by org.databene.benerator.engine.parser.xml.SettingParser
All Implemented Interfaces:
org.databene.webdecs.xml.XMLElementParser<Statement>

public class SettingParser
extends AbstractBeneratorDescriptorParser

Parses a <Property> element in a Benerator descriptor file.

Created: 25.10.2009 00:58:53

Since:
0.6.0
Author:
Volker Bergmann

Nested Class Summary
static class SettingParser.SourceExpression<E>
          Evaluates a 'source' expression to a Generator.
 
Field Summary
 
Fields inherited from class org.databene.benerator.engine.parser.xml.AbstractBeneratorDescriptorParser
logger
 
Fields inherited from class org.databene.webdecs.xml.AbstractXMLElementParser
elementName, optionalAttributes, requiredAttributes, supportedParentTypes
 
Constructor Summary
SettingParser()
           
 
Method Summary
 Statement doParse(org.w3c.dom.Element element, Statement[] parentPath, BeneratorParseContext context)
           
static org.databene.script.Expression<?> parseValue(org.w3c.dom.Element element)
           
 
Methods inherited from class org.databene.benerator.engine.parser.xml.AbstractBeneratorDescriptorParser
containsGeneratorStatement, containsLoop, doParse, isLoop, parseOnErrorAttribute, parsePageSize
 
Methods inherited from class org.databene.webdecs.xml.AbstractXMLElementParser
assertAtLeastOneAttributeIsSet, assertAttributeIsNotSet, assertAttributeIsSet, assertElementName, checkAttributes, checkAttributeSupport, checkSupportedAttributes, createSyntaxError, createSyntaxError, excludeAttributes, getOptionalAttribute, getRequiredAttribute, parent, parse, parseOptionalBoolean, parseOptionalInteger, parseOptionalLong, parseOptionalName, parseRequiredName, supports, syntaxError, syntaxWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SettingParser

public SettingParser()
Method Detail

doParse

public Statement doParse(org.w3c.dom.Element element,
                         Statement[] parentPath,
                         BeneratorParseContext context)
Specified by:
doParse in class AbstractBeneratorDescriptorParser

parseValue

public static org.databene.script.Expression<?> parseValue(org.w3c.dom.Element element)


Copyright © 2013. All Rights Reserved.