org.pentaho.reporting.engine.classic.core.modules.parser.bundle.layout
Class LayoutDefinitionXmlFactoryModule

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.parser.bundle.layout.LayoutDefinitionXmlFactoryModule
All Implemented Interfaces:
org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule

public class LayoutDefinitionXmlFactoryModule
extends Object
implements org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule

Todo: Document Me

Author:
Thomas Morgner

Field Summary
 
Fields inherited from interface org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule
NOT_RECOGNIZED, RECOGNIZED_BY_DTD, RECOGNIZED_BY_NAMESPACE, RECOGNIZED_BY_TAGNAME
 
Constructor Summary
LayoutDefinitionXmlFactoryModule()
           
 
Method Summary
 org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler createReadHandler(org.pentaho.reporting.libraries.xmlns.parser.XmlDocumentInfo documentInfo)
          Creates an XmlReadHandler for the root-tag based on the given document information.
 String getDefaultNamespace(org.pentaho.reporting.libraries.xmlns.parser.XmlDocumentInfo documentInfo)
          Returns the default namespace for a document with the characteristics given in the XmlDocumentInfo.
 int getDocumentSupport(org.pentaho.reporting.libraries.xmlns.parser.XmlDocumentInfo documentInfo)
          Checks the given document data to compute the propability of whether this factory module would be able to handle the given data.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutDefinitionXmlFactoryModule

public LayoutDefinitionXmlFactoryModule()
Method Detail

getDocumentSupport

public int getDocumentSupport(org.pentaho.reporting.libraries.xmlns.parser.XmlDocumentInfo documentInfo)
Checks the given document data to compute the propability of whether this factory module would be able to handle the given data.

Specified by:
getDocumentSupport in interface org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule
Parameters:
documentInfo - the document information collection.
Returns:
an integer value indicating how good the document matches the factories requirements.

createReadHandler

public org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler createReadHandler(org.pentaho.reporting.libraries.xmlns.parser.XmlDocumentInfo documentInfo)
Creates an XmlReadHandler for the root-tag based on the given document information.

Specified by:
createReadHandler in interface org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule
Parameters:
documentInfo - the document information that has been extracted from the parser.
Returns:
the root handler or null.

getDefaultNamespace

public String getDefaultNamespace(org.pentaho.reporting.libraries.xmlns.parser.XmlDocumentInfo documentInfo)
Returns the default namespace for a document with the characteristics given in the XmlDocumentInfo.

Specified by:
getDefaultNamespace in interface org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule
Parameters:
documentInfo - the document information.
Returns:
the default namespace uri for the document.