Question 3:
===========
18 UNKNOWNs
Use again class dictionary SchemaComplex.
Consider the following two program fragments.
The first one eliminates all AttrValue-objects contained
in the attrs data member of Element-objects.
For example:
is translated to:
The second program fragment eliminates name space references
(NSRef-objects)
from complex types (ComplexType-objects). For example:
is translated to:
Find the UNKNOWNs below (cg2 is the class graph for XML schemas):
System.out.println(" Eliminate attributes from elements ");
cg2.UNKNOWN1(s,"from UNKNOWN2 to UNKNOWN3", UNKNOWN4 UNKNOWN5() {
void UNKNOWN6(UNKNOWN7 host){
System.out.println(" Element found ");
host.UNKNOWN8(new UNKNOWN9());
}
});
System.out.println("========");
System.out.println(" Eliminate name space refs from complex types ");
cg2.UNKNOWN10(s,"from UNKNOWN11 to UNKNOWN12", UNKNOWN13 UNKNOWN14() {
void UNKNOWN15(UNKNOWN16 host){
System.out.println(" ComplexType found ");
host.UNKNOWN17(UNKNOWN18);
}
});