gpt4 book ai didi

org.ow2.util.xml.XMLUtils.getAttributeValue()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 22:14:40 25 4
gpt4 key购买 nike

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

XMLUtils.getAttributeValue介绍

[英]Returns the value of the attribute of the given element.
[中]返回给定元素的属性值。

代码示例

代码示例来源:origin: org.ow2.util/util-xml

for (int i = 0; i < properties.getLength(); i++) {
  Element elemProperty = (Element) properties.item(i);
  String pName = getAttributeValue(elemProperty, "name");
  String pValue = getAttributeValue(elemProperty, "value");
  if (pName != null && pValue != null) {
    returnedProperties.setProperty(pName, pValue);

代码示例来源:origin: org.ow2.util.xml/xml

for (int i = 0; i < properties.getLength(); i++) {
  Element elemProperty = (Element) properties.item(i);
  String pName = getAttributeValue(elemProperty, "name");
  String pValue = getAttributeValue(elemProperty, "value");
  if (pName != null && pValue != null) {
    returnedProperties.setProperty(pName, pValue);

代码示例来源:origin: org.ow2.util/util-xmlconfig

String name = XMLUtils.getAttributeValue(classElement, "name");
String className = packageName + name;
classMapping.setName(className);
String alias = XMLUtils.getAttributeValue(classElement, "alias");
if (alias != null) {
  classMapping.getAliases().add(alias);
String elementAttribute = XMLUtils.getAttributeValue(classElement, "element-attribute");
classMapping.setElementAttribute(elementAttribute);
  String attributeName = XMLUtils.getAttributeValue(attributeElement, "name");
  attributeMapping.setName(attributeName);
  String attributeAlias = XMLUtils.getAttributeValue(attributeElement, "alias");
  if (attributeAlias != null) {
    attributeMapping.getAliases().add(attributeAlias);
  String isElementName = XMLUtils.getAttributeValue(attributeElement, "element");
  if (Boolean.parseBoolean(isElementName)) {
    attributeMapping.setElement();
  String isListElementName = XMLUtils.getAttributeValue(attributeElement, "isList");
  if (Boolean.parseBoolean(isListElementName)) {
    attributeMapping.setListElement();
  String isOptional = XMLUtils.getAttributeValue(attributeElement, "optional");
  if (Boolean.parseBoolean(isOptional)) {
    attributeMapping.setOptional();

代码示例来源:origin: org.ow2.util/util-xmlconfig

String packageName = XMLUtils.getAttributeValue(packageElement, "name");

代码示例来源:origin: org.ow2.cmi/cmi-core-common

String noCmi = XMLUtils.getAttributeValue(element, "noCmi");
if(Boolean.parseBoolean(noCmi)) {
  cmiConfig.setNoCmi(true);

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com