legacyevent.java

来自「用Java/C#开发手机程序及移动应用光盘代码。J2ME核心类及MIDlet类;」· Java 代码 · 共 40 行

JAVA
40
字号
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;
    }
}

⌨️ 快捷键说明

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