protected void setUp() throws Exception { schema = SchemaManager.getSchemaForSchema(); assertNotNull(schema); for (int i = 0; i < elementNames.length; i++) { Element elm = schema.getElement(schemaQName(elementNames[i])); if (elm == null) throw new AssertionFailedError("Can't get element " + elementNames[i]); elementMap.put(elementNames[i], elm); } }
public void testElements() { Element element = schema.getElement(schemaQName("element")); List attribs = element.getAllAttributes(); checkNameList(element_attribs, attribs, false); List arrays = element.getAllArrays(); checkNameList(element_arrays, arrays, true); }