Package org.onosproject.cli.net
Class PortNumberCompleter
- java.lang.Object
-
- org.onosproject.cli.AbstractCompleter
-
- org.onosproject.cli.AbstractChoicesCompleter
-
- org.onosproject.cli.net.PortNumberCompleter
-
- All Implemented Interfaces:
org.apache.karaf.shell.api.console.Completer
- Direct Known Subclasses:
NumericPortNumberCompleter
public class PortNumberCompleter extends AbstractChoicesCompleter
PortNumber completer, which returns candidates inPortNumber.toString()
form. Assumes argument right before the one being completed is DeviceId.
-
-
Field Summary
-
Fields inherited from class org.onosproject.cli.AbstractChoicesCompleter
commandLine, session
-
-
Constructor Summary
Constructors Constructor Description PortNumberCompleter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<java.lang.String>
choices()
protected DeviceId
lookForDeviceId()
Look for valid DeviceId in arguments passed so far.-
Methods inherited from class org.onosproject.cli.AbstractChoicesCompleter
complete
-
-
-
-
Method Detail
-
lookForDeviceId
protected DeviceId lookForDeviceId()
Look for valid DeviceId in arguments passed so far.- Returns:
- DeviceId found or null if not found
-
choices
protected java.util.List<java.lang.String> choices()
- Specified by:
choices
in classAbstractChoicesCompleter
-
-