protected final Context startElement(Attributes attributes, ExceptionListener exceptionListener)
throws AssemblyException
{
// note: simple elements should not have any attributes. We inform
// the user of this syntactical but uncritical problem by sending
// an IllegalArgumentException for each unneccessary attribute
int size = attributes.getLength();
for (int i = 0; i < size; i++) {
String attributeName = attributes.getQName(i);
Exception e =
new IllegalArgumentException(
"Unneccessary attribute '"
+ attributeName
+ "' discarded.");
exceptionListener.exceptionThrown(e);
}
return context = new ObjectContext();
}
SimpleHandler.java 文件源码
java
阅读 44
收藏 0
点赞 0
评论 0
项目:JamVM-PH
作者:
评论列表
文章目录