|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
PrintGame.LabyrinthXMLContentHandler
Constructor Summary | |
LabyrinthXMLContentHandler()
|
Method Summary | |
void |
characters(char[] charArray,
int start,
int length)
----------------------------------------------------------------------------- Receive notification of character data inside an element. |
void |
convertLabyrinthData()
----------------------------------------------------------------------------- Generates a twodimensional character-array which is an ASCII representation of the labyrinthfield. |
void |
endDocument()
----------------------------------------------------------------------------- Receive notification of the end of the document. |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qualName)
----------------------------------------------------------------------------- Receive notification of the end of an element. |
int |
getBuildAngles()
|
int |
getBuildLoops()
|
int |
getBuildPlaces()
|
int |
getBuildTrees()
|
java.lang.String |
getDiamondPicture()
|
char |
getDiamondSymbol()
|
int |
getHeight()
|
java.lang.String |
getInstructionFileName()
|
char[][] |
getLabyrinth()
|
java.lang.String |
getLevelName()
|
int |
getMaxWayLenght()
|
int |
getMinWayLenght()
|
int |
getNumDiamonds()
|
int |
getNumWayCells()
|
char |
getOneSymbol()
|
java.lang.String |
getRobotPicture()
|
Direction |
getStartingDirection()
|
java.lang.String |
getStartPicture()
|
char |
getStartSymbol()
|
char |
getThreeSymbol()
|
char |
getTwoSymbol()
|
java.lang.String |
getWallPicture()
|
char |
getWallSymbol()
|
java.lang.String |
getWayPicture()
|
char |
getWaySymbol()
|
int |
getWidth()
|
char |
getZeroSymbol()
|
boolean |
isCreateLabyrinth()
|
boolean |
isInstructionList()
|
boolean |
isLoadLabyrinth()
|
boolean |
isStyle()
|
boolean |
isXMLError()
|
void |
setDocument(java.lang.String document)
|
void |
setDocumentBase(java.net.URL document_base)
|
void |
startDocument()
----------------------------------------------------------------------------- Receive notification of the beginning of the document. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qualName,
org.xml.sax.Attributes attribs)
----------------------------------------------------------------------------- Receive notification of the start of an element. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LabyrinthXMLContentHandler()
Method Detail |
public void setDocumentBase(java.net.URL document_base)
public void setDocument(java.lang.String document)
public void startDocument()
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qualName, org.xml.sax.Attributes attribs)
localName
- - The local name (without prefix),
or the empty string if Namespace processing is not being performed.qualName
- - The qualified name (with prefix),
or the empty string if qualified names are not available.public void characters(char[] charArray, int start, int length)
charArray
- - The characters.start
- - The start position in the character array.length
- - The number of characters to use from the character array.public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qualName)
localName
- - The local name (without prefix), or the empty string if
Namespace processing is not being performed.public void endDocument() throws org.xml.sax.SAXParseException
org.xml.sax.SAXParseException
public void convertLabyrinthData() throws org.xml.sax.SAXParseException
org.xml.sax.SAXParseException
public boolean isXMLError()
public java.lang.String getLevelName()
public int getWidth()
public int getHeight()
public char getStartSymbol()
public char getWallSymbol()
public char getDiamondSymbol()
public char getWaySymbol()
public char getZeroSymbol()
public char getOneSymbol()
public char getTwoSymbol()
public char getThreeSymbol()
public Direction getStartingDirection()
public char[][] getLabyrinth()
public int getNumDiamonds()
public int getNumWayCells()
public int getMinWayLenght()
public int getMaxWayLenght()
public int getBuildAngles()
public int getBuildTrees()
public int getBuildPlaces()
public int getBuildLoops()
public java.lang.String getWallPicture()
public java.lang.String getWayPicture()
public java.lang.String getRobotPicture()
public java.lang.String getDiamondPicture()
public java.lang.String getStartPicture()
public boolean isLoadLabyrinth()
public boolean isCreateLabyrinth()
public boolean isStyle()
public boolean isInstructionList()
public java.lang.String getInstructionFileName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |