|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.test.TinyXMLTest
public class TinyXMLTest
| Constructor Summary | |
|---|---|
TinyXMLTest(java.lang.String type,
java.lang.String fname)
|
|
| Method Summary | |
|---|---|
java.io.InputStream |
getDocumentStream()
This method is always called exactly once, before all other callbacks. |
void |
recordAttlistDeclaration(java.lang.String element,
java.lang.String attr,
boolean notation,
java.lang.String type,
java.lang.String defmod,
java.lang.String def)
This method is called when an attribute definition is parsed from an attlist tag in a DTD. |
void |
recordCharData(java.lang.String charData)
This method is called to return character data to the application. |
void |
recordComment(java.lang.String comment)
This method is called to return comments to the application. |
void |
recordDocEnd()
This method is called to indicate that the document stream has been successfully closed. |
void |
recordDocStart()
This method is called to indicate that the document stream has been opened successfully. |
void |
recordDoctypeDeclaration(java.lang.String name,
java.lang.String pubID,
java.lang.String sysID)
This method is called after all the DTD related information is has been passed back. |
void |
recordElementDeclaration(java.lang.String name,
java.lang.String content)
This method is called when an element declaration is met in a DTD. |
void |
recordElementEnd(java.lang.String name)
This method is called to indicate the closure of an element (tag). |
void |
recordElementStart(java.lang.String name,
java.util.Hashtable attr)
This method is called to indicate the start of an element (tag). |
void |
recordEntityDeclaration(java.lang.String name,
java.lang.String value,
java.lang.String pubID,
java.lang.String sysID,
java.lang.String notation)
This method is called whenever an general entity declaration is parsed from a DTD. |
void |
recordNotationDeclaration(java.lang.String name,
java.lang.String pubID,
java.lang.String sysID)
This method is called whenever a notation is parsed from a DTD. |
void |
recordPI(java.lang.String name,
java.lang.String pValue)
This method is called to passback program instructions to the application. |
java.io.InputStream |
resolveDTDEntity(java.lang.String name,
java.lang.String pubID,
java.lang.String sysID)
This method is called to obtain an external DTD. |
java.io.InputStream |
resolveExternalEntity(java.lang.String name,
java.lang.String pubID,
java.lang.String sysID)
This method is called when an external entity must be resolved for insertion into the document its DTD. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TinyXMLTest(java.lang.String type,
java.lang.String fname)
| Method Detail |
|---|
public void recordNotationDeclaration(java.lang.String name,
java.lang.String pubID,
java.lang.String sysID)
throws gd.xml.ParseException
gd.xml.XMLResponder
recordNotationDeclaration in interface gd.xml.XMLRespondername - the name of the notationpubID - the public ID of the notation if it was specified or null otherwisesysID - the system ID (typically filename) of the notation (or null if unspecified)
gd.xml.ParseException
public void recordEntityDeclaration(java.lang.String name,
java.lang.String value,
java.lang.String pubID,
java.lang.String sysID,
java.lang.String notation)
throws gd.xml.ParseException
gd.xml.XMLResponder
recordEntityDeclaration in interface gd.xml.XMLRespondername - the name assigned to this entityvalue - the replacement text of this entitypubID - the public ID of the entities replacement text (or null if unspecified)sysID - the system ID of the entities replacement text (or null if unspecified)notation - specifies the notation associated with this entity (null if entity to be parsed as XML)
gd.xml.ParseException
public void recordElementDeclaration(java.lang.String name,
java.lang.String content)
throws gd.xml.ParseException
gd.xml.XMLResponder
recordElementDeclaration in interface gd.xml.XMLRespondername - the tag name given to this elementcontent - a regexp-like expression which specifies which elements and character data may appear within this element
gd.xml.ParseException
public void recordAttlistDeclaration(java.lang.String element,
java.lang.String attr,
boolean notation,
java.lang.String type,
java.lang.String defmod,
java.lang.String def)
throws gd.xml.ParseException
gd.xml.XMLResponder
recordAttlistDeclaration in interface gd.xml.XMLResponderelement - the element to which this attribute appliesattr - the name of the attribute being described by this declarationnotation - the notation (if any) which applies to this attributetype - the type of value defined by this attributedefmod - describes the nature of this attributes default value (one of 'FIXED', 'REQUIRED', 'IMPLIED' - as per XML spec - or 'DEFAULT' indicating a 'basic' default value)def - the default value of this attribute (may be null, indicating no default specified)
gd.xml.ParseException
public void recordDoctypeDeclaration(java.lang.String name,
java.lang.String pubID,
java.lang.String sysID)
throws gd.xml.ParseException
gd.xml.XMLResponder
recordDoctypeDeclaration in interface gd.xml.XMLRespondername - the name of the document typepubID - the public ID of the document type (may be null)sysID - the system ID of the document type (null if no external DTD is specified)
gd.xml.ParseExceptionpublic void recordDocStart()
gd.xml.XMLResponder
recordDocStart in interface gd.xml.XMLResponderpublic void recordDocEnd()
gd.xml.XMLResponder
recordDocEnd in interface gd.xml.XMLResponder
public void recordElementStart(java.lang.String name,
java.util.Hashtable attr)
throws gd.xml.ParseException
gd.xml.XMLResponder
recordElementStart in interface gd.xml.XMLRespondername - the name of the element (tag name)attr - a hashtable containing the explicitly supplied attributes (as strings)
gd.xml.ParseException
public void recordElementEnd(java.lang.String name)
throws gd.xml.ParseException
gd.xml.XMLResponder
recordElementEnd in interface gd.xml.XMLRespondername - the name of the element (tag) being closed
gd.xml.ParseException
public void recordPI(java.lang.String name,
java.lang.String pValue)
gd.xml.XMLResponder
recordPI in interface gd.xml.XMLRespondername - the name of the program instructionpValue - the data associated with this program instructionpublic void recordCharData(java.lang.String charData)
gd.xml.XMLResponder
recordCharData in interface gd.xml.XMLRespondercharData - character data from the document.public void recordComment(java.lang.String comment)
gd.xml.XMLResponder
recordComment in interface gd.xml.XMLResponder
public java.io.InputStream getDocumentStream()
throws gd.xml.ParseException
gd.xml.XMLResponder
getDocumentStream in interface gd.xml.XMLRespondergd.xml.ParseException
public java.io.InputStream resolveExternalEntity(java.lang.String name,
java.lang.String pubID,
java.lang.String sysID)
throws gd.xml.ParseException
gd.xml.XMLResponder
resolveExternalEntity in interface gd.xml.XMLRespondername - the name of the entity to be retrieved.pubID - the public ID of the entity (may be null)sysID - the system ID of the entity
gd.xml.ParseException
public java.io.InputStream resolveDTDEntity(java.lang.String name,
java.lang.String pubID,
java.lang.String sysID)
throws gd.xml.ParseException
gd.xml.XMLResponder
resolveDTDEntity in interface gd.xml.XMLRespondername - the name of the DTDpubID - its public ID (may be null)sysID - its system ID
gd.xml.ParseException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||