当前位置: 首页>>代码示例>>Java>>正文


Java Attribute.getParent方法代码示例

本文整理汇总了Java中org.jdom.Attribute.getParent方法的典型用法代码示例。如果您正苦于以下问题:Java Attribute.getParent方法的具体用法?Java Attribute.getParent怎么用?Java Attribute.getParent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jdom.Attribute的用法示例。


在下文中一共展示了Attribute.getParent方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: skipPathMacros

import org.jdom.Attribute; //导入方法依赖的package包/类
@Override
public boolean skipPathMacros(Attribute attribute) {
  final Element parent = attribute.getParent();
  final String attrName = attribute.getName();
  String tagName = parent.getName();
  if (tagName.equals(EnvironmentVariablesComponent.ENV) &&
      (attrName.equals(EnvironmentVariablesComponent.NAME) || attrName.equals(EnvironmentVariablesComponent.VALUE))) {
    return true;
  }

  if (tagName.equals("configuration") && attrName.equals("name")) {
    return true;
  }

  return false;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:RunConfigurationPathMacroFilter.java

示例2: skipPathMacros

import org.jdom.Attribute; //导入方法依赖的package包/类
@Override
public boolean skipPathMacros(Attribute attribute) {
  final Element parent = attribute.getParent();

  if (parent.getName().equals("option")) {
    String optionName = parent.getAttributeValue("name");
    if ("MAIN_CLASS_NAME".equals(optionName) || "METHOD_NAME".equals(optionName)) {
      return true;
    }
  }

  return false;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:JavaRunConfigurationPathMacroFilter.java

示例3: recursePathMacros

import org.jdom.Attribute; //导入方法依赖的package包/类
@Override
public boolean recursePathMacros(Attribute attribute) {
  if (attribute.getName().equals("value")) {
    Element parent = attribute.getParent();
    if (parent != null && "option".equals(parent.getName()) && "ADDITIONAL_OPTIONS_STRING".equals(parent.getAttributeValue("name"))) {
      Element grandParent = parent.getParentElement();
      return grandParent != null && grandParent.getName().equals("component")
             && "JavacSettings".equals(grandParent.getAttributeValue("name"));
    }
  }
  return false;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:JavacConfigurationMacroFilter.java

示例4: skipPathMacros

import org.jdom.Attribute; //导入方法依赖的package包/类
@Override
public boolean skipPathMacros(Attribute attribute) {
  final Element parent = attribute.getParent();
  final String parentName = parent.getName();
  if (VcsConfiguration.MESSAGE_ELEMENT_NAME.equals(parentName) && VcsConfiguration.VALUE_ATTR.equals(attribute.getName())) {
    return true;
  }
  if ("option".equals(parentName) && "LAST_COMMIT_MESSAGE".equals(parent.getAttributeValue("name"))) {
    return true;
  }
  return false;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:VcsPathMacroFilter.java

示例5: skipPathMacros

import org.jdom.Attribute; //导入方法依赖的package包/类
@Override
public boolean skipPathMacros(Attribute attribute) {
  final Element parent = attribute.getParent();
  if ("mapping".equals(parent.getName()) && "remote-root".equals(attribute.getName())) {
    return true;
  }
  return false;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:PathMappingsMacroFilter.java

示例6: recursePathMacros

import org.jdom.Attribute; //导入方法依赖的package包/类
@Override
public boolean recursePathMacros(Attribute attribute) {
  final Element parent = attribute.getParent();
  if (parent != null && "option".equals(parent.getName())) {
    final Element grandParent = parent.getParentElement();
    return grandParent != null && "configuration".equals(grandParent.getName());
  }
  return false;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:RunConfigurationPathMacroFilter.java

示例7: recursePathMacros

import org.jdom.Attribute; //导入方法依赖的package包/类
@Override
public boolean recursePathMacros(Attribute attribute) {
  if (attribute.getName().equals("value")) {
    Element parent = attribute.getParent();
    if (parent != null && "option".equals(parent.getName()) && "ADDITIONAL_OPTIONS_STRING".equals(parent.getAttributeValue("name"))) {
      Element grandParent = parent.getParentElement();
      return grandParent != null && grandParent.getName().equals("component")
             && grandParent.getAttributeValue("name").equals("JavacSettings");
    }
  }
  return false;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:13,代码来源:JavacConfigurationMacroFilter.java

示例8: skipPathMacros

import org.jdom.Attribute; //导入方法依赖的package包/类
@Override
public boolean skipPathMacros(Attribute attribute) {
  final Element parent = attribute.getParent();
  final String attrName = attribute.getName();
  if (parent.getName().equals(EnvironmentVariablesComponent.ENV) &&
      (attrName.equals(EnvironmentVariablesComponent.NAME) || attrName.equals(EnvironmentVariablesComponent.VALUE))) {
    return true;
  }
  return false;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:11,代码来源:RunConfigurationPathMacroFilter.java


注:本文中的org.jdom.Attribute.getParent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。