congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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)

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

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ImageIO (javax.imageio)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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