Codota Logo
ValidationResult.tagsOfInvalidAttributeValues
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using org.dcm4che3.data.ValidationResult.tagsOfInvalidAttributeValues (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 LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
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.dataValidationResulttagsOfInvalidAttributeValues

Popular methods of ValidationResult

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

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