public String findConnectorPropertyString ( String desiredPropertyName , String defaultValue ) { String retVal = defaultValue ; String name = null ; ConnectorProperty property = null ; Enumeration < Object > e = this . elements ( ) ; while ( e . hasMoreElements ( ) ) { property = ( ConnectorProperty ) e . nextElement ( ) ; name = property . getName ( ) ; if ( name . equals ( desiredPropertyName ) ) { retVal = ( String ) property . getValue ( ) ; } } return retVal ; }
Given this ConnectorProperties Vector find the String identified by the input desiredPropertyName . If not found return the defaultValue .