JSlim  


com.gtcgroup.jslim
Class Checker

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

final class Checker
extends java.lang.Object

This "Method Object" class provides validation routines for verifying the integrity of 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)

Field Summary
private  org.w3c.dom.Element element
          Represents an element in the descriptor document.
private  org.w3c.dom.Element eleService
          A portion of a descriptor document representing one service.
private  int intNumberOfAttributes
          The number of attributes documented for this service.
private  org.w3c.dom.NamedNodeMap nnmElement
          Represents a collection of nodes that can be accessed by name.
private  ValidatorServicesVO validatorServicesVO
          A collection of ValidatorServiceKeyVO objects each of which represents a service key as defined in a descriptor document.
 
Constructor Summary
(package private) Checker(int intNumberOfAttributes, org.w3c.dom.Element eleService, ValidatorServicesVO validatorServicesVO)
          Constructor.
 
Method Summary
private  void checkElementNodes()
           
private  void checkElementText(ValidatorServiceKeyVO validatorServiceKeyVO)
           
private  void checkServiceAttributes()
           
private  void checkTextNode()
           
private  java.lang.String returnElementKey()
           
private  java.lang.String returnElementText()
           
(package private)  ValidatorServicesVO run()
          Returns an updated ValidatorServicesVO after running validation checks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

intNumberOfAttributes

private final int intNumberOfAttributes
The number of attributes documented for this service.


eleService

private final org.w3c.dom.Element eleService
A portion of a descriptor document representing one service.


validatorServicesVO

private ValidatorServicesVO validatorServicesVO
A collection of ValidatorServiceKeyVO objects each of which represents a service key as defined in a descriptor document.


nnmElement

private org.w3c.dom.NamedNodeMap nnmElement
Represents a collection of nodes that can be accessed by name.


element

private org.w3c.dom.Element element
Represents an element in the descriptor document.

Constructor Detail

Checker

Checker(int intNumberOfAttributes,
        org.w3c.dom.Element eleService,
        ValidatorServicesVO validatorServicesVO)
Constructor.

Parameters:
intNumberOfAttributes - The number of attributes documented for this service.
eleService - A portion of a descriptor document representing one service.
validatorServicesVO - A collection of ValidatorServiceKeyVO objects each of which represents a service key as defined in a descriptor document.
Method Detail

run

final ValidatorServicesVO run()
                       throws JSlimException
Returns an updated ValidatorServicesVO after running validation checks.

Returns:
An updated ValidatorServicesVO.
Throws:
JSlimException - if an exception encountered.

checkServiceAttributes

private final void checkServiceAttributes()

checkElementNodes

private final void checkElementNodes()
                              throws JSlimException
Throws:
JSlimException

checkElementText

private final void checkElementText(ValidatorServiceKeyVO validatorServiceKeyVO)

checkTextNode

private final void checkTextNode()

returnElementKey

private final java.lang.String returnElementKey()

returnElementText

private final java.lang.String returnElementText()

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.