/** * Sets the value for <b>count</b> () * * <p> * <b>Definition:</b> * A total count of the desired number of repetitions * </p> */ public Repeat setCount( int theInteger) { myCount = new IntegerDt(theInteger); return this; }
/** * Gets the value(s) for <b>min</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * The minimum number of times this element SHALL appear in the instance * </p> */ public Integer getMin() { return getMinElement().getValue(); }
public static Object fromInteger(Class<?> theType, IntegerDt theArgument) { if (theArgument == null) { return null; } if (theType.equals(Integer.class)) { return theArgument.getValue(); } IPrimitiveType<?> retVal = (IPrimitiveType<?>) ReflectionUtil.newInstance(theType); retVal.setValueAsString(theArgument.getValueAsString()); return retVal; }
@Override public void translateClientArgumentIntoQueryArgument(FhirContext theContext, Object theSourceClientArgument, Map<String, List<String>> theTargetQueryArguments, IBaseResource theTargetResource) throws InternalErrorException { if (theSourceClientArgument != null) { IntegerDt since = ParameterUtil.toInteger(theSourceClientArgument); if (since.isEmpty() == false) { theTargetQueryArguments.put(Constants.PARAM_COUNT, Collections.singletonList(since.getValueAsString())); } } }
@Override public void addRootPropertiesToBundle(String theAuthor, String theServerBase, String theCompleteUrl, Integer theTotalResults, BundleTypeEnum theBundleType, IPrimitiveType<Date> theLastUpdated) { if (myBundle.getAuthorName().isEmpty()) { myBundle.getAuthorName().setValue(theAuthor); } if (theLastUpdated != null && myBundle.getUpdated().isEmpty() && isNotBlank(theLastUpdated.getValueAsString())) { myBundle.getUpdated().setValueAsString(theLastUpdated.getValueAsString()); } if (myBundle.getBundleId().isEmpty()) { myBundle.getBundleId().setValue(UUID.randomUUID().toString()); } if (myBundle.getLinkBase().isEmpty()) { myBundle.getLinkBase().setValue(theServerBase); } if (myBundle.getLinkSelf().isEmpty()) { myBundle.getLinkSelf().setValue(theCompleteUrl); } if (theBundleType != null && myBundle.getType().isEmpty()) { myBundle.getType().setValueAsString(theBundleType.getCode()); } if (myBundle.getTotalResults().isEmpty() && theTotalResults != null) { myBundle.getTotalResults().setValue(theTotalResults); } }
/** * Constructor */ @SimpleSetter public IntegerDt(@SimpleSetter.Parameter(name = "theInteger") int theInteger) { setValue(theInteger); }
@Override public void translateClientArgumentIntoQueryArgument(FhirContext theContext, Object theSourceClientArgument, Map<String, List<String>> theTargetQueryArguments, IBaseResource theTargetResource) throws InternalErrorException { if (theSourceClientArgument != null) { IntegerDt since = ParameterUtil.toInteger(theSourceClientArgument); if (since.isEmpty() == false) { theTargetQueryArguments.put(Constants.PARAM_COUNT, Collections.singletonList(since.getValueAsString())); } } }
/** * Constructor */ @SimpleSetter public IntegerDt(@SimpleSetter.Parameter(name = "theInteger") int theInteger) { setValue(theInteger); }
/** * Sets the value for <b>frequencyMax</b> () * * <p> * <b>Definition:</b> * * </p> */ public Repeat setFrequencyMax( int theInteger) { myFrequencyMax = new IntegerDt(theInteger); return this; }
/** * Gets the value(s) for <b>frequency</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The number of times to repeat the action within the specified period / period range (i.e. both period and periodMax provided) * </p> */ public Integer getFrequency() { return getFrequencyElement().getValue(); }
public static Object fromInteger(Class<?> theType, IntegerDt theArgument) { if (theArgument == null) { return null; } if (theType.equals(Integer.class)) { return theArgument.getValue(); } IPrimitiveType<?> retVal = (IPrimitiveType<?>) ReflectionUtil.newInstance(theType); retVal.setValueAsString(theArgument.getValueAsString()); return retVal; }
myBundle.getTotalResults().setValue(theTotalResults);
/** * Sets the value for <b>min</b> () * * <p> * <b>Definition:</b> * Minimum cardinality of the base element identified by the path * </p> */ public Base setMin( int theInteger) { myMin = new IntegerDt(theInteger); return this; }
/** * Gets the value(s) for <b>min</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The minimum number of times this element SHALL appear in the instance * </p> */ public Integer getMin() { return getMinElement().getValue(); }
/** * Sets the value for <b>min</b> () * * <p> * <b>Definition:</b> * Minimum cardinality of the base element identified by the path * </p> */ public Base setMin( int theInteger) { myMin = new IntegerDt(theInteger); return this; }
/** * Gets the value(s) for <b>maxLength</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element * </p> */ public Integer getMaxLength() { return getMaxLengthElement().getValue(); }
/** * Sets the value for <b>maxLength</b> () * * <p> * <b>Definition:</b> * Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element * </p> */ public ElementDefinitionDt setMaxLength( int theInteger) { myMaxLength = new IntegerDt(theInteger); return this; }
/** * Gets the value(s) for <b>min</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * Minimum cardinality of the base element identified by the path * </p> */ public Integer getMin() { return getMinElement().getValue(); }
/** * Sets the value for <b>offset</b> () * * <p> * <b>Definition:</b> * If paging is being used, the offset at which this resource starts. I.e. this resource is a partial view into the expansion. If paging is not being used, this element SHALL not be present * </p> */ public Expansion setOffset( int theInteger) { myOffset = new IntegerDt(theInteger); return this; }
/** * Gets the value(s) for <b>count</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * A total count of the desired number of repetitions * </p> */ public Integer getCount() { return getCountElement().getValue(); }