-
- All Superinterfaces:
-
Attribute
,XMLEvent
,XMLStreamConstants
public interface Namespace extends Attribute
包含名称空间信息的界面。 命名空间从StartElement访问。- 从以下版本开始:
- 1.6
- Version:
- 1.0
- 另请参见:
-
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
-
-
方法摘要
所有方法 接口方法 抽象方法 Modifier and Type 方法 描述 String
getNamespaceURI()
获取绑定到此名称空间前缀的uriString
getPrefix()
获取前缀,如果这是默认命名空间声明,则返回“”。boolean
isDefaultNamespaceDeclaration()
如果此属性声明默认命名空间,则返回true-
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
-
-