|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.xml.sax.ext.DefaultHandler2
antsnest.io.BuildFileHandler
public class BuildFileHandler
SAX handler for processing an Ant build file
| Constructor Summary | |
|---|---|
BuildFileHandler(AntInfo antInfo,
IDPool idPool)
Constructs a new handler |
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Notifies that character data has been encountered |
void |
comment(char[] ch,
int start,
int length)
Notifies that a comment has been encountered |
void |
endCDATA()
Notifies that we have left a CDATA section |
void |
endElement(String uri,
String localName,
String qName)
Notifies that the end of the element has been reached |
AntNode |
getAntNode()
Gets the node created by this handler |
void |
startCDATA()
Notifies that we have entered a CDATA section |
void |
startDocument()
Notifies that the parsing has begun |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Notifies that an element has been encountered |
| Methods inherited from class org.xml.sax.ext.DefaultHandler2 |
|---|
attributeDecl, elementDecl, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, resolveEntity, startDTD, startEntity |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, 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 BuildFileHandler(AntInfo antInfo,
IDPool idPool)
antInfo - the Ant information objectidPool - the ID pool used to generate IDs| Method Detail |
|---|
public AntNode getAntNode()
public void startDocument()
startDocument in interface ContentHandlerstartDocument in class DefaultHandler
public void startElement(String uri,
String localName,
String qName,
Attributes attributes)
startElement in interface ContentHandlerstartElement in class DefaultHandleruri - the namespace URIlocalName - the local name of the elementqName - the qualified name of the elementattributes - the attributes of the element
public void endElement(String uri,
String localName,
String qName)
endElement in interface ContentHandlerendElement in class DefaultHandleruri - the namespace URIlocalName - the local name of the elementqName - the qualified name of the element
public void characters(char[] ch,
int start,
int length)
characters in interface ContentHandlercharacters in class DefaultHandlerch - the characters encounteredstart - the start position in the character arraylength - the number of characters to use from the array
public void comment(char[] ch,
int start,
int length)
comment in interface LexicalHandlercomment in class DefaultHandler2ch - the characters encounteredstart - the start position in the character arraylength - the number of characters to use from the arraypublic void startCDATA()
startCDATA in interface LexicalHandlerstartCDATA in class DefaultHandler2public void endCDATA()
endCDATA in interface LexicalHandlerendCDATA in class DefaultHandler2
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||