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

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

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

Dom.domNodeByTypeElements介绍

[英]Picks up all node elements that are assignable to the given type, except those who are matched by other named elements in the model. Used to implement FromElement("").
[中]拾取可分配给给定类型的所有节点元素,但与模型中其他命名元素匹配的节点元素除外。用于实现FromElement(“
”)。

代码示例

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

public <T> List<T> nodeByTypeElements(final Class<T> baseType) {
  final List<Dom> elements = domNodeByTypeElements(baseType);
  return new AbstractList<T>() {
    public T get(int index) {
      return baseType.cast(elements.get(index).get());
    }
    public int size() {
      return elements.size();
    }
  };
}

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

final Class itemType = Types.erasure(Types.getTypeArgument(returnType,0));
final List<Dom> v = ("*".equals(xmlName)?dom.domNodeByTypeElements(itemType):dom.nodeElements(xmlName));

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

? parent.domNodeByTypeElements(thisview.getProxyType())
: new ArrayList<Dom>();

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

public <T> List<T> nodeByTypeElements(final Class<T> baseType) {
  final List<Dom> elements = domNodeByTypeElements(baseType);
  return new AbstractList<T>() {
    public T get(int index) {
      return baseType.cast(elements.get(index).get());
    }
    public int size() {
      return elements.size();
    }
  };
}

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

public <T> List<T> nodeByTypeElements(final Class<T> baseType) {
  final List<Dom> elements = domNodeByTypeElements(baseType);
  return new AbstractList<T>() {
    public T get(int index) {
      return baseType.cast(elements.get(index).get());
    }
    public int size() {
      return elements.size();
    }
  };
}

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

public <T> List<T> nodeByTypeElements(final Class<T> baseType) {
  final List<Dom> elements = domNodeByTypeElements(baseType);
  return new AbstractList<T>() {
    public T get(int index) {
      return baseType.cast(elements.get(index).get());
    }
    public int size() {
      return elements.size();
    }
  };
}

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

public <T> List<T> nodeByTypeElements(final Class<T> baseType) {
  final List<Dom> elements = domNodeByTypeElements(baseType);
  return new AbstractList<T>() {
    public T get(int index) {
      return baseType.cast(elements.get(index).get());
    }
    public int size() {
      return elements.size();
    }
  };
}

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

final Class itemType = Types.erasure(Types.getTypeArgument(returnType,0));
final List<Dom> v = ("*".equals(xmlName)?dom.domNodeByTypeElements(itemType):dom.nodeElements(xmlName));

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

final Class itemType = Types.erasure(Types.getTypeArgument(returnType,0));
final List<Dom> v = ("*".equals(xmlName)?dom.domNodeByTypeElements(itemType):dom.nodeElements(xmlName));

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

final Class itemType = Types.erasure(Types.getTypeArgument(returnType,0));
final List<Dom> v = ("*".equals(xmlName)?dom.domNodeByTypeElements(itemType):dom.nodeElements(xmlName));

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

final Class itemType = Types.erasure(Types.getTypeArgument(returnType,0));
final List<Dom> v = ("*".equals(xmlName)?dom.domNodeByTypeElements(itemType):dom.nodeElements(xmlName));

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

? parent.domNodeByTypeElements(thisview.getProxyType())
: new ArrayList<Dom>();

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

? parent.domNodeByTypeElements(thisview.getProxyType())
: new ArrayList<Dom>();

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

parent.domNodeByTypeElements(thisview.getProxyType());

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

parent.domNodeByTypeElements(thisview.getProxyType());

相关文章