package org.apache.fop.xml;
import org.apache.fop.apps.FOPException;
import org.apache.fop.fo.FObjectNames;
import org.xml.sax.helpers.AttributesImpl;
public class FoXMLEvent extends XMLEvent {
private static final String tag = "$Name$";
private static final String revision = "$Revision$";
protected int foType = FObjectNames.NO_FO;
typenamespaces
public FoXMLEvent (XMLNamespaces namespaces) {
super(namespaces);
}
public FoXMLEvent(int type, String chars, int uriIndex,
String localName, String qName,
AttributesImpl attributes, XMLNamespaces namespaces,
int foType)
{
super
(type, chars, uriIndex, localName, qName, attributes, namespaces);
this.foType = foType;
}
public FoXMLEvent(FoXMLEvent ev) {
super(ev);
foType = ev.foType;
}
public FoXMLEvent(int type, String chars, XMLNamespaces namespaces) {
super(type, chars, namespaces);
}
public FoXMLEvent(int type, int uriIndex, AttributesImpl attributes,
XMLNamespaces namespaces, int foType) {
super(namespaces);
this.type = type;
this.uriIndex = uriIndex;
this.attributes = attributes;
this.foType = foType;
}
namespaces</i> nor the <i>id@return
public XMLEvent clear() {
foType = FObjectNames.NO_FO;
return super.clear();
}
namespaces</i> nor the <i>id@return
public FoXMLEvent clearFo() {
return (FoXMLEvent)clear();
}
namespaces</i> nor the <i>idnamespaces@paramev@return
public XMLEvent copyEvent(FoXMLEvent ev) {
foType = ev.foType;
return super.copyEvent(ev);
}
namespaces</i> nor the <i>idnamespaces@return
public FoXMLEvent copyFoEvent(FoXMLEvent ev) {
return (FoXMLEvent)copyEvent(ev);
}
FoXMLEvent@returns
public int getFoType() { return foType; }
FoXMLEvent@paramfoType
public void setFoType(int foType) { this.foType = foType; }
public String toString() {
String tstr;
try {
tstr = "FO type: " + FObjectNames.getFOName(foType) + "\n";
} catch (FOPException e) {
throw new RuntimeException(e.getMessage());
}
tstr = tstr + super.toString();
return tstr;
}
}