JSlim  


com.gtcgroup.jslim
Class DocumentLoader

java.lang.Object
  extended bycom.gtcgroup.jslim.DocumentLoader

final class DocumentLoader
extends java.lang.Object

This class provides a set of static methods associated with loading descriptor document values into cached VOs.

Copyright (c) 1999 - 2004 by Global Technology Consulting Group, Inc. at gtcGroup.com.
Use is authorized, provided the source is acknowledged by inclusion of this copyright notice.

Since:
v. 1.0
Author:
MDT (MarvinToll@gtcGroup.com)

Constructor Summary
private DocumentLoader()
          Constructor.
 
Method Summary
(package private) static DocumentPortfolioVO discoverDocuments(java.util.ArrayList alDocumentNames)
          Returns a DocumentPortfolioVO collection containing descriptor documents.
private static DocumentPortfolioVO discoverDocuments(java.util.ArrayList alDocumentNames, boolean blnInitialLoad)
          Returns a DocumentPortfolioVO collection containing descriptor documents.
(package private) static DocumentPortfolioVO discoverDocuments(java.lang.String strDocumentName)
          Returns a DocumentPortfolioVO collection containing descriptor documents.
(package private) static DocumentPortfolioVO discoverDocuments(java.lang.String strDocumentName, boolean blnInitialLoad)
          Returns a DocumentPortfolioVO collection containing descriptor documents.
private static java.util.ArrayList discoverURLs(java.util.ArrayList alDocumentNames, boolean blnInitialLoad)
           
private static javax.xml.parsers.DocumentBuilder initializeDocumentBuilder()
           
(package private) static ServicesVO loadPortfolio(DocumentPortfolioVO documentPortfolioVO)
          Returns a ServicesVO caching a ServiceTypeVO collection.
(package private) static ServicesVO loadPortfolio(DocumentPortfolioVO documentPortfolioVO, boolean blnOverWriteNonLog, boolean blnOverWriteLog)
          Returns a ServicesVO caching a ServiceTypeVO collection.
(package private) static ServicesVO loadPortfolio(DocumentPortfolioVO documentPortfolioVO, boolean blnOverWriteNonLog, boolean blnOverWriteLog, ServicesVO servicesVO)
          Returns a ServicesVO caching a ServiceTypeVO collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentLoader

private DocumentLoader()
Constructor.

Method Detail

discoverDocuments

static final DocumentPortfolioVO discoverDocuments(java.lang.String strDocumentName)
                                            throws JSlimException
Returns a DocumentPortfolioVO collection containing descriptor documents.

Parameters:
strDocumentName - The relative (to classpath) document name.
Returns:
A DocumentPortfolioVO collection or null.
Throws:
JSlimException - if an exception encountered.

discoverDocuments

static final DocumentPortfolioVO discoverDocuments(java.lang.String strDocumentName,
                                                   boolean blnInitialLoad)
                                            throws JSlimException
Returns a DocumentPortfolioVO collection containing descriptor documents.

Parameters:
strDocumentName - The relative (to classpath) document name.
blnInitialLoad - Indicates if an optional initial attempt to load descriptor documents.
Returns:
A DocumentPortfolioVO collection or null.
Throws:
JSlimException - if an exception encountered.

discoverDocuments

static final DocumentPortfolioVO discoverDocuments(java.util.ArrayList alDocumentNames)
                                            throws JSlimException
Returns a DocumentPortfolioVO collection containing descriptor documents.

Parameters:
alDocumentNames - A collection of relative (to classpath) document names.
Returns:
A DocumentPortfolioVO collection or null.
Throws:
JSlimException - if an exception encountered.

discoverDocuments

private static DocumentPortfolioVO discoverDocuments(java.util.ArrayList alDocumentNames,
                                                     boolean blnInitialLoad)
                                              throws JSlimException
Returns a DocumentPortfolioVO collection containing descriptor documents.

Parameters:
alDocumentNames - A collection of relative (to classpath) document names.
blnInitialLoad - Indicates if an optional initial attempt to load descriptor documents.
Returns:
A DocumentPortfolioVO collection or null.
Throws:
JSlimException - if an exception encountered.

discoverURLs

private static final java.util.ArrayList discoverURLs(java.util.ArrayList alDocumentNames,
                                                      boolean blnInitialLoad)
                                               throws JSlimException
Throws:
JSlimException

initializeDocumentBuilder

private static javax.xml.parsers.DocumentBuilder initializeDocumentBuilder()
                                                                    throws JSlimException
Throws:
JSlimException

loadPortfolio

static final ServicesVO loadPortfolio(DocumentPortfolioVO documentPortfolioVO)
                               throws JSlimException
Returns a ServicesVO caching a ServiceTypeVO collection. boolean defaults are false and true (respectively).

Parameters:
documentPortfolioVO - Immutable class caching a DocumentVO collection.
Returns:
A ServicesVO caching a ServiceTypeVO collection.
Throws:
JSlimException - if an exception encountered.

loadPortfolio

static final ServicesVO loadPortfolio(DocumentPortfolioVO documentPortfolioVO,
                                      boolean blnOverWriteNonLog,
                                      boolean blnOverWriteLog)
                               throws JSlimException
Returns a ServicesVO caching a ServiceTypeVO collection. boolean defaults are false and true (respectively).

Parameters:
documentPortfolioVO - Immutable class caching a DocumentVO collection.
blnOverWriteNonLog - Indicates non-log service types can be over written.
blnOverWriteLog - Indicates the log service type may be over written.
Returns:
A ServicesVO caching a ServiceTypeVO collection.
Throws:
JSlimException - if an exception encountered.

loadPortfolio

static final ServicesVO loadPortfolio(DocumentPortfolioVO documentPortfolioVO,
                                      boolean blnOverWriteNonLog,
                                      boolean blnOverWriteLog,
                                      ServicesVO servicesVO)
                               throws JSlimException
Returns a ServicesVO caching a ServiceTypeVO collection. boolean defaults are false and true (respectively).

Parameters:
documentPortfolioVO - Immutable class caching a DocumentVO collection.
blnOverWriteNonLog - Indicates non-log service types can be over written.
blnOverWriteLog - Indicates the log service type may be over written.
servicesVO - Immutable class caching a ServiceTypeVO collection.
Returns:
A ServicesVO caching a ServiceTypeVO collection
Throws:
JSlimException - if an exception encountered.

JSlim  


Copyright (c) 1999 - 2004 by Global Technology Consulting Group, Inc. at gtcGroup.com.
Use is authorized, provided the source is acknowledged by inclusion of this copyright notice.