Codota Logo
ValidationResult.asText
Code IndexAdd Codota 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)

  • 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 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
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • Kernel (java.awt.image)
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
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