public ClassBinding() {
super("class");
}
public Object parse(Element element, Parse parse, Parser parser) {
ClassDescriptor classDescriptor = null;
String className = XmlUtil.attribute(element, "class-name");
if (className!=null) {
classDescriptor = new ClassDescriptor();
classDescriptor.setClassName(className);
} else {
parse.addProblem("class must have classname attribute: "+XmlUtil.toString(element), element);
}
return classDescriptor;
}