gpt4 book ai didi

org.metawidget.util.XmlUtils.getNextSiblingElement()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 22:05:05 26 4
gpt4 key购买 nike

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

XmlUtils.getNextSiblingElement介绍

暂无

代码示例

代码示例来源:origin: org.metawidget.modules/metawidget-all

@Override
protected Element getNextSiblingElement( Element element ) {
  return XmlUtils.getNextSiblingElement( element );
}

代码示例来源:origin: org.metawidget.modules/metawidget-core

@Override
protected Element getNextSiblingElement( Element element ) {
  return XmlUtils.getNextSiblingElement( element );
}

代码示例来源:origin: org.metawidget.modules/metawidget-core

/**
 * Inspect the given trait, looping over its siblings.
 * <p>
 * This method can be overridden by clients wishing to modify the inspection process. Most
 * clients will find it easier to override one of the sub-methods, such as
 * <code>inspectTrait</code> or <code>inspectProperty</code>.
 */
protected void inspectTraitSiblings( Element toAddTo, Element toInspect ) {
  Element toInspectToUse = toInspect;
  while ( toInspectToUse != null ) {
    Element inspectedTrait = inspectTrait( toAddTo.getOwnerDocument(), toInspectToUse );
    if ( inspectedTrait != null ) {
      toAddTo.appendChild( inspectedTrait );
    }
    toInspectToUse = XmlUtils.getNextSiblingElement( toInspectToUse );
  }
}

代码示例来源:origin: org.metawidget.modules/metawidget-all

/**
 * Inspect the given trait, looping over its siblings.
 * <p>
 * This method can be overridden by clients wishing to modify the inspection process. Most
 * clients will find it easier to override one of the sub-methods, such as
 * <code>inspectTrait</code> or <code>inspectProperty</code>.
 */
protected void inspectTraitSiblings( Element toAddTo, Element toInspect ) {
  Element toInspectToUse = toInspect;
  while ( toInspectToUse != null ) {
    Element inspectedTrait = inspectTrait( toAddTo.getOwnerDocument(), toInspectToUse );
    if ( inspectedTrait != null ) {
      toAddTo.appendChild( inspectedTrait );
    }
    toInspectToUse = XmlUtils.getNextSiblingElement( toInspectToUse );
  }
}

代码示例来源:origin: org.metawidget.modules/metawidget-all

/**
 * Prepend 'package' attribute to class 'name' and 'extends' attributes, and to 'class'
 * attributes of children.
 */
@Override
protected void preprocessDocument( Document document ) {
  Element root = document.getDocumentElement();
  String packagePrefix = root.getAttribute( "package" );
  if ( packagePrefix != null && !"".equals( packagePrefix ) ) {
    packagePrefix += StringUtils.SEPARATOR_DOT_CHAR;
    String topLevelAttribute = getTopLevelTypeAttribute();
    String extendsAttribute = getExtendsAttribute();
    Element child = XmlUtils.getFirstChildElement( root );
    while ( child != null ) {
      // 'name' attribute of 'class'/'subclass' element
      String name = child.getAttribute( topLevelAttribute );
      if ( name != null && !"".equals( name ) && name.indexOf( StringUtils.SEPARATOR_DOT_CHAR ) == -1 ) {
        child.setAttribute( topLevelAttribute, packagePrefix + name );
      }
      // 'extends' attribute of 'subclass' element
      String extendsClass = child.getAttribute( extendsAttribute );
      if ( extendsClass != null && !"".equals( extendsClass ) && extendsClass.indexOf( StringUtils.SEPARATOR_DOT_CHAR ) == -1 ) {
        child.setAttribute( extendsAttribute, packagePrefix + extendsClass );
      }
      // 'class' attributes of children
      prependPackageToClassAttribute( child, packagePrefix );
      child = XmlUtils.getNextSiblingElement( child );
    }
  }
}

代码示例来源:origin: org.metawidget.modules/metawidget-core

trait = XmlUtils.getNextSiblingElement( trait );

代码示例来源:origin: org.metawidget.modules/metawidget-all

trait = XmlUtils.getNextSiblingElement( trait );

代码示例来源:origin: org.metawidget.modules/metawidget-all

trait = XmlUtils.getNextSiblingElement( trait );
  entity.removeChild( toRemove );
  continue;
trait = XmlUtils.getNextSiblingElement( trait );

代码示例来源:origin: org.metawidget.modules/metawidget-all

trait = XmlUtils.getNextSiblingElement( trait );

代码示例来源:origin: org.metawidget.modules/metawidget-core

trait = XmlUtils.getNextSiblingElement( trait );

代码示例来源:origin: org.jboss.forge.addon/scaffold-spi

/**
* Inspects a {@link JavaClass} instance and provides inspection results in return.
*
* @param klass The {@link JavaClass} to inspect.
* @return A list representing inspection results for the {@link JavaClass}. Each list item corresponds to the
*         inspection result for every property of the provided {@link JavaClass}.
*/
public List<Map<String, String>> inspect(JavaClassSource klass)
{
 setupCompositeInspector();
 Element inspectionResult = compositeInspector.inspectAsDom(null, klass.getQualifiedName(), (String[]) null);
 Element inspectedEntity = XmlUtils.getFirstChildElement(inspectionResult);
 Element inspectedProperty = XmlUtils.getFirstChildElement(inspectedEntity);
 List<Map<String, String>> viewPropertyAttributes = new ArrayList<Map<String, String>>();
 while (inspectedProperty != null)
 {
   Map<String, String> propertyAttributes = XmlUtils.getAttributesAsMap(inspectedProperty);
   viewPropertyAttributes.add(propertyAttributes);
   inspectedProperty = XmlUtils.getNextSiblingElement(inspectedProperty);
 }
 return viewPropertyAttributes;
}

代码示例来源:origin: org.jboss.forge/forge-scaffoldx-api

/**
* Inspects a {@link JavaClass} instance and provides inspection results in return.
* 
* @param klass The {@link JavaClass} to inspect.
* @return A list representing inspection results for the {@link JavaClass}. Each list item corresponds to the
*         inspection result for every property of the provided {@link JavaClass}.
*/
public List<Map<String, String>> inspect(JavaClass klass)
{
 setupCompositeInspector();
 Element inspectionResult = compositeInspector.inspectAsDom(null, klass.getQualifiedName(), (String[]) null);
 Element inspectedEntity = XmlUtils.getFirstChildElement(inspectionResult);
 Element inspectedProperty = XmlUtils.getFirstChildElement(inspectedEntity);
 List<Map<String, String>> viewPropertyAttributes = new ArrayList<Map<String, String>>();
 while (inspectedProperty != null)
 {
   Map<String, String> propertyAttributes = XmlUtils.getAttributesAsMap(inspectedProperty);
   viewPropertyAttributes.add(propertyAttributes);
   inspectedProperty = XmlUtils.getNextSiblingElement(inspectedProperty);
 }
 return viewPropertyAttributes;
}

代码示例来源:origin: org.metawidget.modules/metawidget-all

sequence = XmlUtils.getNextSiblingElement( sequence );
sequenceLocalName = XmlUtils.getLocalName( sequence );

代码示例来源:origin: org.metawidget.modules/metawidget-core

trait = XmlUtils.getNextSiblingElement( trait );

代码示例来源:origin: org.metawidget.modules/metawidget-all

trait = XmlUtils.getNextSiblingElement( trait );

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