FileDocCategorySizeDatePackage
Attribute.javaAPI DocJava SE 6 API1143Tue Jun 10 00:27:10 BST 2008javax.xml.stream.events

Attribute

public interface Attribute implements XMLEvent
An interface that contains information about an attribute. Attributes are reported as a set of events accessible from a StartElement. Other applications may report Attributes as first-order events, for example as the results of an XPath expression.
version
1.0
author
Copyright (c) 2003 by BEA Systems. All Rights Reserved.
see
StartElement
since
1.6

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetDTDType()
Gets the type of this attribute, default is the String "CDATA"

return
the type as a String, default is "CDATA"

public javax.xml.namespace.QNamegetName()
Returns the QName for this attribute

public java.lang.StringgetValue()
Gets the normalized value of this attribute

public booleanisSpecified()
A flag indicating whether this attribute was actually specified in the start-tag of its element, or was defaulted from the schema.

return
returns true if this was specified in the start element