use of com.sun.xml.xsom.XSAttGroupDecl in project atlasmap by atlasmap.
the class SchemaWriter method attGroupDecl.
public void attGroupDecl(XSAttGroupDecl decl) {
Iterator itr;
println(MessageFormat.format("<attGroup name=\"{0}\">", decl.getName()));
indent++;
// TODO: wildcard
itr = decl.iterateAttGroups();
while (itr.hasNext()) dumpRef((XSAttGroupDecl) itr.next());
itr = decl.iterateDeclaredAttributeUses();
while (itr.hasNext()) attributeUse((XSAttributeUse) itr.next());
indent--;
println("</attGroup>");
}
use of com.sun.xml.xsom.XSAttGroupDecl in project atlasmap by atlasmap.
the class SchemaWriter method dumpComplexTypeAttribute.
private void dumpComplexTypeAttribute(XSComplexType type) {
Iterator itr;
itr = type.iterateAttGroups();
while (itr.hasNext()) dumpRef((XSAttGroupDecl) itr.next());
itr = type.iterateDeclaredAttributeUses();
while (itr.hasNext()) attributeUse((XSAttributeUse) itr.next());
XSWildcard awc = type.getAttributeWildcard();
if (awc != null)
wildcard("anyAttribute", awc, "");
}
use of com.sun.xml.xsom.XSAttGroupDecl in project atlasmap by atlasmap.
the class redefine method action0.
private void action0() throws SAXException {
XSAttGroupDecl oldAg = $runtime.currentSchema.getAttGroupDecl(newAg.getName());
if (oldAg == null) {
$runtime.reportError(Messages.format(Messages.ERR_UNDEFINED_ATTRIBUTEGROUP, newAg.getName()));
} else {
newAg.redefine((AttGroupDeclImpl) oldAg);
$runtime.currentSchema.addAttGroupDecl(newAg, true);
}
}
Aggregations