JSlim  


com.gtcgroup.jslim
Class Validator

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

final class Validator
extends java.lang.Object

This class provides a set of static methods loosely associated with validating descriptor documents.

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 Validator()
          Constructor.
 
Method Summary
private static ValidatorServicesVO checkAllElements(org.w3c.dom.NodeList nlDocument, ValidatorServicesVO validatorServicesVO)
           
private static java.lang.String returnServiceKey(org.w3c.dom.NamedNodeMap nnmService)
           
private static int returnServiceType(org.w3c.dom.NamedNodeMap nnmService)
           
private static ValidatorServicesVO validateDocument(org.w3c.dom.Document document, ValidatorServicesVO validatorServicesVO)
           
(package private) static int validatePortfolio(DocumentPortfolioVO documentPortfolioVO)
          Validates all documents in the DocumentPortfolio collection.
private static ValidatorServicesVO verifyrRequiredElements(ValidatorServicesVO validatorServicesVO)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validator

private Validator()
Constructor.

Method Detail

validatePortfolio

static final int validatePortfolio(DocumentPortfolioVO documentPortfolioVO)
                            throws JSlimException
Validates all documents in the DocumentPortfolio collection.

Parameters:
documentPortfolioVO - Immutable class caching a DocumentVO collection.
Returns:
The number of validation errors.
Throws:
JSlimException - if an exception encountered.

validateDocument

private static final ValidatorServicesVO validateDocument(org.w3c.dom.Document document,
                                                          ValidatorServicesVO validatorServicesVO)
                                                   throws JSlimException
Throws:
JSlimException

checkAllElements

private static final ValidatorServicesVO checkAllElements(org.w3c.dom.NodeList nlDocument,
                                                          ValidatorServicesVO validatorServicesVO)

returnServiceType

private static final int returnServiceType(org.w3c.dom.NamedNodeMap nnmService)

returnServiceKey

private static final java.lang.String returnServiceKey(org.w3c.dom.NamedNodeMap nnmService)

verifyrRequiredElements

private static final ValidatorServicesVO verifyrRequiredElements(ValidatorServicesVO validatorServicesVO)
                                                          throws JSlimException
Throws:
JSlimException

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.