congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ValidationResult.asText
Code IndexAdd Tabnine to your IDE (free)

How to use
asText
method
in
org.dcm4che3.data.ValidationResult

Best Java code snippets using org.dcm4che3.data.ValidationResult.asText (Showing top 2 results out of 315)

origin: dcm4che/dcm4che

public void validate(File file) {
  if (iod == null)
    throw new IllegalStateException("IOD net initialized");
  DicomInputStream dis = null;
  try {
    System.out.print("Validate: " + file + " ... ");
    dis = new DicomInputStream(file);
    Attributes attrs = dis.readDataset(-1, -1);
    ValidationResult result = attrs.validate(iod);
    if (result.isValid())
      System.out.println("OK");
    else {
      System.out.println("FAILED:");
      System.out.println(result.asText(attrs));
    }
  } catch (IOException e) {
    System.out.println("FAILED: " + e.getMessage());
  } finally {
    SafeClose.close(dis);
  }
}
origin: org.dcm4che.tool/dcm4che-tool-dcmvalidate

public void validate(File file) {
  if (iod == null)
    throw new IllegalStateException("IOD net initialized");
  DicomInputStream dis = null;
  try {
    System.out.print("Validate: " + file + " ... ");
    dis = new DicomInputStream(file);
    Attributes attrs = dis.readDataset(-1, -1);
    ValidationResult result = attrs.validate(iod);
    if (result.isValid())
      System.out.println("OK");
    else {
      System.out.println("FAILED:");
      System.out.println(result.asText(attrs));
    }
  } catch (IOException e) {
    System.out.println("FAILED: " + e.getMessage());
  } finally {
    SafeClose.close(dis);
  }
}
org.dcm4che3.dataValidationResultasText

Popular methods of ValidationResult

  • isValid
  • <init>
  • hasInvalidAttributeValues
  • hasMissingAttributeValues
  • hasMissingAttributes
  • hasNotAllowedAttributes
  • tagsOfInvalidAttributeValues
  • tagsOfMissingAttributeValues
  • tagsOfMissingAttributes
  • tagsOfNotAllowedAttributes
  • addInvalidAttributeValue
  • addMissingAttribute
  • addInvalidAttributeValue,
  • addMissingAttribute,
  • addMissingAttributeValue,
  • addNotAllowedAttribute,
  • appendAttribute,
  • appendIODRef,
  • appendInvalidAttributeValues,
  • appendPrefixTo,
  • appendTextTo

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Permission (java.security)
    Legacy security code; do not use.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now