xmleventfactory.html

来自「j2ee帮助文档软件设计/软件工程 文件格式」· HTML 代码 · 共 961 行 · 第 1/5 页

HTML
961
字号
<DL><DD>Create a new StartElement.  Namespaces can be added to this StartElement by passing in an Iterator that walks over a set of Namespace interfaces. Attributes can be added to this StartElement by passing an iterator  that walks over a set of Attribute interfaces.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the qualified name of the attribute, may not be null<DD><CODE>attributes</CODE> - an optional unordered set of objects that  implement Attribute to add to the new StartElement, may be null<DD><CODE>namespaces</CODE> - an optional unordered set of objects that  implement Namespace to add to the new StartElement, may be null<DT><B>Returns:</B><DD>an instance of the requested StartElement</DL></DD></DL><HR><A NAME="createStartElement(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>createStartElement</H3><PRE>public abstract <A HREF="../../../javax/xml/stream/events/StartElement.html" title="interface in javax.xml.stream.events">StartElement</A> <B>createStartElement</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;prefix,                                                <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;namespaceUri,                                                <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;localName)</PRE><DL><DD>Create a new StartElement.  This defaults the NamespaceContext to an empty NamespaceContext.  Querying this event for its namespaces or attributes will result in an empty iterator being returned.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>namespaceUri</CODE> - the uri of the QName of the new StartElement<DD><CODE>localName</CODE> - the local name of the QName of the new StartElement<DD><CODE>prefix</CODE> - the prefix of the QName of the new StartElement<DT><B>Returns:</B><DD>an instance of the requested StartElement</DL></DD></DL><HR><A NAME="createStartElement(java.lang.String, java.lang.String, java.lang.String, java.util.Iterator, java.util.Iterator)"><!-- --></A><H3>createStartElement</H3><PRE>public abstract <A HREF="../../../javax/xml/stream/events/StartElement.html" title="interface in javax.xml.stream.events">StartElement</A> <B>createStartElement</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;prefix,                                                <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;namespaceUri,                                                <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;localName,                                                <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A>&nbsp;attributes,                                                <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A>&nbsp;namespaces)</PRE><DL><DD>Create a new StartElement.  Namespaces can be added to this StartElement by passing in an Iterator that walks over a set of Namespace interfaces. Attributes can be added to this StartElement by passing an iterator  that walks over a set of Attribute interfaces.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>namespaceUri</CODE> - the uri of the QName of the new StartElement<DD><CODE>localName</CODE> - the local name of the QName of the new StartElement<DD><CODE>prefix</CODE> - the prefix of the QName of the new StartElement<DD><CODE>attributes</CODE> - an unordered set of objects that implement  Attribute to add to the new StartElement<DD><CODE>namespaces</CODE> - an unordered set of objects that implement  Namespace to add to the new StartElement<DT><B>Returns:</B><DD>an instance of the requested StartElement</DL></DD></DL><HR><A NAME="createStartElement(java.lang.String, java.lang.String, java.lang.String, java.util.Iterator, java.util.Iterator, javax.xml.namespace.NamespaceContext)"><!-- --></A><H3>createStartElement</H3><PRE>public abstract <A HREF="../../../javax/xml/stream/events/StartElement.html" title="interface in javax.xml.stream.events">StartElement</A> <B>createStartElement</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;prefix,                                                <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;namespaceUri,                                                <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;localName,                                                <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A>&nbsp;attributes,                                                <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A>&nbsp;namespaces,                                                <A HREF="http://java.sun.com/j2se/1.5/docs/api/javax/xml/namespace/NamespaceContext.html" title="class or interface in javax.xml.namespace">NamespaceContext</A>&nbsp;context)</PRE><DL><DD>Create a new StartElement.  Namespaces can be added to this StartElement by passing in an Iterator that walks over a set of Namespace interfaces. Attributes can be added to this StartElement by passing an iterator  that walks over a set of Attribute interfaces.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>namespaceUri</CODE> - the uri of the QName of the new StartElement<DD><CODE>localName</CODE> - the local name of the QName of the new StartElement<DD><CODE>prefix</CODE> - the prefix of the QName of the new StartElement<DD><CODE>attributes</CODE> - an unordered set of objects that implement  Attribute to add to the new StartElement, may be null<DD><CODE>namespaces</CODE> - an unordered set of objects that implement  Namespace to add to the new StartElement, may be null<DD><CODE>context</CODE> - the namespace context of this element<DT><B>Returns:</B><DD>an instance of the requested StartElement</DL></DD></DL><HR><A NAME="createEndElement(javax.xml.namespace.QName, java.util.Iterator)"><!-- --></A><H3>createEndElement</H3><PRE>public abstract <A HREF="../../../javax/xml/stream/events/EndElement.html" title="interface in javax.xml.stream.events">EndElement</A> <B>createEndElement</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/javax/xml/namespace/QName.html" title="class or interface in javax.xml.namespace">QName</A>&nbsp;name,                                            <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A>&nbsp;namespaces)</PRE><DL><DD>Create a new EndElement<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the qualified name of the EndElement<DD><CODE>namespaces</CODE> - an optional unordered set of objects that  implement Namespace that have gone out of scope, may be null<DT><B>Returns:</B><DD>an instance of the requested EndElement</DL></DD></DL><HR><A NAME="createEndElement(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>createEndElement</H3><PRE>public abstract <A HREF="../../../javax/xml/stream/events/EndElement.html" title="interface in javax.xml.stream.events">EndElement</A> <B>createEndElement</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;prefix,                                            <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;namespaceUri,                                            <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;localName)</PRE><DL><DD>Create a new EndElement<P><DD><DL><DT><B>Parameters:</B><DD><CODE>namespaceUri</CODE> - the uri of the QName of the new StartElement<DD><CODE>localName</CODE> - the local name of the QName of the new StartElement<DD><CODE>prefix</CODE> - the prefix of the QName of the new StartElement<DT><B>Returns:</B><DD>an instance of the requested EndElement</DL></DD></DL><HR><A NAME="createEndElement(java.lang.String, java.lang.String, java.lang.String, java.util.Iterator)"><!-- --></A><H3>createEndElement</H3><PRE>public abstract <A HREF="../../../javax/xml/stream/events/EndElement.html" title="interface in javax.xml.stream.events">EndElement</A> <B>createEndElement</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;prefix,                                            <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;namespaceUri,                                            <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;localName,                                            <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A>&nbsp;namespaces)</PRE><DL><DD>Create a new EndElement<P><DD><DL><DT><B>Parameters:</B><DD><CODE>namespaceUri</CODE> - the uri of the QName of the new StartElement<DD><CODE>localName</CODE> - the local name of the QName of the new StartElement<DD><CODE>prefix</CODE> - the prefix of the QName of the new StartElement<DD><CODE>namespaces</CODE> - an unordered set of objects that implement  Namespace that have gone out of scope, may be null<DT><B>Returns:</B><DD>an instance of the requested EndElement</DL></DD></DL><HR><A NAME="createCharacters(java.lang.String)"><!-- --></A><H3>createCharacters</H3><PRE>public abstract <A HREF="../../../javax/xml/stream/events/Characters.html" title="interface in javax.xml.stream.events">Characters</A> <B>createCharacters</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;content)</PRE><DL><DD>Create a Characters event, this method does not check if the content is all whitespace.  To create a space event use #createSpace(String)<P><DD><DL><DT><B>Parameters:</B><DD><CODE>content</CODE> - the string to create<DT><B>Returns:</B><DD>a Characters event</DL></DD></DL><HR><A NAME="createCData(java.lang.String)"><!-- --></A><H3>createCData</H3><PRE>public abstract <A HREF="../../../javax/xml/stream/events/Characters.html" title="interface in javax.xml.stream.events">Characters</A> <B>createCData</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;content)</PRE><DL><DD>Create a Characters event with the CData flag set to true<P><DD><DL><DT><B>Parameters:</B><DD><CODE>content</CODE> - the string to create<DT><B>Returns:</B><DD>a Characters event</DL></DD></DL><HR><A NAME="createSpace(java.lang.String)"><!-- --></A><H3>createSpace</H3><PRE>public abstract <A HREF="../../../javax/xml/stream/events/Characters.html" title="interface in javax.xml.stream.events">Characters</A> <B>createSpace</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;content)</PRE><DL><DD>Create a Characters event with the isSpace flag set to true<P><DD><DL><DT><B>Parameters:</B><DD><CODE>content</CODE> - the content of the space to create<DT><B>Returns:</B><DD>a Characters event</DL></DD></DL><HR><A NAME="createIgnorableSpace(java.lang.String)"><!-- --></A><H3>createIgnorableSpace</H3><PRE>public abstract <A HREF="../../../javax/xml/stream/events/Characters.html" title="interface in javax.xml.stream.events">Characters</A> <B>createIgnorableSpace</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;content)</PRE><DL><DD>Create an ignorable space<P><DD><DL><DT><B>Parameters:</B><DD><CODE>content</CODE> - the space to create<DT><B>Returns:</B><DD>a Characters event</DL></DD></DL><HR><A NAME="createStartDocument()"><!-- --></A><H3>createStartDocument</H3><PRE>public abstract <A HREF="../../../javax/xml/stream/events/StartDocument.html" title="interface in javax.xml.stream.events">StartDocument</A> <B>createStartDocument</B>()</PRE><DL><DD>Creates a new instance of a StartDocument event

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?