Package org.hl7.fhir.dstu2.model
Class PositiveIntType
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Base
-
- org.hl7.fhir.dstu2.model.Element
-
- org.hl7.fhir.dstu2.model.Type
-
- org.hl7.fhir.dstu2.model.PrimitiveType<Integer>
-
- org.hl7.fhir.dstu2.model.IntegerType
-
- org.hl7.fhir.dstu2.model.PositiveIntType
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseDatatype,org.hl7.fhir.instance.model.api.IBaseElement,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.IBaseIntegerDatatype,org.hl7.fhir.instance.model.api.IPrimitiveType<Integer>
public class PositiveIntType extends IntegerType
Primitive type "integer" in FHIR: A signed 32-bit integer- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PositiveIntType()ConstructorPositiveIntType(int theInteger)ConstructorPositiveIntType(Long theValue)ConstructorPositiveIntType(String theIntegerAsString)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PositiveIntTypecopy()StringfhirType()-
Methods inherited from class org.hl7.fhir.dstu2.model.IntegerType
encode, parse
-
Methods inherited from class org.hl7.fhir.dstu2.model.PrimitiveType
asStringValue, equalsDeep, equalsShallow, fromStringValue, getValue, getValueAsString, hashCode, hasValue, isEmpty, isPrimitive, primitiveValue, setValue, setValueAsString, toString, typedCopy, updateStringValue
-
Methods inherited from class org.hl7.fhir.dstu2.model.Element
addChild, addExtension, addExtension, copyValues, getExtension, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, listChildren, setId, setIdElement, setProperty
-
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, listChildrenByName, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, isEmpty, setUserData
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseElement
getUserData, setUserData
-
-
-
-
Constructor Detail
-
PositiveIntType
public PositiveIntType()
Constructor
-
PositiveIntType
public PositiveIntType(int theInteger)
Constructor
-
PositiveIntType
public PositiveIntType(String theIntegerAsString)
Constructor- Parameters:
theIntegerAsString- A string representation of an integer- Throws:
IllegalArgumentException- If the string is not a valid integer representation
-
PositiveIntType
public PositiveIntType(Long theValue)
Constructor- Parameters:
theValue- The value- Throws:
IllegalArgumentException- If the value is too large to fit in a signed integer
-
-
Method Detail
-
copy
public PositiveIntType copy()
- Overrides:
copyin classIntegerType
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classIntegerType
-
-