gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-19 05:32:40 25 4
gpt4 key购买 nike

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

XElement.getBoolean介绍

[英]Gets the value of an attribute.
[中]获取属性的值。

代码示例

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

public Boolean readXML( XElement element ) {
  return element.getBoolean();
}
public void write( Boolean value, DataOutputStream out ) throws IOException {

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

@Override
public boolean getBoolean(String name) {
    return intern.getBoolean(name);
}

代码示例来源: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-core

return in.getBoolean();

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

public SplitDockStationLayout read( XElement element, PlaceholderStrategy placeholders ) {
  SplitDockStationLayout.Entry root = null;
  XElement xroot = element.getElement( "node" );
  if( xroot == null )
    xroot = element.getElement( "leaf" );
  if( xroot != null )
    root = readEntry( xroot, placeholders );
  
  int fullscreen = -1;
  XElement xfullscreen = element.getElement( "fullscreen" );
  if( xfullscreen != null )
    fullscreen = xfullscreen.getInt( "id" );
  
  XElement xfullscreenAction = element.getElement( "fullscreen-action" );
  boolean fullscreenAction = true;
  if( xfullscreenAction != null ){
    fullscreenAction = xfullscreenAction.getBoolean();
  }
  
  return createLayout( root, fullscreen, fullscreenAction );
}

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

ignore = xchildren.getBoolean( "ignore" );
for( XElement xchild : xchildren.getElements( "child" )){
  children.add( readCompositionXML( xchild ));

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

map.setPlaceholderStrategy( null );
return new FlapDockStationLayout(  
    window.getBoolean( "auto" ),
    Direction.valueOf( window.getString( "direction" ) ),
    map );
  holds[i] = child[i].getBoolean( "hold" );
    sizes, window.getBoolean( "auto" ),
    Direction.valueOf( window.getString( "direction" ) ));

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

public void load( XElement element ) {
  XElement xindex = element.getElement( "index" );
  XElement xholding = element.getElement( "holding" );
  XElement xsize = element.getElement( "size" );
  XElement xplaceholder = element.getElement( "placeholder" );
  
  if( xindex == null && xholding == null ){
    index = element.getInt();
  }
  else{
    if( xindex != null )
      index = xindex.getInt();
    
    if( xholding != null )
      holding = xholding.getBoolean();
    
    if( xsize == null )
      size = -1;
    else
      size = xsize.getInt();
  }
  
  if( xplaceholder != null ){
    placeholder = new Path( xplaceholder.getString() );
  }
}

代码示例来源:origin: xyz.cofe/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 );
    }
    
    boolean applicationDefined = false;
    XElement xapplicationDefined = element.getElement( "applicationDefined" );
    if( xapplicationDefined != null ){
      applicationDefined = xapplicationDefined.getBoolean();
    }
    
    return new Location( mode, root, location, applicationDefined );
  }
}

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

public void load( XElement element ) {
  x = element.getElement( "x" ).getInt();
  y = element.getElement( "y" ).getInt();
  width = element.getElement( "width" ).getInt();
  height = element.getElement( "height" ).getInt();
  
  fullscreen = false;
  placeholder = null;
  
  XElement xfullscreen = element.getElement( "fullscreen" );
  if( xfullscreen != null ){
    fullscreen = xfullscreen.getBoolean();
  }
  
  XElement xplaceholder = element.getElement( "placeholder" );
  if( xplaceholder != null ){
    placeholder = new Path( xplaceholder.getString() );
  }
}

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

@SuppressWarnings("unchecked")
public CommonDockStationLayout read( XElement element, PlaceholderStrategy placeholders ){
  String id = null;
  XElement xid = element.getElement( "id" );
  if( xid != null ){
    id = xid.getString();
  }
  
  boolean root = element.getElement( "root" ).getBoolean();
  
  XElement xcontent = element.getElement( "content" );
  if( xcontent == null ){
    throw new XException( "missing content element" );
  }
  
  String factoryId = xcontent.getString( "delegate" );
  DockFactory<DockElement, ?, Object> factory = (DockFactory<DockElement, ?, Object>)control.intern().getDockFactory( factoryId );
  if( factory == null ){
    return new CommonDockStationLayout( id, root, factoryId, xcontent );
  }
  else{
    Object data = factory.read( xcontent, placeholders );
    if( data == null ){
      return null;
    }
    
    return new CommonDockStationLayout( id, root, factoryId, new DockLayout<Object>( factoryId, data ) );
  }
}

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

@SuppressWarnings("unchecked")
public CommonDockStationLayout read( XElement element, PlaceholderStrategy placeholders ){
  String id = null;
  XElement xid = element.getElement( "id" );
  if( xid != null ){
    id = xid.getString();
  }
  
  boolean root = element.getElement( "root" ).getBoolean();
  
  XElement xcontent = element.getElement( "content" );
  if( xcontent == null ){
    throw new XException( "missing content element" );
  }
  
  String factoryId = xcontent.getString( "delegate" );
  DockFactory<DockElement, ?, Object> factory = (DockFactory<DockElement, ?, Object>)control.intern().getDockFactory( factoryId );
  if( factory == null ){
    return new CommonDockStationLayout( id, root, factoryId, xcontent );
  }
  else{
    Object data = factory.read( xcontent, placeholders );
    if( data == null ){
      return null;
    }
    
    return new CommonDockStationLayout( id, root, factoryId, new DockLayout<Object>( factoryId, data ) );
  }
}

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

applicationDefined = xlocation.getBoolean( "applicationDefined" );

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