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

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

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

Dom.parent介绍

[英]If this DOM is a child of another DOM, the parent pointer. Otherwise null.
[中]如果此DOM是另一个DOM的子级,则父级指针。否则为空。

代码示例

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

@Override
public ConfigBean parent() {
  return (ConfigBean) super.parent();
}

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

/**
 * Locates the DOM that serves as the symbol space root.
 *
 * @return always non-null.
 */
public Dom getSymbolSpaceRoot(String typeName) {
  Dom dom = this;
  while(!dom.model.symbolSpaces.contains(typeName)) {
    Dom p = dom.parent();
    if(p==null) return dom; // root
    dom = p;
  }
  return dom;
}

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

public static <T extends ConfigBeanProxy> T getParent(ConfigBeanProxy self, Class<T> c) {
   Dom dom = Dom.unwrap(self);
  if (dom.parent()!=null) {
    return dom.parent().createProxy(c);
  } else {
    return null;
  }
}

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

public static ConfigBeanProxy getParent(ConfigBeanProxy self) {
  Dom dom = Dom.unwrap(self);
  if (dom.parent()!=null) {
    return dom.parent().createProxy();
  } else {
    return null;
  }
}

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

if (dom.parent()!=null) {
  configListeners.addAll(dom.parent().getListeners());

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

Dom parent = thisview.parent();

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

@Override
public ConfigBean parent() {
  return (ConfigBean) super.parent();
}

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

@Override
public ConfigBean parent() {
  return (ConfigBean) super.parent();
}

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

@Override
public ConfigBean parent() {
  return (ConfigBean) super.parent();
}

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

/**
 * Locates the DOM that serves as the symbol space root.
 *
 * @return always non-null.
 */
public Dom getSymbolSpaceRoot(String typeName) {
  Dom dom = this;
  while(!dom.model.symbolSpaces.contains(typeName)) {
    Dom p = dom.parent();
    if(p==null) return dom; // root
    dom = p;
  }
  return dom;
}

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

/**
 * Locates the DOM that serves as the symbol space root.
 *
 * @return always non-null.
 */
public Dom getSymbolSpaceRoot(String typeName) {
  Dom dom = this;
  while(!dom.model.symbolSpaces.contains(typeName)) {
    Dom p = dom.parent();
    if(p==null) return dom; // root
    dom = p;
  }
  return dom;
}

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

public static ConfigBeanProxy getParent(ConfigBeanProxy self) {
  Dom dom = Dom.unwrap(self);
  if (dom.parent()!=null) {
    return dom.parent().createProxy();
  } else {
    return null;
  }
}

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

public static <T extends ConfigBeanProxy> T getParent(ConfigBeanProxy self, Class<T> c) {
   Dom dom = Dom.unwrap(self);
  if (dom.parent()!=null) {
    return dom.parent().createProxy(c);
  } else {
    return null;
  }
}

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

public static ConfigBeanProxy getParent(ConfigBeanProxy self) {
  Dom dom = Dom.unwrap(self);
  if (dom.parent()!=null) {
    return dom.parent().createProxy();
  } else {
    return null;
  }
}

代码示例来源:origin: org.glassfish.main.core/kernel

private int getPrecedenceLevel(Dom entry) {
  String parent = entry.parent().getImplementation();
  int level = 4;
  if(Config.class.getCanonicalName().equals(parent))
    level = 1;
  if(Cluster.class.getCanonicalName().equals(parent))
    level = 2;
  if(Server.class.getCanonicalName().equals(parent))
    level = 3;
  return level;
}

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

public static <T extends ConfigBeanProxy> T getParent(ConfigBeanProxy self, Class<T> c) {
   Dom dom = Dom.unwrap(self);
  if (dom.parent()!=null) {
    return dom.parent().createProxy(c);
  } else {
    return null;
  }
}

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

public static <T extends ConfigBeanProxy> T getParent(ConfigBeanProxy self, Class<T> c) {
   Dom dom = Dom.unwrap(self);
  if (dom.parent()!=null) {
    return dom.parent().createProxy(c);
  } else {
    return null;
  }
}

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

public static ConfigBeanProxy getParent(ConfigBeanProxy self) {
  Dom dom = Dom.unwrap(self);
  if (dom.parent()!=null) {
    return dom.parent().createProxy();
  } else {
    return null;
  }
}

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

public static <T extends ConfigBeanProxy> T getParent(ConfigBeanProxy self, Class<T> c) {
   Dom dom = Dom.unwrap(self);
  if (dom.parent()!=null) {
    return dom.parent().createProxy(c);
  } else {
    return null;
  }
}

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

public static ConfigBeanProxy getParent(ConfigBeanProxy self) {
  Dom dom = Dom.unwrap(self);
  if (dom.parent()!=null) {
    return dom.parent().createProxy();
  } else {
    return null;
  }
}

相关文章