public class SGMLEvent
extends java.util.EventObject
SGMLParser to
SGMLParserListeners.Element,
SGMLParser,
SGMLParserListener,
直列化された形式| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected java.util.Hashtable |
attributes
The attributes.
|
protected java.lang.String |
cdata
The cdata.
|
static int |
CDATA_PARSED
The cdata (#PCDATA, #CDATA, #RCDATA) parsed event type.
|
protected Element |
element
The element.
|
static int |
ENDTAG_PARSED
The end tag parsed event type.
|
protected int |
id
The id of the event.
|
static int |
PARSING_FINISHED
The parsing finished event type.
|
static int |
SGML_FIRST
Marks the first integer id for the range of sgml event ids.
|
static int |
SGML_LAST
Marks the last integer id for the range of sgml event ids.
|
static int |
STARTTAG_PARSED
The start tag parsed event type.
|
| コンストラクタと説明 |
|---|
SGMLEvent(SGMLParser parser,
int id)
Constructs a sgml event with the specified sgml parser (event source)
and id.
|
SGMLEvent(SGMLParser parser,
int id,
Element element)
Constructs a sgml event with the specified sgml parser (event source),
id, and element.
|
SGMLEvent(SGMLParser parser,
int id,
Element element,
java.util.Hashtable attributes)
Constructs a sgml event with the specified sgml parser (event source),
id, element, and attributes.
|
SGMLEvent(SGMLParser parser,
int id,
java.lang.String cdata)
Constructs a sgml event with the specified sgml parser (event source),
id, and cdata.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
java.util.Hashtable |
getAttributes()
Returns the attributes of this sgml event.
|
java.lang.String |
getCDATA()
Returns the cdata (#PCDATA, #CDATA, #RCDATA) of this sgml event.
|
Element |
getElement()
Returns the element of this sgml event.
|
int |
getID()
Returns the id of this sgml event.
|
SGMLParser |
getParser()
Returns the sgml parser (event source) of this sgml event.
|
protected int id
protected Element element
protected java.util.Hashtable attributes
protected java.lang.String cdata
public static final int SGML_FIRST
public static final int SGML_LAST
public static final int STARTTAG_PARSED
public static final int ENDTAG_PARSED
public static final int CDATA_PARSED
public static final int PARSING_FINISHED
public SGMLEvent(SGMLParser parser, int id, Element element, java.util.Hashtable attributes)
parser - the sgml parser (event source).id - the id.element - the element.attributes - the attributes.java.lang.IllegalArgumentException - if the id is not STARTTAG_PARSED.public SGMLEvent(SGMLParser parser, int id, Element element)
parser - the sgml parser (event source).id - the id.element - the element.java.lang.IllegalArgumentException - if the id is not ENDTAG_PARSED.public SGMLEvent(SGMLParser parser, int id, java.lang.String cdata)
parser - the sgml parser (event source).id - the id.cdata - the cdata.java.lang.IllegalArgumentException - if the id is not CDATA_PARSED.public SGMLEvent(SGMLParser parser, int id)
parser - the sgml parser (event source).id - the id.java.lang.IllegalArgumentException - if the id is not PARSING_FINISHED.public int getID()
public SGMLParser getParser()
public Element getElement()
public java.util.Hashtable getAttributes()
public java.lang.String getCDATA()