private static boolean checkValue(String val) throws MalformedObjectNameException {
  if (val == null)   throw new NullPointerException("Invalid value (null)");
  final int len=val.length();
  if (len == 0)   return false;
  final char[] s=val.toCharArray();
  final int[] result=parseValue(s,0);
  final int endValue=result[0];
  final boolean value_pattern=result[1] == 1;
  if (endValue < len)   throw new MalformedObjectNameException("Invalid character in value: `" + s[endValue] + "'");
  return value_pattern;
}

private static boolean checkValue ( String val ) throws MalformedObjectNameException { if ( val == null ) throw new NullPointerException ( "Invalid value (null)" ) ; final int len = val . length ( ) ; if ( len == 0 ) return false ; final char [ ] s = val . toCharArray ( ) ; final int [ ] result = parseValue ( s , 0 ) ; final int endValue = result [ 0 ] ; final boolean value_pattern = result [ 1 ] == 1 ; if ( endValue < len ) throw new MalformedObjectNameException ( "Invalid character in value: `" + s [ endValue ] + "'" ) ; return value_pattern ; }
check if the supplied value is a valid value .
