bibliothek.util.xml
Class XAttribute

java.lang.Object
  extended by bibliothek.util.xml.XContainer
      extended by bibliothek.util.xml.XAttribute

public class XAttribute
extends XContainer

An attribute is an element in a XML-file that has a name and perhaps a value.

Author:
Benjamin Sigg

Constructor Summary
XAttribute(String name)
          Creates a new attribute.
 
Method Summary
 XAttribute copy()
          Creates an independent copy of this container.
 String getName()
          Gets the name of this attribute.
 void setName(String name)
          Sets the name of this attribute.
 
Methods inherited from class bibliothek.util.xml.XContainer
copy, getBoolean, getByte, getByteArray, getChar, getDouble, getFloat, getInt, getLong, getShort, getString, getValue, setBoolean, setByte, setByteArray, setChar, setDouble, setFloat, setInt, setLong, setShort, setString, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XAttribute

public XAttribute(String name)
Creates a new attribute.

Parameters:
name - the name of the attribute
Method Detail

copy

public XAttribute copy()
Description copied from class: XContainer
Creates an independent copy of this container.

Overrides:
copy in class XContainer
Returns:
the new copy

setName

public void setName(String name)
Sets the name of this attribute.

Parameters:
name - the new name

getName

public String getName()
Gets the name of this attribute.

Returns:
the name