package org.kxml.parser;
/** Event class for processing instructions, doctype declarations and comments */
public class LegacyEvent extends ParseEvent {
int type;
String text;
/** creates a new LegacyEvent with the given type and string content */
public LegacyEvent (int type, String text) {
this.type = type;
this.text = text;
}
/** returns the type of the sgml-legacy event,
PROCESSING_INSTRUCTION, ENTITY_DECLARATION, or COMMENT */
public int getType () {
return type;
}
/** returns always false. */
public boolean endCheck (StartTag start) {
return false;
}
/** returns the string content of the legacy event */
public String getText () {
return text;
}
}