- Common ways to obtain XmlSchemaObjectTable
private void myMethod () {}
XmlSchemaObjectTable objTable = schema.getElements(); Iterator elementNames = objTable.getNames();
public QName[] getElementNames() { List<QName> result = new ArrayList<QName>(); Iterator<?> iterator = schema.getElements().getNames(); while (iterator.hasNext()) { QName name = (QName) iterator.next(); result.add(name); } return result.toArray(new QName[result.size()]); }
/** * Get name for item from another schema. * * @param table the other schema table * @param xsdObject the object for which we seek a name * @return the name */ protected static QName getName(final XmlSchemaObjectTable table, final XmlSchemaObject xsdObject) { for (Iterator < ? > it = table.getNames(); it.hasNext();) { QName name = (QName) it.next(); if (xsdObject == table.getItem(name)) { return name; } } return null; }
Iterator qnames = elementTable.getNames(); while (qnames.hasNext()) { QName xseQN = (QName) qnames.next();
Iterator qnames = typeTable.getNames(); while (qnames.hasNext()) { QName xstQN = (QName) qnames.next();