CategoryDatasetHandler.java 文件源码

java
阅读 35 收藏 0 点赞 0 评论 0

项目:parabuild-ci 作者:
/**
 * The start of an element.
 *
 * @param namespaceURI  the namespace.
 * @param localName  the element name.
 * @param qName  the element name.
 * @param atts  the element attributes.
 *
 * @throws SAXException for errors.
 */
public void startElement(final String namespaceURI,
                         final String localName,
                         final String qName,
                         final Attributes atts) throws SAXException {

    final DefaultHandler current = getCurrentHandler();
    if (current != this) {
        current.startElement(namespaceURI, localName, qName, atts);
    }
    else if (qName.equals(CATEGORYDATASET_TAG)) {
        this.dataset = new DefaultCategoryDataset();
    }
    else if (qName.equals(SERIES_TAG)) {
        final CategorySeriesHandler subhandler = new CategorySeriesHandler(this);
        getSubHandlers().push(subhandler);
        subhandler.startElement(namespaceURI, localName, qName, atts);
    }
    else {
        throw new SAXException("Element not recognised: " + qName);
    }

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号