Package org.jboss.as.cli.impl
Class AttributeNamePathCompleter
- java.lang.Object
-
- org.jboss.as.cli.impl.AttributeNamePathCompleter
-
- All Implemented Interfaces:
CommandLineCompleter
public class AttributeNamePathCompleter extends Object implements CommandLineCompleter
- Author:
- Alexey Loubyansky
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAttributeNamePathCompleter.AttributeFilterA filter to accept or not completion candidates.static classAttributeNamePathCompleter.AttributeNameStatestatic classAttributeNamePathCompleter.CloseBracketStatestatic classAttributeNamePathCompleter.DotStatestatic classAttributeNamePathCompleter.InitialValueStatestatic classAttributeNamePathCompleter.ListIndexStatestatic classAttributeNamePathCompleter.OpenBracketState
-
Field Summary
Fields Modifier and Type Field Description static AttributeNamePathCompleterINSTANCEstatic AttributeNamePathCompleter.AttributeFilterLIST_FILTERA list can be: an attribute of type LIST or inside an attribute of type OBJECT (complex or Map of list)static AttributeNamePathCompleter.AttributeFilterMAP_FILTERA map can be: an attribute of type OBJECT or inside an attribute of type LIST.
-
Constructor Summary
Constructors Constructor Description AttributeNamePathCompleter(OperationRequestAddress address)AttributeNamePathCompleter(OperationRequestAddress address, boolean writeOnly)AttributeNamePathCompleter(OperationRequestAddress address, boolean writeOnly, AttributeNamePathCompleter.AttributeFilter filter)AttributeNamePathCompleter(OperationRequestAddress address, AttributeNamePathCompleter.AttributeFilter filter)AttributeNamePathCompleter(org.jboss.dmr.ModelNode typeDescr)AttributeNamePathCompleter(org.jboss.dmr.ModelNode typeDescr, AttributeNamePathCompleter.AttributeFilter filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcomplete(String buffer, List<String> candidates, org.jboss.dmr.ModelNode descr)intcomplete(String buffer, List<String> candidates, org.jboss.dmr.ModelNode descr, boolean writeOnly)intcomplete(CommandContext ctx, String buffer, int cursor, List<String> candidates)protected org.jboss.as.cli.impl.AttributeNamePathCompleter.AttributeNamePathCallbackHandlerparse(String line)
-
-
-
Field Detail
-
LIST_FILTER
public static final AttributeNamePathCompleter.AttributeFilter LIST_FILTER
A list can be: an attribute of type LIST or inside an attribute of type OBJECT (complex or Map of list)
-
MAP_FILTER
public static final AttributeNamePathCompleter.AttributeFilter MAP_FILTER
A map can be: an attribute of type OBJECT or inside an attribute of type LIST.
-
INSTANCE
public static final AttributeNamePathCompleter INSTANCE
-
-
Constructor Detail
-
AttributeNamePathCompleter
public AttributeNamePathCompleter(OperationRequestAddress address, AttributeNamePathCompleter.AttributeFilter filter)
-
AttributeNamePathCompleter
public AttributeNamePathCompleter(OperationRequestAddress address)
-
AttributeNamePathCompleter
public AttributeNamePathCompleter(OperationRequestAddress address, boolean writeOnly)
-
AttributeNamePathCompleter
public AttributeNamePathCompleter(OperationRequestAddress address, boolean writeOnly, AttributeNamePathCompleter.AttributeFilter filter)
-
AttributeNamePathCompleter
public AttributeNamePathCompleter(org.jboss.dmr.ModelNode typeDescr)
-
AttributeNamePathCompleter
public AttributeNamePathCompleter(org.jboss.dmr.ModelNode typeDescr, AttributeNamePathCompleter.AttributeFilter filter)
-
-
Method Detail
-
complete
public int complete(CommandContext ctx, String buffer, int cursor, List<String> candidates)
- Specified by:
completein interfaceCommandLineCompleter
-
complete
public int complete(String buffer, List<String> candidates, org.jboss.dmr.ModelNode descr)
-
complete
public int complete(String buffer, List<String> candidates, org.jboss.dmr.ModelNode descr, boolean writeOnly)
-
parse
protected org.jboss.as.cli.impl.AttributeNamePathCompleter.AttributeNamePathCallbackHandler parse(String line) throws CommandFormatException
- Throws:
CommandFormatException
-
-