public class QNameConverter extends AbstractBaseConverter<QName>
String
into a QName
.
For a description of the format, see QName.valueOf(String)
.
Example:
@Parameter(names = { "--qName" }, converter = QNameConverter.class)
private QName qName;
QName
,
QName.valueOf(String)
failOnNull, targetClass
Constructor and Description |
---|
QNameConverter(String optionName)
Constructs a converter.
|
Modifier and Type | Method and Description |
---|---|
protected QName |
convertImpl(String value)
Converts a value.
|
convert, getErrorString, isSingle, newParameterException, newParameterException, split, toInt, toURI
public QNameConverter(String optionName)
optionName
- The option name, may be null.protected QName convertImpl(String value)
AbstractBaseConverter
convertImpl
in class AbstractBaseConverter<QName>
value
- the value to convertCopyright © 2016-2016 Gary Gregory. All Rights Reserved.
Use is subject to The Apache Software License, Version 2.0