Uses of Class
org.jdom2.Attribute
Packages that use Attribute
Package
Description
Classes representing the components of an XML document.
Classes to both filter and generically type-cast nodes of a document
based on type, name, value, or other aspects, and to boolean
AND/OR/NEGATE these rules.
Classes to output JDOM documents to various destinations.
Classes used to implement output functionality that are not part of the
actual Output API, but rather part of the implementation.
Classes that implement useful functionality, but are not easy to categorise.
-
Uses of Attribute in org.jdom2
Modifier and TypeMethodDescriptionDeprecated.Deprecated.DefaultJDOMFactory.attribute
(String name, String value, AttributeType type) DefaultJDOMFactory.attribute
(String name, String value, AttributeType type, Namespace namespace) This will create a newAttribute
with the specified (local) name and value, and does not place the attribute in a
.Namespace
Deprecated.Deprecated.JDOMFactory.attribute
(String name, String value, AttributeType type) This will create a newAttribute
with the specified (local) name, value and type, and does not place the attribute in a
.Namespace
JDOMFactory.attribute
(String name, String value, AttributeType type, Namespace namespace) This will create a newAttribute
with the specified (local) name, value, and type, and in the provided
.Namespace
This will create a newAttribute
with the specified (local) name and value, and in the provided
.Namespace
Deprecated.Deprecated.SlimJDOMFactory.attribute
(String name, String value, AttributeType type) SlimJDOMFactory.attribute
(String name, String value, AttributeType type, Namespace namespace) Deprecated.Deprecated.UncheckedJDOMFactory.attribute
(String name, String value, AttributeType type) UncheckedJDOMFactory.attribute
(String name, String value, AttributeType type, Namespace namespace) Attribute.clone()
Attribute.detach()
Detach this Attribute from its parent.Element.getAttribute
(String attname) This returns the attribute for this element with the given name and within no namespace, or null if no such attribute exists.Element.getAttribute
(String attname, Namespace ns) This returns the attribute for this element with the given name and within the given Namespace, or null if no such attribute exists.Attribute.setAttributeType
(int type) Deprecated.Attribute.setAttributeType
(AttributeType type) This will set the type of theAttribute
.This sets the local name of theAttribute
.Attribute.setNamespace
(Namespace namespace) This sets thisAttribute
's
.Namespace
protected Attribute
Set this Attribute's parent.This will set the value of theAttribute
.Modifier and TypeMethodDescriptionElement.getAttributes()
This returns the complete set of attributes for this element, as aList
ofAttribute
objects in no particular order, or an empty list if there are none.Modifier and TypeMethodDescriptionstatic String
Verifier.checkNamespaceCollision
(Attribute attribute, Element element) static String
Verifier.checkNamespaceCollision
(Attribute attribute, Element element, int ignoreatt) static String
Verifier.checkNamespaceCollision
(Namespace namespace, Attribute attribute) boolean
Element.removeAttribute
(Attribute attribute) This removes the supplied Attribute should it exist.void
DefaultJDOMFactory.setAttribute
(Element parent, Attribute a) Element.setAttribute
(Attribute attribute) This sets an attribute value for this element.void
JDOMFactory.setAttribute
(Element element, Attribute a) Sets a specific Attribute on an Elementvoid
UncheckedJDOMFactory.setAttribute
(Element parent, Attribute a) Modifier and TypeMethodDescriptionElement.setAttributes
(Collection<? extends Attribute> newAttributes) This sets the attributes of the element.void
Element.sortAttributes
(Comparator<? super Attribute> comparator) Sort the Attributes of this Element using a mechanism that is safe for JDOM. -
Uses of Attribute in org.jdom2.filter
Methods in org.jdom2.filter that return AttributeModifier and TypeMethodDescriptionCheck to see if the Content matches a predefined set of rules.Methods in org.jdom2.filter that return types with arguments of type AttributeModifier and TypeMethodDescriptionFilters.attribute()
Return a Filter that matches anyAttribute
data.Return a Filter that matches anyAttribute
data with the specified name.Return a Filter that matches anyAttribute
data with the specified name and namespace.Return a Filter that matches anyAttribute
data with the specified namespace. -
Uses of Attribute in org.jdom2.output
Methods in org.jdom2.output with parameters of type AttributeModifier and TypeMethodDescriptionThis converts the JDOMAttribute
parameter to a DOM Attr Node, returning the DOM version.This converts the JDOMAttribute
parameter to a DOM Attr Node, returning the DOM version. -
Uses of Attribute in org.jdom2.output.support
Methods in org.jdom2.output.support with parameters of type AttributeModifier and TypeMethodDescriptionprotected Attr
AbstractDOMOutputProcessor.printAttribute
(FormatStack fstack, Document basedoc, Attribute attribute) This will handle printing of aAttribute
.protected void
AbstractStAXStreamProcessor.printAttribute
(XMLStreamWriter out, FormatStack fstack, Attribute attribute) This will handle printing of an
.Attribute
protected void
AbstractXMLOutputProcessor.printAttribute
(Writer out, FormatStack fstack, Attribute attribute) This will handle printing of an
.Attribute
This will convert the
using the given DOM Document to create the resulting DOM Attr.Attribute
-
Uses of Attribute in org.jdom2.util
Methods in org.jdom2.util with parameters of type Attribute
JDOMFactory.attribute(String, String, AttributeType)