public abstract class ValidatingCallbackHandler extends Object implements CommandLineParser.CallbackHandler
Modifier and Type | Field and Description |
---|---|
protected String |
operationStr |
Constructor and Description |
---|
ValidatingCallbackHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertValidNodeName(String nodeName) |
protected void |
assertValidParameterName(String name) |
protected void |
assertValidType(String nodeType) |
void |
nodeName(int index,
String nodeName) |
void |
nodeType(int index,
String nodeType) |
void |
operationName(int index,
String operationName) |
void |
property(String name,
String value,
int nameValueSeparatorIndex) |
void |
propertyName(int index,
String propertyName) |
void |
start(String operationString) |
protected abstract void |
validatedNodeName(int index,
String nodeName) |
protected abstract void |
validatedNodeType(int index,
String nodeType) |
protected abstract void |
validatedOperationName(int index,
String operationName) |
protected abstract void |
validatedProperty(String name,
String value,
int nameValueSeparatorIndex) |
protected abstract void |
validatedPropertyName(int index,
String propertyName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addressOperationSeparator, header, headerListEnd, headerListStart, headerName, headerNameValueSeparator, headerSeparator, nodeSeparator, nodeType, nodeTypeNameSeparator, nodeTypeOrName, outputTarget, parentNode, propertyListEnd, propertyListStart, propertyNameValueSeparator, propertySeparator, rootNode, setFormat
protected String operationStr
public void start(String operationString)
start
in interface CommandLineParser.CallbackHandler
public void nodeType(int index, String nodeType) throws OperationFormatException
nodeType
in interface CommandLineParser.CallbackHandler
OperationFormatException
protected abstract void validatedNodeType(int index, String nodeType) throws OperationFormatException
OperationFormatException
public void nodeName(int index, String nodeName) throws OperationFormatException
nodeName
in interface CommandLineParser.CallbackHandler
OperationFormatException
protected abstract void validatedNodeName(int index, String nodeName) throws OperationFormatException
OperationFormatException
public void operationName(int index, String operationName) throws OperationFormatException
operationName
in interface CommandLineParser.CallbackHandler
OperationFormatException
protected abstract void validatedOperationName(int index, String operationName) throws OperationFormatException
OperationFormatException
public void propertyName(int index, String propertyName) throws OperationFormatException
propertyName
in interface CommandLineParser.CallbackHandler
OperationFormatException
protected abstract void validatedPropertyName(int index, String propertyName) throws OperationFormatException
OperationFormatException
public void property(String name, String value, int nameValueSeparatorIndex) throws OperationFormatException
property
in interface CommandLineParser.CallbackHandler
OperationFormatException
protected abstract void validatedProperty(String name, String value, int nameValueSeparatorIndex) throws OperationFormatException
OperationFormatException
protected void assertValidType(String nodeType) throws OperationFormatException
OperationFormatException
protected void assertValidNodeName(String nodeName) throws OperationFormatException
OperationFormatException
protected void assertValidParameterName(String name) throws OperationFormatException
OperationFormatException
Copyright © 2023 JBoss by Red Hat. All rights reserved.