public class SourceAttributesParser extends DefaultHandler
Constructor and Description |
---|
SourceAttributesParser()
Creates a new instance of SonarModelOutputParser
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] buf,
int offset,
int len)
Receive notification of character data inside an element.
|
void |
endDocument()
Creates the flush debugging output of the end of the document.
|
void |
endElement(String namespaceURI,
String sName,
String qName)
Create the end of an element.
|
SonarSource |
parseDocuments(String filename,
boolean isMultiple)
method that will parse properly formatted files passed in and
return array of Lists (RadialBlades and DepthBlades)
|
void |
processData()
Processing data of EnvironmentalData object.
|
void |
startDocument()
Creates the output header of the beginning of the document.
|
void |
startElement(String namespaceURI,
String sName,
String qName,
Attributes attrs)
Create the start of an element.
|
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
public SourceAttributesParser()
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
- The error or warning message.public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
- The error or warning message.public void startElement(String namespaceURI, String sName, String qName, Attributes attrs) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
namespaceURI
- The Url of name space.sName
- The element tag name.qName
- The element tag name.attrs
- The attribute name.SAXException
- The error or warning message.public void endElement(String namespaceURI, String sName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
namespaceURI
- The Url of name space.sName
- The element tag name.qName
- The element tag name.SAXException
- The error or warning message.public void characters(char[] buf, int offset, int len) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
buf
- The characters.offset
- The start position in the character array.len
- The number of characters to use from the character array.SAXException
- The error or warning message.public void processData()
public SonarSource parseDocuments(String filename, boolean isMultiple)
filename
- The source file name to parse.isMultiple
- 'true' if multiple source; 'false' otherwise.