Java org.jdom2 Attribute fields, constructors, methods, implement or subclass

Example usage for Java org.jdom2 Attribute fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.jdom2 Attribute.

The text is from its open source code.

Constructor

Attribute(final String name, final String value, final Namespace namespace)
This will create a new Attribute with the specified (local) name and value, and in the provided Namespace .
Attribute(final String name, final String value, final AttributeType type)
This will create a new Attribute with the specified (local) name, value and type, and does not place the attribute in a Namespace .
Attribute(final String name, final String value, final int type)
This will create a new Attribute with the specified (local) name, value and type, and does not place the attribute in a Namespace .
Attribute(final String name, final String value)
This will create a new Attribute with the specified (local) name and value, and does not place the attribute in a Namespace .

Method

Attributeclone()
Attributedetach()
Detach this Attribute from its parent.
AttributeTypegetAttributeType()
This will return the declared type of this Attribute.
booleangetBooleanValue()
This gets the effective boolean value of the attribute, or throws a DataConversionException if a conversion can't be performed.
doublegetDoubleValue()
This gets the value of the attribute, in double form, and if no conversion can occur, throws a DataConversionException
intgetIntValue()
This gets the value of the attribute, in int form, and if no conversion can occur, throws a DataConversionException
longgetLongValue()
This gets the value of the attribute, in long form, and if no conversion can occur, throws a DataConversionException
StringgetName()
This will retrieve the local name of the Attribute.
NamespacegetNamespace()
This will return this Attribute's Namespace .
StringgetNamespacePrefix()
This will retrieve the namespace prefix of the Attribute.
StringgetNamespaceURI()
This returns the URI mapped to this Attribute's prefix.
ElementgetParent()
This will return the parent of this Attribute.
StringgetQualifiedName()
This will retrieve the qualified name of the Attribute.
StringgetValue()
This will return the actual textual value of this Attribute.
booleanisSpecified()
Get the 'specified' flag.
AttributesetName(final String name)
This sets the local name of the Attribute.
AttributesetNamespace(Namespace namespace)
This sets this Attribute's Namespace .
AttributesetValue(final String value)
This will set the value of the Attribute.
StringtoString()
This returns a String representation of the Attribute, suitable for debugging.