/* * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Eike Stepper - initial API and implementation */ package org.eclipse.emf.cdo.releng.doc.article.impl; import org.eclipse.emf.cdo.releng.doc.article.ArticlePackage; import org.eclipse.emf.cdo.releng.doc.article.Category; import org.eclipse.emf.cdo.releng.doc.article.StructuralElement; import org.eclipse.emf.cdo.releng.doc.article.util.ArticleUtil; import org.eclipse.emf.ecore.EClass; import com.sun.javadoc.PackageDoc; import com.sun.javadoc.Tag; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.util.List; /** * An implementation of the model object 'Category'. *
*
* * @generated */ public class CategoryImpl extends BodyImpl implements Category { /** * * * @generated */ protected CategoryImpl() { super(); } CategoryImpl(StructuralElement parent, PackageDoc packageDoc) { super(parent, ArticleUtil.getSimplePackageName(packageDoc) + "/index.html", packageDoc); for (Tag tag : packageDoc.inlineTags()) { if (tag.name().equals("@toc")) { return; } } elements.add(new TocImpl(null)); } /** * * * @generated */ @Override protected EClass eStaticClass() { return ArticlePackage.Literals.CATEGORY; } @Override protected String getKind() { return "Category"; } @Override protected void collectNavElements(List