public class AttributeConverterForInteger extends AttributeConverter
Constructor and Description |
---|
AttributeConverterForInteger() |
Modifier and Type | Method and Description |
---|---|
Object |
convertToArg(Schema schema,
int lineNumber,
String elemName,
String attrName,
String attrValue)
Converts from a string to the type needed.
|
public Object convertToArg(Schema schema, int lineNumber, String elemName, String attrName, String attrValue) throws UnableToCompleteException
AttributeConverter
convertToArg
in class AttributeConverter
schema
- used to report conversion problemsattrValue
- the value to convertnull
if the conversion failed.UnableToCompleteException
Copyright © 2018. All rights reserved.