public int getDocumentSupport( final XmlDocumentInfo documentInfo ) { final String rootNamespace = documentInfo.getRootElementNameSpace(); if ( rootNamespace != null && rootNamespace.length() > 0 ) { if ( BundleNamespaces.CONTENT.equals( rootNamespace ) == false ) { return XmlFactoryModule.NOT_RECOGNIZED; } else if ( "content".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_NAMESPACE; } } else if ( "content".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_TAGNAME; } return XmlFactoryModule.NOT_RECOGNIZED; }
public int getDocumentSupport( final XmlDocumentInfo documentInfo ) { final String rootNamespace = documentInfo.getRootElementNameSpace(); if ( rootNamespace != null && rootNamespace.length() > 0 ) { if ( SQLDataFactoryModule.NAMESPACE.equals( rootNamespace ) == false ) { return XmlFactoryModule.NOT_RECOGNIZED; } else if ( "direct-sql-datasource".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_NAMESPACE; } } else if ( "direct-sql-datasource".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_TAGNAME; } return XmlFactoryModule.NOT_RECOGNIZED; }
public int getDocumentSupport( final XmlDocumentInfo documentInfo ) { final String rootNamespace = documentInfo.getRootElementNameSpace(); if ( rootNamespace != null && rootNamespace.length() > 0 ) { if ( BundleNamespaces.CONTENT.equals( rootNamespace ) == false ) { return XmlFactoryModule.NOT_RECOGNIZED; } else if ( "content".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_NAMESPACE; } } else if ( "content".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_TAGNAME; } return XmlFactoryModule.NOT_RECOGNIZED; }
public int getDocumentSupport( final XmlDocumentInfo documentInfo ) { final String rootNamespace = documentInfo.getRootElementNameSpace(); if ( rootNamespace != null && rootNamespace.length() > 0 ) { if ( SQLDataFactoryModule.NAMESPACE.equals( rootNamespace ) == false ) { return XmlFactoryModule.NOT_RECOGNIZED; } else if ( "sql-datasource".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_NAMESPACE; } } else if ( "sql-datasource".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_TAGNAME; } return XmlFactoryModule.NOT_RECOGNIZED; }
public int getDocumentSupport( final XmlDocumentInfo documentInfo ) { final String rootNamespace = documentInfo.getRootElementNameSpace(); if ( rootNamespace != null && rootNamespace.length() > 0 ) { if ( SimpleParserModule.NAMESPACE.equals( rootNamespace ) == false ) { return XmlFactoryModule.NOT_RECOGNIZED; } else if ( "report".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_NAMESPACE; } } else if ( "report".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_TAGNAME; } return XmlFactoryModule.NOT_RECOGNIZED; }
public int getDocumentSupport( final XmlDocumentInfo documentInfo ) { final String rootNamespace = documentInfo.getRootElementNameSpace(); if ( rootNamespace != null && rootNamespace.length() > 0 ) { if ( StaticDataFactoryModule.NAMESPACE.equals( rootNamespace ) == false ) { return XmlFactoryModule.NOT_RECOGNIZED; } else if ( "static-datasource".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_NAMESPACE; } } else if ( "static-datasource".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_TAGNAME; } return XmlFactoryModule.NOT_RECOGNIZED; }
public int getDocumentSupport( final XmlDocumentInfo documentInfo ) { final String rootNamespace = documentInfo.getRootElementNameSpace(); if ( rootNamespace != null && rootNamespace.length() > 0 ) { if ( NAMESPACE.equals( rootNamespace ) == false ) { return NOT_RECOGNIZED; } else if ( "manifest".equals( documentInfo.getRootElement() ) ) { return RECOGNIZED_BY_NAMESPACE; } } else if ( "manifest".equals( documentInfo.getRootElement() ) ) { return RECOGNIZED_BY_TAGNAME; } return NOT_RECOGNIZED; }
public int getDocumentSupport( final XmlDocumentInfo documentInfo ) { final String rootNamespace = documentInfo.getRootElementNameSpace(); if ( rootNamespace != null && rootNamespace.length() > 0 ) { if ( StaticDataFactoryModule.NAMESPACE.equals( rootNamespace ) == false ) { return XmlFactoryModule.NOT_RECOGNIZED; } else if ( "direct-static-datasource".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_NAMESPACE; } } else if ( "direct-static-datasource".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_TAGNAME; } return XmlFactoryModule.NOT_RECOGNIZED; }
public int getDocumentSupport( final XmlDocumentInfo documentInfo ) { final String rootNamespace = documentInfo.getRootElementNameSpace(); if ( rootNamespace != null && rootNamespace.length() > 0 ) { if ( ExtParserModule.NAMESPACE.equals( rootNamespace ) == false ) { return XmlFactoryModule.NOT_RECOGNIZED; } else if ( "report-definition".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_NAMESPACE; } } else if ( "report-definition".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_TAGNAME; } return XmlFactoryModule.NOT_RECOGNIZED; }
public int getDocumentSupport( final XmlDocumentInfo documentInfo ) { final String rootNamespace = documentInfo.getRootElementNameSpace(); if ( rootNamespace != null && rootNamespace.length() > 0 ) { if ( CompoundDataFactoryModule.NAMESPACE.equals( rootNamespace ) == false ) { return XmlFactoryModule.NOT_RECOGNIZED; } else if ( "compound-datasource".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_NAMESPACE; } } else if ( "compound-datasource".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_TAGNAME; } return XmlFactoryModule.NOT_RECOGNIZED; }
public int getDocumentSupport( final XmlDocumentInfo documentInfo ) { final String rootNamespace = documentInfo.getRootElementNameSpace(); if ( rootNamespace != null && rootNamespace.length() > 0 ) { if ( InlineDataFactoryModule.NAMESPACE.equals( rootNamespace ) == false ) { return XmlFactoryModule.NOT_RECOGNIZED; } else if ( "inline-datasource".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_NAMESPACE; } } else if ( "inline-datasource".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_TAGNAME; } return XmlFactoryModule.NOT_RECOGNIZED; }
public int getDocumentSupport( final XmlDocumentInfo documentInfo ) { final String rootNamespace = documentInfo.getRootElementNameSpace(); if ( rootNamespace != null && rootNamespace.length() > 0 ) { if ( OFFICE_NAMESPACE.equals( rootNamespace ) == false ) { return NOT_RECOGNIZED; } else if ( "document-meta".equals( documentInfo.getRootElement() ) ) { return RECOGNIZED_BY_NAMESPACE; } } else if ( "document-meta".equals( documentInfo.getRootElement() ) ) { return RECOGNIZED_BY_TAGNAME; } return NOT_RECOGNIZED; }
public int getDocumentSupport( final XmlDocumentInfo documentInfo ) { final String rootNamespace = documentInfo.getRootElementNameSpace(); if ( rootNamespace != null && rootNamespace.length() > 0 ) { if ( SequenceDataFactoryModule.NAMESPACE.equals( rootNamespace ) == false ) { return XmlFactoryModule.NOT_RECOGNIZED; } else if ( "sequence-datasource".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_NAMESPACE; } } else if ( "sequence-datasource".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_TAGNAME; } return XmlFactoryModule.NOT_RECOGNIZED; }
public int getDocumentSupport( final XmlDocumentInfo documentInfo ) { final String rootNamespace = documentInfo.getRootElementNameSpace(); if ( rootNamespace != null && rootNamespace.length() > 0 ) { if ( ExternalDataFactoryModule.NAMESPACE.equals( rootNamespace ) == false ) { return XmlFactoryModule.NOT_RECOGNIZED; } else if ( "external-datasource".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_NAMESPACE; } } else if ( "external-datasource".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_TAGNAME; } return XmlFactoryModule.NOT_RECOGNIZED; }
public int getDocumentSupport( final XmlDocumentInfo documentInfo ) { final String rootNamespace = documentInfo.getRootElementNameSpace(); if ( rootNamespace != null && rootNamespace.length() > 0 ) { if ( BundleNamespaces.CONTENT.equals( rootNamespace ) == false ) { return XmlFactoryModule.NOT_RECOGNIZED; } else if ( "content".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_NAMESPACE; } } else if ( "content".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_TAGNAME; } return XmlFactoryModule.NOT_RECOGNIZED; }
public int getDocumentSupport( final XmlDocumentInfo documentInfo ) { final String rootNamespace = documentInfo.getRootElementNameSpace(); if ( rootNamespace != null && rootNamespace.length() > 0 ) { if ( SimpleParserModule.NAMESPACE.equals( rootNamespace ) == false ) { return XmlFactoryModule.NOT_RECOGNIZED; } else if ( "report".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_NAMESPACE; } else if ( "sub-report".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_NAMESPACE; } } else if ( "report".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_TAGNAME; } else if ( "sub-report".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_TAGNAME; } return XmlFactoryModule.NOT_RECOGNIZED; }
public int getDocumentSupport( final XmlDocumentInfo documentInfo ) { final String rootNamespace = documentInfo.getRootElementNameSpace(); if ( rootNamespace != null && rootNamespace.length() > 0 ) { if ( ExtParserModule.NAMESPACE.equals( rootNamespace ) == false ) { return XmlFactoryModule.NOT_RECOGNIZED; } else if ( "report-definition".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_NAMESPACE; } else if ( "sub-report".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_NAMESPACE; } } else if ( "report-definition".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_TAGNAME; } else if ( "sub-report".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_TAGNAME; } return XmlFactoryModule.NOT_RECOGNIZED; }
/** * Checks the given document data to compute the propability of whether this factory module would be able to handle * the given data. * * @param documentInfo the document information collection. * @return an integer value indicating how good the document matches the factories requirements. */ public int getDocumentSupport( final XmlDocumentInfo documentInfo ) { final String rootNamespace = documentInfo.getRootElementNameSpace(); if ( rootNamespace != null && rootNamespace.length() > 0 ) { if ( namespace.equals( rootNamespace ) == false ) { return XmlFactoryModule.NOT_RECOGNIZED; } else if ( rootElementName.equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_NAMESPACE; } } else if ( rootElementName.equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_TAGNAME; } return XmlFactoryModule.NOT_RECOGNIZED; }
/** * Checks the given document data to compute the propability of whether this factory module would be able to handle * the given data. * * @param documentInfo * the document information collection. * @return an integer value indicating how good the document matches the factories requirements. */ public int getDocumentSupport( final XmlDocumentInfo documentInfo ) { final String rootNamespace = documentInfo.getRootElementNameSpace(); if ( rootNamespace != null && rootNamespace.length() > 0 ) { if ( BundleNamespaces.DATADEFINITION.equals( rootNamespace ) == false ) { return XmlFactoryModule.NOT_RECOGNIZED; } else if ( "data-definition".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_NAMESPACE; } } else if ( "data-definition".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_TAGNAME; } return XmlFactoryModule.NOT_RECOGNIZED; }
/** * Checks the given document data to compute the propability of whether this factory module would be able to handle * the given data. * * @param documentInfo * the document information collection. * @return an integer value indicating how good the document matches the factories requirements. */ public int getDocumentSupport( final XmlDocumentInfo documentInfo ) { final String rootNamespace = documentInfo.getRootElementNameSpace(); if ( rootNamespace != null && rootNamespace.length() > 0 ) { if ( ClassicEngineBoot.METADATA_NAMESPACE.equals( rootNamespace ) == false ) { return XmlFactoryModule.NOT_RECOGNIZED; } else if ( "meta-data".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_NAMESPACE; } } else if ( "meta-data".equals( documentInfo.getRootElement() ) ) { return XmlFactoryModule.RECOGNIZED_BY_TAGNAME; } return XmlFactoryModule.NOT_RECOGNIZED; }