|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.stream.events Interface Namespace
- All Superinterfaces:
- Attribute, XMLEvent, XMLStreamConstants
public interface Namespace
- extends Attribute
Implements:
Attribute
包含有关名称空间的信息的接口。 可以从 StartElement 访问名称空间。
version | 1.0 |
See also | javax.xml.stream.events.StartElement |
An interface that contains information about a namespace. Namespaces are accessed from a StartElement.
- Version:
- 1.0
- Author:
- Copyright (c) 2003 by BEA Systems. All Rights Reserved.
- See Also:
StartElement
Field Summary |
---|
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 |
Method Summary | |
---|---|
String |
getNamespaceURI()
Gets the uri bound to the prefix of this namespace |
String |
getPrefix()
Gets the prefix, returns "" if this is a default namespace declaration. |
boolean |
isDefaultNamespaceDeclaration()
returns true if this attribute declares the default namespace |
Methods inherited from interface javax.xml.stream.events.Attribute |
---|
getDTDType, getName, getValue, isSpecified |
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 |
Method Detail |
---|
public String
getPrefix()
获取前缀,如果它是默认名称空间声明,则返回 ""。
英文文档:
getPrefix
String getPrefix()
- Gets the prefix, returns "" if this is a default
namespace declaration.
public String
getNamespaceURI()
获取绑定到此名称空间的前缀的 URI。
英文文档:
getNamespaceURI
String getNamespaceURI()
- Gets the uri bound to the prefix of this namespace
public boolean
isDefaultNamespaceDeclaration()
如果此属性声明的是默认名称空间,则返回 true。
英文文档:
isDefaultNamespaceDeclaration
boolean isDefaultNamespaceDeclaration()
- returns true if this attribute declares the default namespace
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!