JSlim  


com.gtcgroup.jslim
Class ServiceElementVO

java.lang.Object
  extended bycom.gtcgroup.jslim.DocumentPathSuperVO
      extended bycom.gtcgroup.jslim.ServicesSuperVO
          extended bycom.gtcgroup.jslim.ServiceElementVO

final class ServiceElementVO
extends ServicesSuperVO

This immutable class contains element text and variables providing traceability for error messages.

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
(package private) ServiceElementVO()
          Constructor.
(package private) ServiceElementVO(boolean blnForTesting)
          Constructor.
(package private) ServiceElementVO(int intDocumentPath, int intServiceType, java.lang.String strServiceKey, java.lang.String strElementKey, java.lang.String strElementText)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
           
(package private)  int getDocumentPath()
          Returns the path representation of the descriptor document.
(package private)  java.lang.String getElementKey()
          Returns the element key representation read from a descriptor document.
(package private)  java.lang.String getElementText()
          Return the element text read from a descriptor document.
(package private)  java.lang.String getServiceKey()
          Returns the service key representation read from a descriptor document.
(package private)  int getServiceType()
          Returns the service type representation read from a descriptor document.
 int hashCode()
           
(package private)  ServiceElementVO updateElementText(java.lang.String strElementText)
          Returns an updated ServiceElementVO.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceElementVO

ServiceElementVO()
Constructor. (This constructor is used when an exception needs to be thrown and no descriptor document context information is available.)


ServiceElementVO

ServiceElementVO(boolean blnForTesting)
Constructor. (This constructor is used for testing.)

Parameters:
blnForTesting - Indicates whether the object was created for testing.

ServiceElementVO

ServiceElementVO(int intDocumentPath,
                 int intServiceType,
                 java.lang.String strServiceKey,
                 java.lang.String strElementKey,
                 java.lang.String strElementText)
Constructor.

Parameters:
intDocumentPath - Represents the path of a descriptor document.
intServiceType - Represents the service type read from a descriptor document.
strServiceKey - Represents the service key read from a descriptor document.
strElementKey - Represents an element key from a descriptor document.
strElementText - The text from a <Element> element read from a descriptor document.
Method Detail

updateElementText

final ServiceElementVO updateElementText(java.lang.String strElementText)
Returns an updated ServiceElementVO.

Parameters:
strElementText - The text from a <Element> element read from a descriptor document.
Returns:
An updated ServiceElementVO.

getServiceType

final int getServiceType()
Returns the service type representation read from a descriptor document.

Returns:
The service type representation.

getServiceKey

final java.lang.String getServiceKey()
Returns the service key representation read from a descriptor document.

Returns:
The service key representation.

getElementKey

final java.lang.String getElementKey()
Returns the element key representation read from a descriptor document.

Returns:
The element key representation.

getElementText

final java.lang.String getElementText()
Return the element text read from a descriptor document.

Returns:
The element text read from a descriptor document.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class DocumentPathSuperVO

hashCode

public int hashCode()
Overrides:
hashCode in class DocumentPathSuperVO

getDocumentPath

final int getDocumentPath()
Returns the path representation of the descriptor document.

Returns:
The path representation of the descriptor document.

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.