public abstract class SAXAbstractElementHandler extends Object implements ISAXElementHandler
ISAXElementHandler| Constructor and Description |
|---|
SAXAbstractElementHandler()
Create a SAXAbstractElementHandler
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
this message is sent when characters are available to the receiver
|
void |
endChildElement(ISAXElementHandler elementHandler)
this message is sent when a child element has been terminated
|
void |
endDocumentElement()
this message is sent when the element that is ended is the document
itself
|
void |
endElement(String pUri,
String local,
String name)
this message is sent when the receiver is about to end
|
char[] |
getChars() |
int |
getColumn() |
SAXContextBasedHandler |
getContextHandler()
return the context
|
String |
getData() |
int |
getEndColumn()
Insert the method's description here.
|
int |
getEndLine()
Insert the method's description here.
|
int |
getLine()
Insert the method's description here.
|
String |
getLocalName()
Insert the method's description here.
|
Locator |
getLocator()
Die Beschreibung der Methode hier eingeben.
|
int |
getNesting()
Die Beschreibung der Methode hier eingeben.
|
Map |
getParameters() |
ISAXElementHandler |
getParent()
Insert the method's description here.
|
String |
getPath()
Insert the method's description here.
|
Object |
getResult()
An optional result object to be returned when this element is finished.
|
String |
getURI()
Insert the method's description here.
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
docme
|
void |
initialize(String pUri,
String local,
String name,
Attributes attrs)
docme
|
void |
initializeDocumentElement()
docme
|
boolean |
isCharacterDataAllowed()
docme
|
boolean |
isDocumentHandler()
docme
|
boolean |
isLeaf()
docme
|
boolean |
isRootElementHandler()
docme
|
boolean |
isWhitespaceAllowed() |
void |
markEndLocation(int newLine,
int newColumn) |
void |
markStartLocation(int newLine,
int newColumn)
this message is sent when - the receiver was created - it was pushed on
the stack.
|
void |
processAttribute(String name,
String value) |
void |
processAttributes(Attributes attrs)
this message is sent - after is is initialized()
|
void |
reset() |
void |
setChars(char[] newChars) |
void |
setColumn(int newColumn) |
void |
setContextHandler(SAXContextBasedHandler newContextHandler)
this message is sent when - the receiver is pushed on the stack. - before
initialize()
|
void |
setLine(int newLine) |
void |
setLocalName(String newLocalName)
this message is sent - while the receiver is in initialize()
|
void |
setParent(ISAXElementHandler newParent)
this message is sent when - the receiver is pushed on the stack. - before
initialize()
|
void |
setURI(String newUri)
this message is sent - while the receiver is in initialize()
|
void |
startChildElement(ISAXElementHandler element)
this message is sent when a child element has been created
|
void |
started()
this message is sent - after all houskeeping with the element is done -
before any other SAX event can reach the receiver
|
ISAXElementHandler |
startElement(String pUri,
String local,
String name,
Attributes attrs)
this message is sent - when the receiver is requested to create a child
element
|
public SAXAbstractElementHandler()
public void characters(char[] ch,
int start,
int length)
throws SAXException
ISAXElementHandlercharacters in interface ISAXElementHandlerch - the array of charactersstart - start index of first char to readlength - number of chars to readSAXException - if errorpublic void endChildElement(ISAXElementHandler elementHandler) throws SAXException
ISAXElementHandlerendChildElement in interface ISAXElementHandlerelementHandler - the child element previously created by the receiver that is
terminated nowSAXException - if errorpublic void endDocumentElement()
throws SAXException
ISAXElementHandlerendDocumentElement in interface ISAXElementHandlerSAXException - if errorpublic void endElement(String pUri, String local, String name) throws SAXException
ISAXElementHandlerendElement in interface ISAXElementHandlerpUri - the SAX namspace urilocal - the SAX local namename - the SAX qualified nameSAXException - if errororg.xml.saxpublic char[] getChars()
public int getColumn()
public SAXContextBasedHandler getContextHandler()
ISAXElementHandlergetContextHandler in interface ISAXElementHandlerpublic String getData()
public int getEndColumn()
public int getEndLine()
public int getLine()
public String getLocalName()
getLocalName in interface ISAXElementHandlerpublic Locator getLocator()
public int getNesting()
public Map getParameters()
public ISAXElementHandler getParent()
getParent in interface ISAXElementHandlerpublic String getPath()
public Object getResult()
ISAXElementHandlergetResult in interface ISAXElementHandlerpublic String getURI()
getURI in interface ISAXElementHandlerpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ISAXElementHandlerch - docmestart - docmelength - docmeSAXException - docmepublic void initialize(String pUri, String local, String name, Attributes attrs) throws SAXException
initialize in interface ISAXElementHandleruri - docmelocal - docmename - docmeattrs - docmeSAXException - docmepublic void initializeDocumentElement()
throws SAXException
initializeDocumentElement in interface ISAXElementHandlerSAXException - docmepublic boolean isCharacterDataAllowed()
public boolean isDocumentHandler()
isDocumentHandler in interface ISAXElementHandlerpublic boolean isLeaf()
public boolean isRootElementHandler()
isRootElementHandler in interface ISAXElementHandlerpublic boolean isWhitespaceAllowed()
public void markEndLocation(int newLine,
int newColumn)
markEndLocation in interface ISAXElementHandlerpublic void markStartLocation(int newLine,
int newColumn)
ISAXElementHandlermarkStartLocation in interface ISAXElementHandlerpublic void processAttribute(String name, String value) throws SAXException
SAXExceptionpublic void processAttributes(Attributes attrs) throws SAXException
ISAXElementHandlerprocessAttributes in interface ISAXElementHandlerSAXExceptionpublic void reset()
public void setChars(char[] newChars)
public void setColumn(int newColumn)
public void setContextHandler(SAXContextBasedHandler newContextHandler)
ISAXElementHandlersetContextHandler in interface ISAXElementHandlerpublic void setLine(int newLine)
public void setLocalName(String newLocalName)
ISAXElementHandlersetLocalName in interface ISAXElementHandlerpublic void setParent(ISAXElementHandler newParent)
ISAXElementHandlersetParent in interface ISAXElementHandlerpublic void setURI(String newUri)
ISAXElementHandlersetURI in interface ISAXElementHandlerpublic void startChildElement(ISAXElementHandler element) throws SAXException
ISAXElementHandlerstartChildElement in interface ISAXElementHandlerelement - the child element createdSAXException - if errorpublic void started()
throws SAXException
ISAXElementHandlerstarted in interface ISAXElementHandlerSAXExceptionpublic ISAXElementHandler startElement(String pUri, String local, String name, Attributes attrs) throws SAXException
ISAXElementHandlerstartElement in interface ISAXElementHandlerSAXExceptionCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.