org.benow.web.complete
Class CompletionServiceImpl
java.lang.Object
org.benow.web.complete.CompletionServiceImpl
- All Implemented Interfaces:
- org.benow.java.spec.Markup, org.benow.service.Service, CompletionService
public class CompletionServiceImpl
- extends java.lang.Object
- implements CompletionService
| Nested classes/interfaces inherited from interface org.benow.java.spec.Markup |
org.benow.java.spec.Markup.ParamName, org.benow.java.spec.Markup.ReturnDescription |
|
Method Summary |
java.util.List<CompleteResults> |
getCompletionsFor(java.lang.Class<?> aClass,
java.lang.String aField,
java.lang.String prefix,
java.lang.String parameters)
Get completions for a field within a given class starting with prefix. |
java.util.List<CompleteResults> |
getCompletionsForSpanning(java.lang.Class<?> aClass,
java.lang.String aField,
java.lang.String prefix,
java.lang.String parameters,
int starting,
int spanning)
Get completions for a field within a given class starting with prefix. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompletionServiceImpl
public CompletionServiceImpl()
getCompletionsFor
public java.util.List<CompleteResults> getCompletionsFor(java.lang.Class<?> aClass,
java.lang.String aField,
java.lang.String prefix,
java.lang.String parameters)
throws java.io.IOException
- Description copied from interface:
CompletionService
- Get completions for a field within a given class starting with prefix.
Note: prefixes shorter than 3 characters are typically ignored.
- Specified by:
getCompletionsFor in interface CompletionService
parameters - loose text parameter to pass to completers, typically empty
- Returns:
- relevant completions for prefix
- Throws:
java.io.IOException
getCompletionsForSpanning
public java.util.List<CompleteResults> getCompletionsForSpanning(java.lang.Class<?> aClass,
java.lang.String aField,
java.lang.String prefix,
java.lang.String parameters,
int starting,
int spanning)
throws java.io.IOException
- Description copied from interface:
CompletionService
- Get completions for a field within a given class starting with prefix. A
start offset and number of items can be returned to page through results.
Note: prefixes shorter than 3 characters are typically ignored.
- Specified by:
getCompletionsForSpanning in interface CompletionService
parameters - loose text parameter to pass to completers, typically emptystarting - index to start from, SubList.FROM_START (-1) for start
- Returns:
- relevant completions for prefix
- Throws:
java.io.IOException