public Leaf makeText(LocatorImpl locator, AnnotationsImpl annotations) {
return new Data(locator,string);
}
public Leaf makeAttribute(NameClass nameClass, Leaf leaf, LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
Leaf r = null;
for( QName n : nameClass.listNames() ) {
Leaf l = new Attribute(locator,n,leaf);
if(r!=null) r = r.merge(l);
else r = l;
}
if(r==null) return new Empty(locator);
return r;