private void doVerify ( Parameter p ) throws NamespaceSyntaxWarning { if ( p . getValue ( ) == null ) { throw new InvalidArgument ( "parameter value is null" ) ; } Namespace ns = p . getNamespace ( ) ; String resourceLocation = ns . getResourceLocation ( ) ; if ( resourceLocation == null ) { throw new InvalidArgument ( "resourceLocation" , resourceLocation ) ; } // get opened namespace and lookup namespace parameter encoding JDBMNamespaceLookup il = openNamespaces . get ( ns . getResourceLocation ( ) ) ; if ( il == null ) { throw new IllegalStateException ( "namespace index is not open." ) ; } String encoding = il . lookup ( p . getValue ( ) ) ; if ( encoding == null ) { throw new NamespaceSyntaxWarning ( ns . getResourceLocation ( ) , ns . getPrefix ( ) , p . getValue ( ) ) ; } }
Do namespace value verification against a resource location . This implementation assumes the namespace has been open prior to execution .