本文整理了Java中org.jdom.Attribute.getAttributeType()
方法的一些代码示例,展示了Attribute.getAttributeType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Attribute.getAttributeType()
方法的具体详情如下:
包路径:org.jdom.Attribute
类名称: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());
内容来源于网络,如有侵权,请联系作者删除!