예제 #1
0
 private static void configureKeys(MoveSCU main, CommandLine cl) {
   if (cl.hasOption("m")) {
     String[] keys = cl.getOptionValues("m");
     for (int i = 1; i < keys.length; i++, i++)
       main.addKey(CLIUtils.toTag(keys[i - 1]), StringUtils.split(keys[i], '/'));
   }
   if (cl.hasOption("L")) main.addLevel(cl.getOptionValue("L"));
   if (cl.hasOption("i")) main.setInputFilter(CLIUtils.toTags(cl.getOptionValues("i")));
 }
예제 #2
0
 public final void setInformationModel(InformationModel model, String[] tss, boolean relational) {
   this.model = model;
   rq.addPresentationContext(new PresentationContext(1, model.cuid, tss));
   if (relational)
     rq.addExtendedNegotiation(
         new ExtendedNegotiation(
             model.cuid,
             QueryOption.toExtendedNegotiationInformation(EnumSet.of(QueryOption.RELATIONAL))));
   if (model.level != null) addLevel(model.level);
 }