程序包 | 说明 |
---|---|
org.jdom2 | |
org.jdom2.filter | |
org.jdom2.output | |
org.jdom2.output.support | |
org.jdom2.util | |
org.jdom2.xpath |
限定符和类型 | 方法和说明 |
---|---|
Attribute |
UncheckedJDOMFactory.attribute(java.lang.String name,
java.lang.String value) |
Attribute |
SlimJDOMFactory.attribute(java.lang.String name,
java.lang.String value) |
Attribute |
JDOMFactory.attribute(java.lang.String name,
java.lang.String value)
This will create a new
Attribute with the
specified (local) name and value, and does not place
the attribute in a . |
Attribute |
DefaultJDOMFactory.attribute(java.lang.String name,
java.lang.String value) |
Attribute |
UncheckedJDOMFactory.attribute(java.lang.String name,
java.lang.String value,
AttributeType type) |
Attribute |
SlimJDOMFactory.attribute(java.lang.String name,
java.lang.String value,
AttributeType type) |
Attribute |
JDOMFactory.attribute(java.lang.String name,
java.lang.String value,
AttributeType type)
This will create a new
Attribute with the
specified (local) name, value and type, and does not place
the attribute in a . |
Attribute |
DefaultJDOMFactory.attribute(java.lang.String name,
java.lang.String value,
AttributeType type) |
Attribute |
UncheckedJDOMFactory.attribute(java.lang.String name,
java.lang.String value,
AttributeType type,
Namespace namespace) |
Attribute |
SlimJDOMFactory.attribute(java.lang.String name,
java.lang.String value,
AttributeType type,
Namespace namespace) |
Attribute |
JDOMFactory.attribute(java.lang.String name,
java.lang.String value,
AttributeType type,
Namespace namespace)
This will create a new
Attribute with the
specified (local) name, value, and type, and in the provided
. |
Attribute |
DefaultJDOMFactory.attribute(java.lang.String name,
java.lang.String value,
AttributeType type,
Namespace namespace) |
Attribute |
UncheckedJDOMFactory.attribute(java.lang.String name,
java.lang.String value,
int type)
已过时。
|
Attribute |
SlimJDOMFactory.attribute(java.lang.String name,
java.lang.String value,
int type)
已过时。
|
Attribute |
JDOMFactory.attribute(java.lang.String name,
java.lang.String value,
int type)
|
Attribute |
DefaultJDOMFactory.attribute(java.lang.String name,
java.lang.String value,
int type)
已过时。
|
Attribute |
UncheckedJDOMFactory.attribute(java.lang.String name,
java.lang.String value,
int type,
Namespace namespace)
已过时。
|
Attribute |
SlimJDOMFactory.attribute(java.lang.String name,
java.lang.String value,
int type,
Namespace namespace)
已过时。
|
Attribute |
JDOMFactory.attribute(java.lang.String name,
java.lang.String value,
int type,
Namespace namespace)
|
Attribute |
DefaultJDOMFactory.attribute(java.lang.String name,
java.lang.String value,
int type,
Namespace namespace)
已过时。
|
Attribute |
UncheckedJDOMFactory.attribute(java.lang.String name,
java.lang.String value,
Namespace namespace) |
Attribute |
SlimJDOMFactory.attribute(java.lang.String name,
java.lang.String value,
Namespace namespace) |
Attribute |
JDOMFactory.attribute(java.lang.String name,
java.lang.String value,
Namespace namespace)
This will create a new
Attribute with the
specified (local) name and value, and in the provided
. |
Attribute |
DefaultJDOMFactory.attribute(java.lang.String name,
java.lang.String value,
Namespace namespace) |
Attribute |
Attribute.clone() |
Attribute |
Attribute.detach()
Detach this Attribute from its parent.
|
Attribute |
Element.getAttribute(java.lang.String attname)
This returns the attribute for this element with the given name
and within no namespace, or null if no such attribute exists.
|
Attribute |
Element.getAttribute(java.lang.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 |
Attribute.setAttributeType(AttributeType type)
This will set the type of the
Attribute . |
Attribute |
Attribute.setAttributeType(int type)
已过时。
|
Attribute |
Attribute.setName(java.lang.String name)
This sets the local name of the
Attribute . |
Attribute |
Attribute.setNamespace(Namespace namespace)
This sets this
Attribute 's . |
Attribute |
Attribute.setValue(java.lang.String value)
This will set the value of the
Attribute . |
限定符和类型 | 方法和说明 |
---|---|
java.util.List<Attribute> |
Element.getAttributes()
This returns the complete set of attributes for this element, as a
List of Attribute objects in no particular
order, or an empty list if there are none.
|
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
Verifier.checkNamespaceCollision(Attribute attribute,
Element element)
|
static java.lang.String |
Verifier.checkNamespaceCollision(Attribute attribute,
Element element,
int ignoreatt)
|
static java.lang.String |
Verifier.checkNamespaceCollision(Namespace namespace,
Attribute attribute)
|
boolean |
Element.removeAttribute(Attribute attribute)
This removes the supplied Attribute should it exist.
|
Element |
Element.setAttribute(Attribute attribute)
This sets an attribute value for this element.
|
void |
UncheckedJDOMFactory.setAttribute(Element parent,
Attribute a) |
void |
JDOMFactory.setAttribute(Element element,
Attribute a)
Sets a specific Attribute on an Element
|
void |
DefaultJDOMFactory.setAttribute(Element parent,
Attribute a) |
限定符和类型 | 方法和说明 |
---|---|
Element |
Element.setAttributes(java.util.Collection<? extends Attribute> newAttributes)
This sets the attributes of the element.
|
void |
Element.sortAttributes(java.util.Comparator<? super Attribute> comparator)
Sort the Attributes of this Element using a mechanism that is safe
for JDOM.
|
限定符和类型 | 方法和说明 |
---|---|
Attribute |
AttributeFilter.filter(java.lang.Object content)
Check to see if the Content matches a predefined set of rules.
|
限定符和类型 | 方法和说明 |
---|---|
static Filter<Attribute> |
Filters.attribute()
Return a Filter that matches any
Attribute data. |
static Filter<Attribute> |
Filters.attribute(Namespace ns)
Return a Filter that matches any
Attribute data with the
specified namespace. |
static Filter<Attribute> |
Filters.attribute(java.lang.String name)
Return a Filter that matches any
Attribute data with the
specified name. |
static Filter<Attribute> |
Filters.attribute(java.lang.String name,
Namespace ns)
Return a Filter that matches any
Attribute data with the
specified name and namespace. |
限定符和类型 | 方法和说明 |
---|---|
org.w3c.dom.Attr |
DOMOutputter.output(Attribute attribute)
This converts the JDOM
Attribute parameter to a DOM Attr
Node, returning the DOM version. |
org.w3c.dom.Attr |
DOMOutputter.output(org.w3c.dom.Document basedoc,
Attribute attribute)
This converts the JDOM
Attribute parameter to a DOM Attr
Node, returning the DOM version. |
限定符和类型 | 方法和说明 |
---|---|
org.w3c.dom.Attr |
DOMOutputProcessor.process(org.w3c.dom.Document basedoc,
Format format,
Attribute attribute)
This will convert the
using the given DOM
Document to create the resulting DOM Attr. |
org.w3c.dom.Attr |
AbstractDOMOutputProcessor.process(org.w3c.dom.Document basedoc,
Format format,
Attribute attribute) |
限定符和类型 | 方法和说明 |
---|---|
void |
NamespaceStack.push(Attribute att)
Create a new in-scope level for the Stack based on an Attribute.
|
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
XPathHelper.getAbsolutePath(Attribute to)
Returns the absolute path to the specified to Content.
|
static java.lang.String |
XPathHelper.getRelativePath(Attribute from,
Attribute to)
Returns the relative path from the given from Attribute to the specified
to Attribute as an XPath expression.
|
static java.lang.String |
XPathHelper.getRelativePath(Attribute from,
Content to)
Returns the relative path from the given from Attribute to the specified
to Content as an XPath expression.
|
static java.lang.String |
XPathHelper.getRelativePath(Content from,
Attribute to)
Returns the relative path from the given from Content to the specified to
Attribute as an XPath expression.
|