|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2002 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.vcscore.commands; import java.io.File; import java.util.Map; import org.netbeans.api.vcs.commands.Command; import org.netbeans.modules.vcscore.cmdline.exec.StructuredExec; /** * This class represents a command whose behavior is described by VcsCommand. * * @author Martin Entlicher */ public interface VcsDescribedCommand extends Command, TextOutputCommand, RegexOutputCommand, FileReaderCommand, ChainingCommand { /** * Set the VcsCommand instance associated with this command. * @param cmd the VcsCommand. */ public void setVcsCommand(VcsCommand cmd); /** * Get the VcsCommand instance associated with this command. * @return The VcsCommand. */ public VcsCommand getVcsCommand(); /** * Set additional variables for the command execution. * @param vars The map of variable names and values. */ public void setAdditionalVariables(Map vars); /** * Get additional variables for the command execution. * @return the map of variable names and values. */ public Map getAdditionalVariables(); /** * Set a preferred execution string, which might have some variables * or patterns expanded. * @param preferredExec the preferred execution string */ public void setPreferredExec(String preferredExec); /** * Get a preferred execution string, which might have some variables * or patterns expanded. * @return the preferred execution string */ public String getPreferredExec(); /** * Set a preferred structured execution property, which might have some variables * or patterns expanded. * @param preferredSExec the preferred structured execution property */ public void setPreferredStructuredExec(StructuredExec preferredSExec); /** * Get a preferred structured execution property, which might have some variables * or patterns expanded. * @return the preferred structured execution property */ public StructuredExec getPreferredStructuredExec(); /** * Set the executor, which was already created to take care about executing * of this command. * @deprecated This is needed only for the compatibility with the old "API". */ public void setExecutor(VcsCommandExecutor executor); /** * Get the executor, which was already created to take care about executing * of this command. * @deprecated This is needed only for the compatibility with the old "API". */ public VcsCommandExecutor getExecutor(); /** * Sometimes the FileObject can not be found for a desired file. In this * case this method should be used to specify directly the disk files to act on. * The command is expected to act on the union of all set FileObjects and java.io.Files. * |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.