/** * Constructor */ @SimpleSetter public UnsignedIntDt(@SimpleSetter.Parameter(name = "theInteger") int theInteger) { setValue(theInteger); }
/** * Sets the value for <b>size</b> () * * <p> * <b>Definition:</b> * The number of bytes of data that make up this attachment. * </p> */ public AttachmentDt setSize( int theInteger) { mySize = new UnsignedIntDt(theInteger); return this; }
/** * Gets the value(s) for <b>size</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The number of bytes of data that make up this attachment. * </p> */ public Integer getSize() { return getSizeElement().getValue(); }
@Override public void addRootPropertiesToBundle(String theId, String theServerBase, String theLinkSelf, String theLinkPrev, String theLinkNext, Integer theTotalResults, BundleTypeEnum theBundleType, IPrimitiveType<Date> theLastUpdated) { myBase = theServerBase; if (myBundle.getIdElement().isEmpty()) { myBundle.setId(theId); } if (myBundle.getId().isEmpty()) { myBundle.setId(UUID.randomUUID().toString()); } if (ResourceMetadataKeyEnum.UPDATED.get(myBundle) == null) { ResourceMetadataKeyEnum.UPDATED.put(myBundle, (InstantDt) theLastUpdated); } if (!hasLink(Constants.LINK_SELF, myBundle) && isNotBlank(theLinkSelf)) { myBundle.addLink().setRelation(Constants.LINK_SELF).setUrl(theLinkSelf); } if (!hasLink(Constants.LINK_NEXT, myBundle) && isNotBlank(theLinkNext)) { myBundle.addLink().setRelation(Constants.LINK_NEXT).setUrl(theLinkNext); } if (!hasLink(Constants.LINK_PREVIOUS, myBundle) && isNotBlank(theLinkPrev)) { myBundle.addLink().setRelation(Constants.LINK_PREVIOUS).setUrl(theLinkPrev); } if (myBundle.getTypeElement().isEmpty() && theBundleType != null) { myBundle.getTypeElement().setValueAsString(theBundleType.getCode()); } if (myBundle.getTotalElement().isEmpty() && theTotalResults != null) { myBundle.getTotalElement().setValue(theTotalResults); } }
/** * Constructor * * @param theIntegerAsString * A string representation of an integer * @throws DataFormatException * If the string is not a valid integer representation */ public UnsignedIntDt(String theIntegerAsString) { setValueAsString(theIntegerAsString); }
@Override public void addRootPropertiesToBundle(String theId, String theServerBase, String theLinkSelf, String theLinkPrev, String theLinkNext, Integer theTotalResults, BundleTypeEnum theBundleType, IPrimitiveType<Date> theLastUpdated) { ensureBundle(); myBase = theServerBase; if (myBundle.getIdElement().isEmpty()) { myBundle.setId(theId); } if (myBundle.getId().isEmpty()) { myBundle.setId(UUID.randomUUID().toString()); } if (ResourceMetadataKeyEnum.UPDATED.get(myBundle) == null) { ResourceMetadataKeyEnum.UPDATED.put(myBundle, (InstantDt) theLastUpdated); } if (!hasLink(Constants.LINK_SELF, myBundle) && isNotBlank(theLinkSelf)) { myBundle.addLink().setRelation(Constants.LINK_SELF).setUrl(theLinkSelf); } if (!hasLink(Constants.LINK_NEXT, myBundle) && isNotBlank(theLinkNext)) { myBundle.addLink().setRelation(Constants.LINK_NEXT).setUrl(theLinkNext); } if (!hasLink(Constants.LINK_PREVIOUS, myBundle) && isNotBlank(theLinkPrev)) { myBundle.addLink().setRelation(Constants.LINK_PREVIOUS).setUrl(theLinkPrev); } if (myBundle.getTypeElement().isEmpty() && theBundleType != null) { myBundle.getTypeElement().setValueAsString(theBundleType.getCode()); } if (myBundle.getTotalElement().isEmpty() && theTotalResults != null) { myBundle.getTotalElement().setValue(theTotalResults); } }
/** * Constructor * * @param theIntegerAsString * A string representation of an integer * @throws DataFormatException * If the string is not a valid integer representation */ public UnsignedIntDt(String theIntegerAsString) { setValueAsString(theIntegerAsString); }
/** * Gets the value(s) for <b>size</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * The number of bytes of data that make up this attachment. * </p> */ public UnsignedIntDt getSizeElement() { if (mySize == null) { mySize = new UnsignedIntDt(); } return mySize; }
/** * Gets the value(s) for <b>priority</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority) * </p> */ public Integer getPriority() { return getPriorityElement().getValue(); }
/** * Constructor */ @SimpleSetter public UnsignedIntDt(@SimpleSetter.Parameter(name = "theInteger") int theInteger) { setValue(theInteger); }
/** * Sets the value for <b>duration</b> () * * <p> * <b>Definition:</b> * The duration of the recording in seconds - for audio and video * </p> */ public Media setDuration( int theInteger) { myDuration = new UnsignedIntDt(theInteger); return this; }
/** * Gets the value(s) for <b>numberOfInstances</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * Number of SOP Instances in Study * </p> */ public Integer getNumberOfInstances() { return getNumberOfInstancesElement().getValue(); }
myBundle.getTotalElement().setValue(theTotalResults);
/** * Sets the value for <b>numberOfInstances</b> () * * <p> * <b>Definition:</b> * Number of SOP Instances in Study * </p> */ public ImagingStudy setNumberOfInstances( int theInteger) { myNumberOfInstances = new UnsignedIntDt(theInteger); return this; }
/** * Gets the value(s) for <b>size</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The number of bytes of data that make up this attachment. * </p> */ public Integer getSize() { return getSizeElement().getValue(); }
myBundle.getTotalElement().setValue(theTotalResults);
/** * Sets the value for <b>priority</b> () * * <p> * <b>Definition:</b> * The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority) * </p> */ public Appointment setPriority( int theInteger) { myPriority = new UnsignedIntDt(theInteger); return this; }
/** * Gets the value(s) for <b>duration</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The duration of the recording in seconds - for audio and video * </p> */ public Integer getDuration() { return getDurationElement().getValue(); }
/** * Sets the value for <b>number</b> () * * <p> * <b>Definition:</b> * The Numeric identifier of this series in the study. * </p> */ public Series setNumber( int theInteger) { myNumber = new UnsignedIntDt(theInteger); return this; }
/** * Gets the value(s) for <b>quantity</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * A count of the number of resource instances that are part of the group * </p> */ public Integer getQuantity() { return getQuantityElement().getValue(); }