org.apache.ws.commons.schema.XmlSchemaObjectTable.getNames()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(153)

本文整理了Java中org.apache.ws.commons.schema.XmlSchemaObjectTable.getNames()方法的一些代码示例,展示了XmlSchemaObjectTable.getNames()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlSchemaObjectTable.getNames()方法的具体详情如下:
包路径:org.apache.ws.commons.schema.XmlSchemaObjectTable
类名称:XmlSchemaObjectTable
方法名:getNames

XmlSchemaObjectTable.getNames介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

XmlSchemaObjectTable objTable = schema.getElements();
Iterator elementNames = objTable.getNames();

代码示例来源:origin: org.springframework.ws/org.springframework.xml

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()]);
}

代码示例来源:origin: com.legsem.legstar/legstar-xsd2cob

/**
 * 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;
}

代码示例来源:origin: org.apache.woden/woden-impl-commons

Iterator qnames = elementTable.getNames();
while (qnames.hasNext()) {
  QName xseQN = (QName) qnames.next();

代码示例来源:origin: org.apache.woden/woden-impl-commons

Iterator qnames = typeTable.getNames();
while (qnames.hasNext()) {
  QName xstQN = (QName) qnames.next();

代码示例来源:origin: org.apache.woden/woden-impl-commons

Iterator elementNames = elements.getNames();
while(elementNames.hasNext())
Iterator typeNames = types.getNames();
while(typeNames.hasNext())

相关文章