001 /*
002 * Copyright (C) 2012 eXo Platform SAS.
003 *
004 * This is free software; you can redistribute it and/or modify it
005 * under the terms of the GNU Lesser General Public License as
006 * published by the Free Software Foundation; either version 2.1 of
007 * the License, or (at your option) any later version.
008 *
009 * This software is distributed in the hope that it will be useful,
010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012 * Lesser General Public License for more details.
013 *
014 * You should have received a copy of the GNU Lesser General Public
015 * License along with this software; if not, write to the Free
016 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
017 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
018 */
019 package org.crsh.ssh.term.scp;
020
021 import org.crsh.cmdline.annotations.Argument;
022 import org.crsh.cmdline.annotations.Command;
023 import org.crsh.cmdline.annotations.Option;
024 import org.crsh.cmdline.annotations.Required;
025
026 public class SCPAction {
027
028 /** . */
029 @Option(names="r")
030 private Boolean recursive;
031
032 /** . */
033 @Option(names="v")
034 private Boolean verbose;
035
036 /** . */
037 @Option(names="p")
038 private Boolean preserve;
039
040 /** . */
041 @Option(names="f")
042 private Boolean source;
043
044 /** . */
045 @Option(names="t")
046 private Boolean sink;
047
048 /** . */
049 @Option(names="d")
050 private Boolean directory;
051
052 /** . */
053 @Argument
054 @Required
055 private String target;
056
057 public Boolean isRecursive() {
058 return recursive;
059 }
060
061 public void setRecursive(Boolean recursive) {
062 this.recursive = recursive;
063 }
064
065 public Boolean isVerbose() {
066 return verbose;
067 }
068
069 public void setVerbose(Boolean verbose) {
070 this.verbose = verbose;
071 }
072
073 public Boolean isPreserve() {
074 return preserve;
075 }
076
077 public void setPreserve(Boolean preserve) {
078 this.preserve = preserve;
079 }
080
081 public Boolean isSource() {
082 return source;
083 }
084
085 public void setSource(Boolean source) {
086 this.source = source;
087 }
088
089 public Boolean isSink() {
090 return sink;
091 }
092
093 public void setSink(Boolean sink) {
094 this.sink = sink;
095 }
096
097 public Boolean isDirectory() {
098 return directory;
099 }
100
101 public void setDirectory(Boolean directory) {
102 this.directory = directory;
103 }
104
105 public String getTarget() {
106 return target;
107 }
108
109 public void setTarget(String target) {
110 this.target = target;
111 }
112
113 @Override
114 public String toString() {
115 return "SCPAction[recursive=" + recursive + ",verbose=" + verbose + ",preserve=" + preserve + ",source=" + source +
116 ",sink=" + sink + ",directory=" + directory + ",target=" + target + "]";
117 }
118 }