Attribute (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.xml.stream.events Interface Attribute

所有父接口:
XMLEvent, XMLStreamConstants
所有已知子接口:
Namespace

public interface Attribute
extends 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.

版本:
1.0
作者:
Copyright (c) 2003 by BEA Systems. All Rights Reserved.
另请参见:
StartElement

字段摘要
 
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
 
方法摘要
 String getDTDType()
          Gets the type of this attribute, default is the String "CDATA"
 QName getName()
          Returns the QName for this attribute
 String getValue()
          Gets the normalized value of this attribute
 boolean isSpecified()
          A flag indicating whether this attribute was actually specified in the start-tag of its element, or was defaulted from the schema.
 
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
 

方法详细信息

getName

QName getName()
Returns the QName for this attribute


getValue

String getValue()
Gets the normalized value of this attribute


getDTDType

String getDTDType()
Gets the type of this attribute, default is the String "CDATA"

返回:
the type as a String, default is "CDATA"

isSpecified

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

返回:
returns true if this was specified in the start element

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.