gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-19 04:46:40 26 4
gpt4 key购买 nike

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

XElement.addAttribute介绍

[英]Adds a new attribute to this entry.
[中]将新属性添加到此条目。

代码示例

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

/**
 * Adds a new attribute to this entry.
 * @param name the name of the attribute
 * @param value the value of the attribute
 * @return <code>this</code>
 */
public XElement addString( String name, String value ){
  XAttribute attribute = new XAttribute( name );
  attribute.setString( value );
  addAttribute( attribute );
  return this;
}

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

/**
 * Adds a new attribute to this entry.
 * @param name the name of the attribute
 * @param value the value of the attribute
 * @return <code>this</code>
 */
public XElement addByteArray( String name, byte[] value ){
  XAttribute attribute = new XAttribute( name );
  attribute.setByteArray( value );
  addAttribute( attribute );
  return this;
}

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

/**
 * Adds a new attribute to this entry.
 * @param name the name of the attribute
 * @param value the value of the attribute
 * @return <code>this</code>
 */
public XElement addChar( String name, char value ){
  XAttribute attribute = new XAttribute( name );
  attribute.setChar( value );
  addAttribute( attribute );
  return this;
}

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

/**
 * Adds a new attribute to this entry.
 * @param name the name of the attribute
 * @param value the value of the attribute
 * @return <code>this</code>
 */
public XElement addString( String name, String value ){
  XAttribute attribute = new XAttribute( name );
  attribute.setString( value );
  addAttribute( attribute );
  return this;
}

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

/**
 * Adds a new attribute to this entry.
 * @param name the name of the attribute
 * @param value the value of the attribute
 * @return <code>this</code>
 */
public XElement addByte( String name, byte value ){
  XAttribute attribute = new XAttribute( name );
  attribute.setByte( value );
  addAttribute( attribute );
  return this;
}

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

/**
 * Adds a new attribute to this entry.
 * @param name the name of the attribute
 * @param value the value of the attribute
 * @return <code>this</code>
 */
public XElement addByte( String name, byte value ){
  XAttribute attribute = new XAttribute( name );
  attribute.setByte( value );
  addAttribute( attribute );
  return this;
}

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

/**
 * Adds a new attribute to this entry.
 * @param name the name of the attribute
 * @param value the value of the attribute
 * @return <code>this</code>
 */
public XElement addShort( String name, short value ){
  XAttribute attribute = new XAttribute( name );
  attribute.setShort( value );
  addAttribute( attribute );
  return this;
}

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

/**
 * Adds a new attribute to this entry.
 * @param name the name of the attribute
 * @param value the value of the attribute
 * @return <code>this</code>
 */
public XElement addInt( String name, int value ){
  XAttribute attribute = new XAttribute( name );
  attribute.setInt( value );
  addAttribute( attribute );
  return this;
}

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

/**
 * Adds a new attribute to this entry.
 * @param name the name of the attribute
 * @param value the value of the attribute
 * @return <code>this</code>
 */
public XElement addShort( String name, short value ){
  XAttribute attribute = new XAttribute( name );
  attribute.setShort( value );
  addAttribute( attribute );
  return this;
}

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

/**
 * Adds a new attribute to this entry.
 * @param name the name of the attribute
 * @param value the value of the attribute
 * @return <code>this</code>
 */
public XElement addFloat( String name, float value ){
  XAttribute attribute = new XAttribute( name );
  attribute.setFloat( value );
  addAttribute( attribute );
  return this;
}

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

/**
 * Adds a new attribute to this entry.
 * @param name the name of the attribute
 * @param value the value of the attribute
 * @return <code>this</code>
 */
public XElement addDouble( String name, double value ){
  XAttribute attribute = new XAttribute( name );
  attribute.setDouble( value );
  addAttribute( attribute );
  return this;
}

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

/**
 * Adds a new attribute to this entry.
 * @param name the name of the attribute
 * @param value the value of the attribute
 * @return <code>this</code>
 */
public XElement addBoolean( String name, boolean value ){
  XAttribute attribute = new XAttribute( name );
  attribute.setBoolean( value );
  addAttribute( attribute );
  return this;
}

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

/**
 * Adds a new attribute to this entry.
 * @param name the name of the attribute
 * @param value the value of the attribute
 * @return <code>this</code>
 */
public XElement addLong( String name, long value ){
  XAttribute attribute = new XAttribute( name );
  attribute.setLong( value );
  addAttribute( attribute );
  return this;
}

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

/**
 * Adds a new attribute to this entry.
 * @param name the name of the attribute
 * @param value the value of the attribute
 * @return <code>this</code>
 */
public XElement addFloat( String name, float value ){
  XAttribute attribute = new XAttribute( name );
  attribute.setFloat( value );
  addAttribute( attribute );
  return this;
}

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

/**
 * Adds a new attribute to this entry.
 * @param name the name of the attribute
 * @param value the value of the attribute
 * @return <code>this</code>
 */
public XElement addDouble( String name, double value ){
  XAttribute attribute = new XAttribute( name );
  attribute.setDouble( value );
  addAttribute( attribute );
  return this;
}

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

/**
 * Adds a new attribute to this entry.
 * @param name the name of the attribute
 * @param value the value of the attribute
 * @return <code>this</code>
 */
public XElement addBoolean( String name, boolean value ){
  XAttribute attribute = new XAttribute( name );
  attribute.setBoolean( value );
  addAttribute( attribute );
  return this;
}

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

/**
 * Adds a new attribute to this entry.
 * @param name the name of the attribute
 * @param value the value of the attribute
 * @return <code>this</code>
 */
public XElement addInt( String name, int value ){
  XAttribute attribute = new XAttribute( name );
  attribute.setInt( value );
  addAttribute( attribute );
  return this;
}

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

/**
 * Adds a new attribute to this entry.
 * @param name the name of the attribute
 * @param value the value of the attribute
 * @return <code>this</code>
 */
public XElement addLong( String name, long value ){
  XAttribute attribute = new XAttribute( name );
  attribute.setLong( value );
  addAttribute( attribute );
  return this;
}

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

/**
 * Adds a new attribute to this entry.
 * @param name the name of the attribute
 * @param value the value of the attribute
 * @return <code>this</code>
 */
public XElement addChar( String name, char value ){
  XAttribute attribute = new XAttribute( name );
  attribute.setChar( value );
  addAttribute( attribute );
  return this;
}

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

/**
 * Adds a new attribute to this entry.
 * @param name the name of the attribute
 * @param value the value of the attribute
 * @return <code>this</code>
 */
public XElement addByteArray( String name, byte[] value ){
  XAttribute attribute = new XAttribute( name );
  attribute.setByteArray( value );
  addAttribute( attribute );
  return this;
}

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