private static void type2(Dataset rqData, int tag, int... sqTags) throws DcmServiceException { if (!rqData.contains(tag)) new DcmServiceException( sqTags.length == 0 ? Status.MissingAttribute : Status.InvalidAttributeValue, errorMessage("Missing Attribute ", tag, sqTags)); }
/* * See if the input dataset contains a specific element. * @param tag the tag to test for in the input dataset. * @return the true if the element is present in the input dataset; false otherwise. */ public boolean contains(int tag) { return inDS.contains(tag); }
private static void notAllowed(Dataset rqData, int tag) throws DcmServiceException { if (rqData.contains(tag)) throw new DcmServiceException( Status.NoSuchAttribute, errorMessage("Not allowed Attribute: ", tag)); }