Tabnine Logo
ValidationResult.tagsOfMissingAttributes
Code IndexAdd Tabnine to your IDE (free)

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

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

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

@Override
public String toString() {
  if (isValid())
    return "VALID";
  StringBuilder sb = new StringBuilder();
  if (notAllowedAttributes != null)
    errorComment(sb, "Not allowed Attribute",
        tagsOfNotAllowedAttributes()).append(StringUtils.LINE_SEPARATOR);
  if (missingAttributes != null)
    errorComment(sb, "Missing Attribute",
        tagsOfMissingAttributes()).append(StringUtils.LINE_SEPARATOR);
  if (missingAttributeValues != null)
    errorComment(sb, "Missing Value of Attribute",
        tagsOfMissingAttributeValues()).append(StringUtils.LINE_SEPARATOR);
  if (invalidAttributeValues != null)
    errorComment(sb, "Invalid Attribute",
        tagsOfInvalidAttributeValues()).append(StringUtils.LINE_SEPARATOR);
  return sb.substring(0, sb.length()-1);
}
origin: dcm4che/dcm4che

public String getErrorComment() {
  StringBuilder sb = new StringBuilder();
  if (notAllowedAttributes != null)
    return errorComment(sb, "Not allowed Attribute",
        tagsOfNotAllowedAttributes()).toString();
  if (missingAttributes != null)
    return errorComment(sb, "Missing Attribute",
        tagsOfMissingAttributes()).toString();
  if (missingAttributeValues != null)
    return errorComment(sb, "Missing Value of Attribute",
        tagsOfMissingAttributeValues()).toString();
  if (invalidAttributeValues != null)
    return errorComment(sb, "Invalid Attribute",
        tagsOfInvalidAttributeValues()).toString();
  return null;
}
origin: dcm4che/dcm4che

public int[] getOffendingElements() {
  return cat(tagsOfMissingAttributes(),
      tagsOfMissingAttributeValues(),
      tagsOfInvalidAttributeValues(),
      tagsOfNotAllowedAttributes());
}
origin: dcm4che/dcm4che

  public static DicomServiceException valueOf(ValidationResult result,
      Attributes attrs) {
    if (result.hasNotAllowedAttributes())
      return new DicomServiceException(Status.NoSuchAttribute)
        .setAttributeIdentifierList(result.tagsOfNotAllowedAttributes());
    if (result.hasMissingAttributes())
      return new DicomServiceException(Status.MissingAttribute)
        .setAttributeIdentifierList(result.tagsOfMissingAttributes());
    if (result.hasMissingAttributeValues())
      return new DicomServiceException(Status.MissingAttributeValue)
        .setDataset(new Attributes(attrs, result.tagsOfMissingAttributeValues()));
    if (result.hasInvalidAttributeValues())
      return new DicomServiceException(Status.InvalidAttributeValue)
        .setDataset(new Attributes(attrs, result.tagsOfInvalidAttributeValues()));
    return null;
  }
}
origin: org.dcm4che/dcm4che-net

  public static DicomServiceException valueOf(ValidationResult result,
      Attributes attrs) {
    if (result.hasNotAllowedAttributes())
      return new DicomServiceException(Status.NoSuchAttribute)
        .setAttributeIdentifierList(result.tagsOfNotAllowedAttributes());
    if (result.hasMissingAttributes())
      return new DicomServiceException(Status.MissingAttribute)
        .setAttributeIdentifierList(result.tagsOfMissingAttributes());
    if (result.hasMissingAttributeValues())
      return new DicomServiceException(Status.MissingAttributeValue)
        .setDataset(new Attributes(attrs, result.tagsOfMissingAttributeValues()));
    if (result.hasInvalidAttributeValues())
      return new DicomServiceException(Status.InvalidAttributeValue)
        .setDataset(new Attributes(attrs, result.tagsOfInvalidAttributeValues()));
    return null;
  }
}
org.dcm4che3.dataValidationResulttagsOfMissingAttributes

Popular methods of ValidationResult

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

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • JLabel (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Sublime Text for Python
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