/**
* Clear the fields of this event. Provided for pool operations.
- * The <i>namespaces</i> field is not cleared.
+ * Neither the <i>namespaces</i> nor the <i>id</i> field is cleared.
* @return the cleared <tt>XMLEvent</tt> event.
*/
public XMLEvent clear() {
/**
* Clear the fields of this event. Provided for pool operations.
- * The <i>namespaces</i> field is not cleared.
+ * Neither the <i>namespaces</i> nor the <i>id</i> field is cleared.
* @return the cleared <tt>XMLEvent</tt> event.
*/
public FoXMLEvent clearFo() {
return (FoXMLEvent)clear();
}
+ /**
+ * Copy the fields of the argument event to this event.
+ * Provided for pool operations.
+ * Neither the <i>namespaces</i> nor the <i>id</i> field is copied.
+ * The <i>namespaces</i> field is not cleared.
+ * @param ev the <tt>XMLEvent</tt> to copy.
+ * @return the copied <tt>XMLEvent</tt> event.
+ */
+ public XMLEvent copyEvent(FoXMLEvent ev) {
+ foType = ev.foType;
+ return super.copyEvent(ev);
+ }
+
+ /**
+ * Copy the fields of the argument event to this event.
+ * Provided for pool operations.
+ * Neither the <i>namespaces</i> nor the <i>id</i> field is copied.
+ * The <i>namespaces</i> field is not cleared.
+ * @return the copied <tt>XMLEvent</tt> event.
+ */
+ public FoXMLEvent copyFoEvent(FoXMLEvent ev) {
+ return (FoXMLEvent)copyEvent(ev);
+ }
+
/**
* Get the FO type of this <i>FoXMLEvent</i>.
* @returns the FO type.
return this;
}
+ /**
+ * Copy the fields of the argument event to this event.
+ * Provided for pool operations.
+ * Neither the <i>namespaces</i> nor the <i>id</i> field is copied.
+ * @param ev the <tt>XMLEvent</tt> to copy.
+ * @return this (copied) event.
+ */
+ public XMLEvent copyEvent(XMLEvent ev) {
+ type = ev.type;
+ chars = ev.chars;
+ uriIndex = ev.uriIndex;
+ localName = ev.localName;
+ qName = ev.qName;
+ attributes = ev.attributes;
+ return this;
+ }
+
public int getType() { return type; }
public void setType(int type) {
if (type < MIN_XML_EV_TYPE || type > MAX_XML_EV_TYPE) {