org.apache.abdera.model.Element.removeAttribute()方法的使用及代码示例

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

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

Element.removeAttribute介绍

[英]Remove the named attribute
[中]删除命名属性

代码示例

代码示例来源:origin: org.apache.abdera/abdera-core

  1. public <T extends Element> T removeAttribute(String name) {
  2. internal.removeAttribute(name);
  3. return (T)this;
  4. }

代码示例来源:origin: org.apache.abdera/abdera-core

  1. public <T extends Element> T removeAttribute(QName qname) {
  2. internal.removeAttribute(qname);
  3. return (T)this;
  4. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.abdera

  1. public <T extends Element>T removeAttribute(String name) {
  2. internal.removeAttribute(name);
  3. return (T)this;
  4. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.abdera

  1. public <T extends Element>T removeAttribute(QName qname) {
  2. internal.removeAttribute(qname);
  3. return (T)this;
  4. }

代码示例来源:origin: org.apache.abdera/abdera-extensions-main

  1. /**
  2. * Set the value of dir attribute
  3. */
  4. public static <T extends Element> void setDirection(Direction direction, T element) {
  5. if (direction != Direction.UNSPECIFIED)
  6. element.setAttributeValue(DIR, direction.toString().toLowerCase());
  7. else if (direction == Direction.UNSPECIFIED)
  8. element.setAttributeValue(DIR, "");
  9. else if (direction == null)
  10. element.removeAttribute(DIR);
  11. }

相关文章