org.jdom.Attribute.getAttributeType()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(118)

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

Attribute.getAttributeType介绍

[英]This will return the actual declared type of this Attribute.
[中]这将返回此Attribute的实际声明类型。

代码示例

代码示例来源:origin: org.jdom/jdom-contrib

/**
  * <p>
  * Gets the ID attribute for <code>elt</code> and adds the
  * correpsonding entries in the ID mapping table
  * <code>ids</code>.</p>
  *
  * @param  elt   the element to the ID attributes from.
  * @param  ids   the ID lookup table to populate.
  */
  private static void addIdAttributes(Element elt, Map ids) {
   List attrs = elt.getAttributes();
   for (Iterator i=attrs.iterator(); i.hasNext(); ) {
     Attribute attr = (Attribute)(i.next());

     if (attr.getAttributeType() == Attribute.ID_TYPE) {
      ids.put(attr.getValue(), elt);
      break;
     }
   }
   return;
  }
}

代码示例来源:origin: org.apache.cxf/cxf-rt-databinding-aegis

public String getAttributeType(int i) {
  return toStaxType(getAttribute(i).getAttributeType());
}

代码示例来源:origin: apache/cxf

public String getAttributeType(int i) {
  return toStaxType(getAttribute(i).getAttributeType());
}

代码示例来源:origin: org.codehaus.xfire/xfire-core

public String getAttributeType(int i)
{
  return toStaxType(getAttribute(i).getAttributeType());
}

代码示例来源:origin: org.jdom/jdom-legacy

a.getName(),
a.getQualifiedName(),
getAttributeTypeName(a.getAttributeType()),
a.getValue());

相关文章