org.jvnet.hk2.config.Dom.setLeafElements()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(126)

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

Dom.setLeafElements介绍

[英]Updates leaf-element values.

Synchronized so that concurrenct modifications will work correctly.
[中]更新叶元素值。
已同步,以便并发修改能够正常工作。

代码示例

代码示例来源:origin: javaee/glassfish

public void set(Dom dom, Object arg) {
    if (arg instanceof List) {
      String[] strings = new String[((List) arg).size()];
      dom.setLeafElements(xmlName, (String[]) ((List)arg).toArray(strings));
    } else {//TODO -- I hope this is OK for now (km@dev.java.net 25 Mar 2008)
      throw new UnsupportedOperationException();
    }
  }
}

代码示例来源:origin: javaee/glassfish

public void set(Dom dom, Object arg) {
    if(arg==null) {
      dom.removeLeafElement(xmlName, dom.leafElement(xmlName));
    } else {
      dom.setLeafElements(xmlName,arg.toString());
    }
  }
}

代码示例来源:origin: javaee/glassfish

@Override
  public void set(Dom dom, Object arg) {
    if(arg==null) {
      dom.removeLeafElement(xmlName, dom.leafElement(xmlName));
    } else {
      dom.setLeafElements(xmlName,((Dom) arg).getKey());
    }
  }
}

代码示例来源:origin: eclipse-ee4j/glassfish

public void set(Dom dom, Object arg) {
    if (arg instanceof List) {
      String[] strings = new String[((List) arg).size()];
      dom.setLeafElements(xmlName, (String[]) ((List)arg).toArray(strings));
    } else {//TODO -- I hope this is OK for now (km@dev.java.net 25 Mar 2008)
      throw new UnsupportedOperationException();
    }
  }
}

代码示例来源:origin: org.glassfish.hk2/hk2-config

public void set(Dom dom, Object arg) {
    if (arg instanceof List) {
      String[] strings = new String[((List) arg).size()];
      dom.setLeafElements(xmlName, (String[]) ((List)arg).toArray(strings));
    } else {//TODO -- I hope this is OK for now (km@dev.java.net 25 Mar 2008)
      throw new UnsupportedOperationException();
    }
  }
}

代码示例来源:origin: com.sun.enterprise/config

public void set(Dom dom, Object arg) {
    if (arg instanceof List) {
      String[] strings = new String[((List) arg).size()];
      dom.setLeafElements(xmlName, (String[]) ((List)arg).toArray(strings));
    } else {//TODO -- I hope this is OK for now (km@dev.java.net 25 Mar 2008)
      throw new UnsupportedOperationException();
    }
  }
}

代码示例来源:origin: org.glassfish.hk2/config

public void set(Dom dom, Object arg) {
    if (arg instanceof List) {
      String[] strings = new String[((List) arg).size()];
      dom.setLeafElements(xmlName, (String[]) ((List)arg).toArray(strings));
    } else {//TODO -- I hope this is OK for now (km@dev.java.net 25 Mar 2008)
      throw new UnsupportedOperationException();
    }
  }
}

代码示例来源:origin: org.glassfish.hk2/config

public void set(Dom dom, Object arg) {
    if(arg==null) {
      dom.removeLeafElement(xmlName, dom.leafElement(xmlName));
    } else {
      dom.setLeafElements(xmlName,arg.toString());
    }
  }
}

代码示例来源:origin: eclipse-ee4j/glassfish

public void set(Dom dom, Object arg) {
    if(arg==null) {
      dom.removeLeafElement(xmlName, dom.leafElement(xmlName));
    } else {
      dom.setLeafElements(xmlName,arg.toString());
    }
  }
}

代码示例来源:origin: org.glassfish.hk2/hk2-config

public void set(Dom dom, Object arg) {
    if(arg==null) {
      dom.removeLeafElement(xmlName, dom.leafElement(xmlName));
    } else {
      dom.setLeafElements(xmlName,arg.toString());
    }
  }
}

代码示例来源:origin: com.sun.enterprise/config

public void set(Dom dom, Object arg) {
    if(arg==null) {
      dom.removeLeafElement(xmlName, dom.leafElement(xmlName));
    } else {
      dom.setLeafElements(xmlName,arg.toString());
    }
  }
}

代码示例来源:origin: org.glassfish.hk2/config

@Override
  public void set(Dom dom, Object arg) {
    if(arg==null) {
      dom.removeLeafElement(xmlName, dom.leafElement(xmlName));
    } else {
      dom.setLeafElements(xmlName,((Dom) arg).getKey());
    }
  }
}

代码示例来源:origin: org.glassfish.hk2/hk2-config

@Override
  public void set(Dom dom, Object arg) {
    if(arg==null) {
      dom.removeLeafElement(xmlName, dom.leafElement(xmlName));
    } else {
      dom.setLeafElements(xmlName,((Dom) arg).getKey());
    }
  }
}

代码示例来源:origin: com.sun.enterprise/config

@Override
  public void set(Dom dom, Object arg) {
    if(arg==null) {
      dom.removeLeafElement(xmlName, dom.leafElement(xmlName));
    } else {
      dom.setLeafElements(xmlName,((Dom) arg).getKey());
    }
  }
}

代码示例来源:origin: eclipse-ee4j/glassfish

@Override
  public void set(Dom dom, Object arg) {
    if(arg==null) {
      dom.removeLeafElement(xmlName, dom.leafElement(xmlName));
    } else {
      dom.setLeafElements(xmlName,((Dom) arg).getKey());
    }
  }
}

相关文章