s.clear();
s.add("teamMascot");
s.add("teamLogo");
for (Map.Entry<QName, XmlSchemaNotation> e : notations.entrySet()) {
XmlSchemaNotation xsn = e.getValue();
String name = xsn.getName();
XmlSchemaAnnotation xsa = xsn.getAnnotation();
List<XmlSchemaAnnotationItem> col = xsa.getItems();
assertEquals(1, col.size());
XmlSchemaDocumentation xsd = null;
for (int k = 0; k < col.size(); k++) {
xsd = (XmlSchemaDocumentation)col.get(k);
}
if ("teamMascot".equals(name)) {
assertEquals("http://www.team.com/graphics/teamMascot", xsn.getPublic());
assertEquals("com/team/graphics/teamMascot", xsn.getSystem());
assertEquals("notation.teamMascot", xsn.getId());
assertEquals("en", xsd.getLanguage());
NodeList nl = xsd.getMarkup();
for (int j = 0; j < nl.getLength(); j++) {
Node n = nl.item(j);
if (n.getNodeType() == Node.TEXT_NODE) {
assertEquals("Location of the corporate mascot.", n.getNodeValue());
}
}
} else if ("teamLogo".equals(name)) {
assertEquals("http://www.team.com/graphics/teamLogo", xsn.getPublic());
assertEquals("com/team/graphics/teamLogo", xsn.getSystem());
assertEquals("notation.teamLogo", xsn.getId());
assertEquals("en", xsd.getLanguage());
NodeList nl = xsd.getMarkup();
for (int j = 0; j < nl.getLength(); j++) {
Node n = nl.item(j);
if (n.getNodeType() == Node.TEXT_NODE) {