public abstract class Schema extends Object
Constructor and Description |
---|
Schema() |
Modifier and Type | Method and Description |
---|---|
AttributeConverter |
getAttributeConverter(Class<?> type)
Finds the most recent converter in the schema chain that can convert the
specified type.
|
int |
getLineNumber() |
void |
onBadAttributeValue(int line,
String elem,
String attr,
String value,
Class<?> paramType) |
void |
onHandlerException(int line,
String elem,
Method method,
Throwable e) |
void |
onMissingAttribute(int line,
String elem,
String attr) |
void |
onUnexpectedAttribute(int line,
String elem,
String attr,
String value) |
void |
onUnexpectedChild(int line,
String elem) |
void |
onUnexpectedElement(int line,
String elem) |
void |
registerAttributeConverter(Class<?> type,
AttributeConverter converter) |
void |
setLineNumber(int lineNumber) |
void |
setParent(Schema parent) |
public AttributeConverter getAttributeConverter(Class<?> type)
public int getLineNumber()
public void onBadAttributeValue(int line, String elem, String attr, String value, Class<?> paramType) throws UnableToCompleteException
UnableToCompleteException
public void onHandlerException(int line, String elem, Method method, Throwable e) throws UnableToCompleteException
UnableToCompleteException
public void onMissingAttribute(int line, String elem, String attr) throws UnableToCompleteException
UnableToCompleteException
public void onUnexpectedAttribute(int line, String elem, String attr, String value) throws UnableToCompleteException
UnableToCompleteException
public void onUnexpectedChild(int line, String elem) throws UnableToCompleteException
UnableToCompleteException
public void onUnexpectedElement(int line, String elem) throws UnableToCompleteException
UnableToCompleteException
public void registerAttributeConverter(Class<?> type, AttributeConverter converter)
public void setLineNumber(int lineNumber)
public void setParent(Schema parent)
Copyright © 2018. All rights reserved.