Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  This is free and unencumbered software released into the public domain.
  Anyone is free to copy, modify, publish, use, compile, sell, or
  distribute this software, either in source code form or as a compiled
  binary, for any purpose, commercial or non-commercial, and by any
  In jurisdictions that recognize copyright laws, the author or authors
 of this software dedicate any and all copyright interest in the
 software to the public domain. We make this dedication for the benefit
 of the public at large and to the detriment of our heirs and
 successors. We intend this dedication to be an overt act of
 relinquishment in perpetuity of all present and future rights to this
 software under copyright law.
public interface ResourceLookup {
Return the name of a resource associated with this resource UID.

uid Unique identifier of a resource in string format
KeyValue pair containing the uid and name of the requested resource, or null
	KeyValue lookup(String uidthrows IOException;

The total number of resources of this type. This may be used to determine if these resources may fit in a dropdown list, or if a search interface may be required.
	long count() throws IOException;

List the UID and name of all resources of this type.
should be called first to ensure that this will not return too many objects.
List the UID and name of each resource matching the provided search terms.

keywords Filter the resources based on these keywords.
KeyValue pairs containing the uid and name of all resources matching the keywords
	List<KeyValuesearch(String keywordsthrows IOException;
New to GrepCode? Check out our FAQ X