org.ow2.jonas.deployment.common.digester
Class JDigester

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.apache.commons.digester.Digester
          extended by org.ow2.jonas.deployment.common.digester.JDigester
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class JDigester
extends org.apache.commons.digester.Digester

This class defines a Digester for the xml parsing of deployment descriptors standard and specific

Author:
Philippe Coq

Field Summary
 
Fields inherited from class org.apache.commons.digester.Digester
bodyText, bodyTexts, classLoader, configured, entityResolver, entityValidator, errorHandler, factory, inputSources, JAXP_SCHEMA_LANGUAGE, locator, log, match, matches, namespaceAware, namespaces, params, parser, publicId, reader, root, rules, saxLog, schema, schemaLanguage, schemaLocation, stack, substitutor, useContextClassLoader, validating, W3C_XML_SCHEMA, xincludeAware
 
Constructor Summary
JDigester(JRuleSetBase ruleSet, boolean parsingWithValidation, boolean namespaceAware, DTDs dtds, Schemas schemas)
          Construct an instance of a JDigester which is a Digester that is configured for parsing the deployment descriptors standards and specifics used in JOnAS application.
 
Method Summary
 void parse(Reader reader, String fileName, TopLevelElement element)
          Parse the deployment descriptor
 
Methods inherited from class org.apache.commons.digester.Digester
addBeanPropertySetter, addBeanPropertySetter, addCallMethod, addCallMethod, addCallMethod, addCallMethod, addCallParam, addCallParam, addCallParam, addCallParam, addCallParamPath, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addObjectCreate, addObjectCreate, addObjectCreate, addObjectCreate, addObjectParam, addRule, addRuleSet, addSetNestedProperties, addSetNestedProperties, addSetNestedProperties, addSetNext, addSetNext, addSetProperties, addSetProperties, addSetProperties, addSetProperty, addSetRoot, addSetRoot, addSetTop, addSetTop, characters, cleanup, clear, configure, createInputSourceFromURL, createInputSourceFromURL, createSAXException, createSAXException, createSAXException, endDocument, endElement, endPrefixMapping, error, fatalError, findNamespaceURI, getClassLoader, getCount, getCurrentElementName, getCurrentNamespaces, getCustomContentHandler, getDebug, getDocumentLocator, getEntityResolver, getErrorHandler, getFactory, getFeature, getLogger, getMatch, getNamespaceAware, getParser, getProperty, getPublicId, getReader, getRoot, getRuleNamespaceURI, getRules, getSAXLogger, getSchema, getSchemaLanguage, getStackAction, getSubstitutor, getUseContextClassLoader, getValidating, getXIncludeAware, getXMLReader, getXMLSchema, ignorableWhitespace, initialize, isEmpty, log, log, notationDecl, parse, parse, parse, parse, parse, parse, peek, peek, peek, peek, peekParams, peekParams, pop, pop, popParams, processingInstruction, push, push, pushParams, register, register, resetRoot, resolveEntity, setClassLoader, setCustomContentHandler, setDebug, setDocumentLocator, setEntityResolver, setErrorHandler, setFeature, setLogger, setNamespaceAware, setProperty, setPublicId, setRuleNamespaceURI, setRules, setSAXLogger, setSchema, setSchemaLanguage, setStackAction, setSubstitutor, setUseContextClassLoader, setValidating, setXIncludeAware, setXMLSchema, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDigester

public JDigester(JRuleSetBase ruleSet,
                 boolean parsingWithValidation,
                 boolean namespaceAware,
                 DTDs dtds,
                 Schemas schemas)
          throws DeploymentDescException
Construct an instance of a JDigester which is a Digester that is configured for parsing the deployment descriptors standards and specifics used in JOnAS application. the Digester contains the rules for the xml parsing By default the created digester is set with: useContextClassLoader = true

Parameters:
ruleSet - an object that extends JRuleSetBase
parsingWithValidation - flag for xmlvalidation
namespaceAware - must be true when schema is used
dtds - mapping between publicId and local Urls of DTDs
schemas - local urls for the schemas
Throws:
DeploymentDescException - if the deployment descriptors are corrupted.
Method Detail

parse

public void parse(Reader reader,
                  String fileName,
                  TopLevelElement element)
           throws DeploymentDescException
Parse the deployment descriptor

Parameters:
reader - the Reader of the XML file.
fileName - the name of the file.
element - top level xml element which is a structure containing the result of the xml parsing.
Throws:
DeploymentDescException - if the deployment descriptor is corrupted.


Copyright © 2010 OW2 Consortium. All Rights Reserved.