com.ibm.wsspi.anno.util

Interface Util_InternMap


  1. public interface Util_InternMap

Nested Class Summary

Modifier and Type Interface and Description
  1. static class
Util_InternMap.ValueType

Field Summary

Modifier and Type Field and Description
  1. static
  2. boolean
DO_FORCE
  1. static
  2. boolean
DO_NOT_FORCE

Method Summary

Modifier and Type Method and Description
  1. boolean
contains(java.lang.String name)
  1. Util_Factory
getFactory()
  1. java.lang.String
getHashText()
  1. int
getLogThreshHold()
  1. java.lang.String
getName()
  1. int
getSize()
  1. int
getTotalLength()
  1. java.util.Collection<java.lang.String>
getValues()
  1. Util_InternMap.ValueType
getValueType()
  1. java.lang.String
intern(java.lang.String name)
  1. java.lang.String
intern(java.lang.String name,boolean doForce)
  1. void
log(TraceComponent tc)
  1. void
logState()
  1. java.lang.String
validate(java.lang.String value,Util_InternMap.ValueType valueType)
Check the input value for syntax errors based on the type of value.

Field Detail

DO_FORCE

  1. static final boolean DO_FORCE
See Also:

DO_NOT_FORCE

  1. static final boolean DO_NOT_FORCE
See Also:

Method Detail

getHashText

  1. java.lang.String getHashText()

getLogThreshHold

  1. int getLogThreshHold()

logState

  1. void logState()

log

  1. void log(TraceComponent tc)

getFactory

  1. Util_Factory getFactory()

getName

  1. java.lang.String getName()

validate

  1. java.lang.String validate(java.lang.String value,
  2. Util_InternMap.ValueType valueType)
Check the input value for syntax errors based on the type of value.

The validate method will return a message key as the string if a validation error is found. The message key should exist in the NLS resource bundle used by the caller. The message key can then be passed to com.ibm.websphere.ras.Tr along with any substitution parameters for display in the log file.

Parameters:
value - a String that contains the value to be validated
valueType - a ValueType that identifies the type of 'value'
Returns:
String if 'value' contains an error, return the message key to the corresponding error message from the resource bundle, else return 'null'.

getValueType

  1. Util_InternMap.ValueType getValueType( )

getValues

  1. java.util.Collection<java.lang.String> getValues( )

getSize

  1. int getSize()

getTotalLength

  1. int getTotalLength()

contains

  1. boolean contains(java.lang.String name)

intern

  1. java.lang.String intern(java.lang.String name)

intern

  1. java.lang.String intern(java.lang.String name,
  2. boolean doForce)