/bundles/plugins-trunk/XML/xml/AntXmlParsedData.java
Java | 27 lines | 17 code | 5 blank | 5 comment | 1 complexity | 34389aad3a0d6dea5c10c2fe7e0177bf MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
- package xml;
- import sidekick.ExpansionModel;
- /**
- * Special version of XmlParsedData for Ant build files.
- */
- public class AntXmlParsedData extends XmlParsedData {
- public AntXmlParsedData(String filename, boolean html) {
- super(filename, html);
- }
- @Override
- // TODO: remove? Currently, this is the same as the super method. If removed,
- // this entire class can be removed.
- protected ExpansionModel createExpansionModel() {
- ExpansionModel em = new ExpansionModel();
- em.add(); // root (filename node)
- em.add(); // project node
- for (int i = 0; i < root.getChildAt(0).getChildCount(); i++) {
- em.inc(); // property, target, etc, nodes
- }
- return em;
- }
- }