Codota Logo
QueryOption
Code IndexAdd Codota to your IDE (free)

How to use
QueryOption
in
org.dcm4che3.net

Best Java code snippets using org.dcm4che3.net.QueryOption (Showing top 19 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: dcm4che/dcm4che

  public EnumSet<QueryOption> getQueryOptionsFor(String cuid) {
    return QueryOption.toOptions(ac.getExtNegotiationFor(cuid));
  }
}
origin: dcm4che/dcm4che

public static byte[] toExtendedNegotiationInformation(EnumSet<QueryOption> opts) {
  byte[] info = new byte[opts.contains(TIMEZONE) ? 4
      : opts.contains(FUZZY) || opts.contains(DATETIME) ? 3
      : 1];
  for (QueryOption query : opts)
    info[query.ordinal()] = 1;
  return info;
}
origin: dcm4che/dcm4che

public static EnumSet<QueryOption> toOptions(ExtendedNegotiation extNeg) {
  EnumSet<QueryOption> opts = EnumSet.noneOf(QueryOption.class);
  if (extNeg != null) {
    toOption(extNeg, QueryOption.RELATIONAL, opts);
    toOption(extNeg, QueryOption.DATETIME, opts);
    toOption(extNeg, QueryOption.FUZZY, opts);
    toOption(extNeg, QueryOption.TIMEZONE, opts);
  }
  return opts ;
}
origin: dcm4che/dcm4che

private byte[] negotiate(ExtendedNegotiation exneg, TransferCapability tc) {
  if (exneg == null)
    return null;
  StorageOptions storageOptions = tc.getStorageOptions();
  if (storageOptions != null)
    return storageOptions.toExtendedNegotiationInformation();
  EnumSet<QueryOption> queryOptions = tc.getQueryOptions();
  if (queryOptions != null) {
    EnumSet<QueryOption> commonOpts = QueryOption.toOptions(exneg);
    commonOpts.retainAll(queryOptions);
    return QueryOption.toExtendedNegotiationInformation(commonOpts);
  }
  return null;
}
origin: dcm4che/dcm4che

public final void setInformationModel(InformationModel model, String[] tss,
    EnumSet<QueryOption> queryOptions) {
  this.model = model;
  rq.addPresentationContext(new PresentationContext(1, model.cuid, tss));
  if (!queryOptions.isEmpty()) {
    model.adjustQueryOptions(queryOptions);
    rq.addExtendedNegotiation(new ExtendedNegotiation(model.cuid, 
        QueryOption.toExtendedNegotiationInformation(queryOptions)));
  }
  if (model.level != null)
    addLevel(model.level);
}
origin: org.dcm4che/dcm4che-net

private byte[] negotiate(ExtendedNegotiation exneg, TransferCapability tc) {
  if (exneg == null)
    return null;
  StorageOptions storageOptions = tc.getStorageOptions();
  if (storageOptions != null)
    return storageOptions.toExtendedNegotiationInformation();
  EnumSet<QueryOption> queryOptions = tc.getQueryOptions();
  if (queryOptions != null) {
    EnumSet<QueryOption> commonOpts = QueryOption.toOptions(exneg);
    commonOpts.retainAll(queryOptions);
    return QueryOption.toExtendedNegotiationInformation(commonOpts);
  }
  return null;
}
origin: usnistgov/iheos-toolkit2

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);
}
origin: org.dcm4che/dcm4che-net

  public EnumSet<QueryOption> getQueryOptionsFor(String cuid) {
    return QueryOption.toOptions(ac.getExtNegotiationFor(cuid));
  }
}
origin: org.dcm4che.tool/dcm4che-tool-findscu

public final void setInformationModel(InformationModel model, String[] tss,
    EnumSet<QueryOption> queryOptions) {
  this.model = model;
  rq.addPresentationContext(new PresentationContext(1, model.cuid, tss));
  if (!queryOptions.isEmpty()) {
    model.adjustQueryOptions(queryOptions);
    rq.addExtendedNegotiation(new ExtendedNegotiation(model.cuid, 
        QueryOption.toExtendedNegotiationInformation(queryOptions)));
  }
  if (model.level != null)
    addLevel(model.level);
}
origin: org.dcm4che/dcm4che-net

public static byte[] toExtendedNegotiationInformation(EnumSet<QueryOption> opts) {
  byte[] info = new byte[opts.contains(TIMEZONE) ? 4
      : opts.contains(FUZZY) || opts.contains(DATETIME) ? 3
      : 1];
  for (QueryOption query : opts)
    info[query.ordinal()] = 1;
  return info;
}
origin: org.dcm4che/dcm4che-net

public static EnumSet<QueryOption> toOptions(ExtendedNegotiation extNeg) {
  EnumSet<QueryOption> opts = EnumSet.noneOf(QueryOption.class);
  if (extNeg != null) {
    toOption(extNeg, QueryOption.RELATIONAL, opts);
    toOption(extNeg, QueryOption.DATETIME, opts);
    toOption(extNeg, QueryOption.FUZZY, opts);
    toOption(extNeg, QueryOption.TIMEZONE, opts);
  }
  return opts ;
}
origin: dcm4che/dcm4che

private boolean relational(Association as, Attributes rq) {
  String cuid = rq.getString(Tag.AffectedSOPClassUID);
  ExtendedNegotiation extNeg = as.getAAssociateAC().getExtNegotiationFor(cuid);
  return QueryOption.toOptions(extNeg).contains(QueryOption.RELATIONAL);
}
origin: dcm4che/dcm4che

  private static void toOption(ExtendedNegotiation extNeg,
      QueryOption opt, EnumSet<QueryOption> opts) {
    if (extNeg.getField(opt.ordinal(), (byte) 0) == 1)
      opts.add(opt);
  }
}
origin: dcm4che/dcm4che

  private boolean relational(Association as, Attributes rq) {
    String cuid = rq.getString(Tag.AffectedSOPClassUID);
    ExtendedNegotiation extNeg = as.getAAssociateAC().getExtNegotiationFor(cuid);
    return QueryOption.toOptions(extNeg).contains(QueryOption.RELATIONAL);
  }
}
origin: org.dcm4che/dcm4che-net

  private static void toOption(ExtendedNegotiation extNeg,
      QueryOption opt, EnumSet<QueryOption> opts) {
    if (extNeg.getField(opt.ordinal(), (byte) 0) == 1)
      opts.add(opt);
  }
}
origin: dcm4che/dcm4che

  private boolean relational(Association as, Attributes rq) {
    String cuid = rq.getString(Tag.AffectedSOPClassUID);
    ExtendedNegotiation extNeg = as.getAAssociateAC().getExtNegotiationFor(cuid);
    return QueryOption.toOptions(extNeg).contains(QueryOption.RELATIONAL);
  }
}
origin: org.dcm4che.tool/dcm4che-tool-dcmqrscp

  private boolean relational(Association as, Attributes rq) {
    String cuid = rq.getString(Tag.AffectedSOPClassUID);
    ExtendedNegotiation extNeg = as.getAAssociateAC().getExtNegotiationFor(cuid);
    return QueryOption.toOptions(extNeg).contains(QueryOption.RELATIONAL);
  }
}
origin: org.dcm4che.tool/dcm4che-tool-dcmqrscp

private boolean relational(Association as, Attributes rq) {
  String cuid = rq.getString(Tag.AffectedSOPClassUID);
  ExtendedNegotiation extNeg = as.getAAssociateAC().getExtNegotiationFor(cuid);
  return QueryOption.toOptions(extNeg).contains(QueryOption.RELATIONAL);
}
origin: org.dcm4che.tool/dcm4che-tool-dcmqrscp

  private boolean relational(Association as, Attributes rq) {
    String cuid = rq.getString(Tag.AffectedSOPClassUID);
    ExtendedNegotiation extNeg = as.getAAssociateAC().getExtNegotiationFor(cuid);
    return QueryOption.toOptions(extNeg).contains(QueryOption.RELATIONAL);
  }
}
org.dcm4che3.netQueryOption

Most used methods

  • toExtendedNegotiationInformation
  • toOptions
  • ordinal
  • toOption

Popular in Java

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • notifyDataSetChanged (ArrayAdapter)
  • getApplicationContext (Context)
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now