System.out.println ( String.format ( "Server Handle: %d", resultEntry.getValue ().getServerHandle ()  ) ); System.out.println ( String.format ( "Data Type: %d", resultEntry.getValue ().getCanonicalDataType ()  ) ); System.out.println ( String.format ( "Access Rights: %d", resultEntry.getValue ().getAccessRights ()  ) );
System.out.println ( String.format ( "Server Handle: %08X", resultEntry.getValue ().getServerHandle () ) ); System.out.println ( String.format ( "Data Type: %d", resultEntry.getValue ().getCanonicalDataType () ) ); System.out.println ( String.format ( "Access Rights: %d", resultEntry.getValue ().getAccessRights () ) ); System.out.println ( String.format ( "Reserved: %d", resultEntry.getValue ().getReserved () ) );
    public static boolean dumpOPCITEMRESULT ( KeyedResultSet<OPCITEMDEF,OPCITEMRESULT> result )    {        int failed = 0;        for ( KeyedResult<OPCITEMDEF,OPCITEMRESULT> resultEntry : result )        {            System.out.println ( "==================================" );            System.out.println ( String.format ( "Item: '%s' ", resultEntry.getKey ().getItemID () ) );                        System.out.println ( String.format ( "Error Code: %08x", resultEntry.getErrorCode () ) );            if ( !resultEntry.isFailed () )            {                System.out.println ( String.format ( "Server Handle: %d", resultEntry.getValue ().getServerHandle ()  ) );                System.out.println ( String.format ( "Data Type: %d", resultEntry.getValue ().getCanonicalDataType ()  ) );                System.out.println ( String.format ( "Access Rights: %d", resultEntry.getValue ().getAccessRights ()  ) );            }            else                failed++;        }        return failed == 0;    }