1 32 33 package com.jeantessier.commandline; 34 35 39 public class NullParameterStrategy implements ParameterStrategy { 40 private boolean satisfied = true; 41 42 public boolean accept(String param) { 43 satisfied = false; 44 return false; 45 } 46 47 public boolean isSatisfied() { 48 return satisfied; 49 } 50 51 public void accept(Visitor visitor) { 52 visitor.visitNullParameterStrategy(this); 53 } 54 } 55 | Popular Tags |