本文整理了Java中org.apache.abdera.model.Element.getExtensionAttributes()
方法的一些代码示例,展示了Element.getExtensionAttributes()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.getExtensionAttributes()
方法的具体详情如下:
包路径:org.apache.abdera.model.Element
类名称:Element
方法名:getExtensionAttributes
[英]Returns a listing of extension attributes on this element (extension attributes are attributes whose namespace URI is different than the elements)
[中]返回此元素上的扩展属性列表(扩展属性是命名空间URI不同于元素的属性)
代码示例来源:origin: org.apache.abdera/abdera-core
public List<QName> getExtensionAttributes() {
return internal.getExtensionAttributes();
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.abdera
public List<QName> getExtensionAttributes() {
return internal.getExtensionAttributes();
}
代码示例来源:origin: org.apache.abdera/abdera-server
/**
* Return false if the element contains any extension elements that are not supported
*/
public static boolean checkElementNamespaces(Element element, List<String> ignore) {
List<QName> attrs = element.getExtensionAttributes();
for (QName qname : attrs) {
String ns = qname.getNamespaceURI();
if (!ignore.contains(ns))
return false;
}
if (element instanceof ExtensibleElement) {
ExtensibleElement ext = (ExtensibleElement)element;
List<Element> extensions = ext.getExtensions();
for (Element el : extensions) {
QName qname = el.getQName();
String ns = qname.getNamespaceURI();
if (!ignore.contains(ns))
return false;
if (!checkElementNamespaces(el, ignore))
return false;
}
}
return true;
}
内容来源于网络,如有侵权,请联系作者删除!