
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
UnableToCompleteExceptionpublic void onHandlerException(int line,
String elem,
Method method,
Throwable e)
throws UnableToCompleteException
UnableToCompleteExceptionpublic void onMissingAttribute(int line,
String elem,
String attr)
throws UnableToCompleteException
UnableToCompleteExceptionpublic void onUnexpectedAttribute(int line,
String elem,
String attr,
String value)
throws UnableToCompleteException
UnableToCompleteExceptionpublic void onUnexpectedChild(int line,
String elem)
throws UnableToCompleteException
UnableToCompleteExceptionpublic void onUnexpectedElement(int line,
String elem)
throws UnableToCompleteException
UnableToCompleteExceptionpublic void registerAttributeConverter(Class<?> type, AttributeConverter converter)
public void setLineNumber(int lineNumber)
public void setParent(Schema parent)
Copyright © 2018. All rights reserved.