org.jnetstream.protocol
Interface Bound<T>

Type Parameters:
T - linked field value type

public interface Bound<T>

Defines a method for checking a binding by value of a protocol. If a field in NPL has a "linked" modifier on it, then the auto generated protocol definition will also implement this Bound interface which will provide the checkBinding(T) method. The method allows checking if the value of any of the linked fields matches the supplied value.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Method Summary
 boolean checkBinding(T value)
          Checks if supplied value matches any of the fields marked as "linked" in source NPL definition file.
 

Method Detail

checkBinding

boolean checkBinding(T value)
                     throws java.io.IOException
Checks if supplied value matches any of the fields marked as "linked" in source NPL definition file.

Parameters:
value - value to check against the field
Returns:
true if value matches any of the "linked" field, another words an logical OR is performed on all linked fields against the supplied value, otherwise false is returned
Throws:
java.io.IOException