blob: f17420dc98ab7dc3d9db69d94ebd3b9652d08293 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.ws.internal.consumption.sampleapp.codegen;
import org.eclipse.jst.ws.internal.common.StringUtils;
import org.eclipse.jst.ws.internal.consumption.datamodel.beanmodel.MethodElement;
import org.eclipse.wst.command.internal.provisional.env.core.common.SimpleStatus;
import org.eclipse.wst.command.internal.provisional.env.core.common.Status;
import org.eclipse.wst.ws.internal.datamodel.Element;
/**
* Objects of this class represent a MethodFilegenerator.
* */
public class MethodFileHelpGenerator extends MethodFileGenerator
{
// Copyright
public static final String copyright = "(c) Copyright IBM Corporation 2000, 2002.";
/**
* Constructor.
*
*/
public MethodFileHelpGenerator (StringBuffer buffer,String inputName)
{
super(buffer,inputName);
}
//takes in a Method node
public Status visit (Object object)
{
Element methodElement = (Element)object;
MethodElement method = (MethodElement)methodElement;
if (method.getMethodOmmission()) return new SimpleStatus("");
fbuffer.append("<LI><A HREF=\"" + fInputName + "?method=" + method.getNumberID());
fbuffer.append("\" TARGET=\"inputs\"> " + method.getDisplayName());
fbuffer.append("</A></LI>" + StringUtils.NEWLINE);
return new SimpleStatus("");
}
}