gpt4 book ai didi

bibliothek.util.xml.XElement.getElement()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 06:14:40 27 4
gpt4 key购买 nike

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

XElement.getElement介绍

[英]Gets the index'th child of this element.
[中]获取此元素的第四个子索引。

代码示例

代码示例来源:origin: xyz.cofe/docking-frames-core

public void load( XElement element ) {
  x = element.getElement( "x" ).getDouble();
  y = element.getElement( "y" ).getDouble();
  width = element.getElement( "width" ).getDouble();
  height = element.getElement( "height" ).getDouble();
}

代码示例来源:origin: xyz.cofe/docking-frames-core

public PlaceholderKey( XElement in ){
  shared = in.getBoolean( "shared" );
  
  XElement xanchor = in.getElement( "anchor" );
  if( xanchor != null ){
    anchor = xanchor.getString();
  }
  
  XElement[] xplaceholders = in.getElements( "placeholder" );
  placeholders = new Path[ xplaceholders.length ];
  for( int i = 0; i < xplaceholders.length; i++ ){
    placeholders[i] = new Path( xplaceholders[i].getString() );
  }
}

代码示例来源:origin: xyz.cofe/docking-frames-common

@Override
  public void readXML( DockSituation situation, PropertyTransformer transformer, boolean entry, XElement element ) {
    super.readXML( situation, transformer, entry, element.getElement( "base" ) );
    modes.readXML( element.getElement( "modes" ) );
  }
}

代码示例来源:origin: org.opentcs.thirdparty.dockingframes/docking-frames-common

@Override
  public void readXML( DockSituation situation, PropertyTransformer transformer, boolean entry, XElement element ) {
    super.readXML( situation, transformer, entry, element.getElement( "base" ) );
    modes.readXML( element.getElement( "modes" ) );
  }
}

代码示例来源:origin: org.orbisgis/orbisgis-view

@Override
public XElement getElement(String name) {
    return new XElementImpl(intern.getElement(name));
}

代码示例来源:origin: org.opentcs.thirdparty.dockingframes/docking-frames-common

public void readXML( XElement element ) {
    frontend.readXML( element.getElement( "frontend" ) );
  }
});

代码示例来源:origin: org.orbisgis/orbisgis-view

@Override
public XElement getElement(int index) {
    return new XElementImpl(intern.getElement(index));
}

代码示例来源:origin: xyz.cofe/docking-frames-common

public void readXML( XElement element ) {
    frontend.readXML( element.getElement( "frontend" ) );
  }
});

代码示例来源:origin: xyz.cofe/docking-frames-ext-toolbar

@Override
  public void load( XElement element ){
    final XElement xindex = element.getElement("index");
    final XElement xplaceholder = element.getElement("placeholder");

    if (xindex != null){
      index = xindex.getInt();
    }
    if (xplaceholder != null){
      placeholder = new Path(xplaceholder.getString());
    } else{
      placeholder = null;
    }
  }
}

代码示例来源:origin: org.opentcs.thirdparty.dockingframes/docking-frames-common

public void readXML( XElement element ) {
  String key = null;
  XElement xkey = element.getElement( "key" );
  if( xkey != null ){
    key = xkey.getString();
  }
  select( key );
}

代码示例来源:origin: org.opentcs.thirdparty.dockingframes/docking-frames-common

public Path read( XElement element, PlaceholderStrategy placeholders ){
  XElement xtype = element.getElement( "type" );
  if( xtype == null ){
    return null;
  }
  return new Path( xtype.getString() );
}

代码示例来源:origin: xyz.cofe/docking-frames-common

public void readXML( XElement element ) {
  String key = null;
  XElement xkey = element.getElement( "key" );
  if( xkey != null ){
    key = xkey.getString();
  }
  select( key );
}

代码示例来源:origin: xyz.cofe/docking-frames-common

public Path read( XElement element, PlaceholderStrategy placeholders ){
  XElement xtype = element.getElement( "type" );
  if( xtype == null ){
    return null;
  }
  return new Path( xtype.getString() );
}

代码示例来源:origin: org.opentcs.thirdparty.dockingframes/docking-frames-common

public Location readPropertyXML( XElement element ) {
    XElement xmode = element.getElement( "mode" );
    Path mode = null;
    if( xmode != null ){
      mode = new Path( xmode.getString() );
    }
    String root = element.getElement( "root" ).getString();
    DockableProperty location = transformer.readXML( element.getElement( "location" ) );
    if( mode == null ){
      mode = guessMode( location );
    }
    return new Location( mode, root, location );
  }
}

代码示例来源:origin: xyz.cofe/docking-frames-common

public void readXML( XElement element ) {
    settings = getFrontend().readBlopXML( element.getElement( "frontend" ) );
  }    
}

代码示例来源:origin: xyz.cofe/docking-frames-ext-toolbar

@Override
public ToolbarGroupDockStationLayout read( XElement element, PlaceholderStrategy strategy ){
  final XElement xplaceholders = element.getElement( "placeholders" );
  final XElement xexpanded = element.getElement( "expanded" );
  final PlaceholderMap map = new PlaceholderMap( xplaceholders, strategy );
  map.setPlaceholderStrategy( null );
  ExpandedState state = ExpandedState.SHRUNK;
  if( xexpanded != null ) {
    state = ExpandedState.valueOf( xexpanded.getString() );
  }
  return new ToolbarGroupDockStationLayout( map, state );
}

代码示例来源:origin: xyz.cofe/docking-frames-ext-toolbar

@Override
public ToolbarDockStationLayout read( XElement element, PlaceholderStrategy strategy ){
  final XElement xplaceholders = element.getElement( "placeholders" );
  final XElement xexpanded = element.getElement( "expanded" );
  final PlaceholderMap map = new PlaceholderMap( xplaceholders, strategy );
  map.setPlaceholderStrategy( null );
  ExpandedState state = ExpandedState.SHRUNK;
  if( xexpanded != null ) {
    state = ExpandedState.valueOf( xexpanded.getString() );
  }
  return new ToolbarDockStationLayout( map, state );
}

代码示例来源:origin: xyz.cofe/docking-frames-ext-toolbar

@Override
public ToolbarContainerDockStationLayout read( XElement element, PlaceholderStrategy placeholders ){
  final XElement xplaceholders = element.getElement( "placeholders" );
  final PlaceholderMap map = new PlaceholderMap( xplaceholders, placeholders );
  map.setPlaceholderStrategy( null );
  return new ToolbarContainerDockStationLayout( map );
}

代码示例来源:origin: org.opentcs.thirdparty.dockingframes/docking-frames-common

public CommonMultipleDockableLayout read( XElement element, PlaceholderStrategy placeholders ) {
  CommonMultipleDockableLayout layout = new CommonMultipleDockableLayout();
  layout.setLayout( delegate.create() );
  layout.getLayout().readXML( element.getElement( "multiple" ) );
  layout.setId( element.getElement( "id" ).getString() );
  XElement xarea = element.getElement( "area" );
  if( xarea != null )
    layout.setArea( xarea.getString() );
  return layout;
}

代码示例来源:origin: xyz.cofe/docking-frames-common

public CommonMultipleDockableLayout read( XElement element, PlaceholderStrategy placeholders ) {
  CommonMultipleDockableLayout layout = new CommonMultipleDockableLayout();
  layout.setLayout( delegate.create() );
  layout.getLayout().readXML( element.getElement( "multiple" ) );
  layout.setId( element.getElement( "id" ).getString() );
  XElement xarea = element.getElement( "area" );
  if( xarea != null )
    layout.setArea( xarea.getString() );
  return layout;
}

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