
Package ca.uhn.fhir.model.primitive
Class UriDt
- All Implemented Interfaces:
IDatatype,IElement,IIdentifiableElement,IPrimitiveDatatype<String>,ISupportsUndeclaredExtensions,Externalizable,Serializable,IBase,IBaseDatatype,IPrimitiveType<String>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringSubclasses must override to convert a "coerced" value into an encoded one.booleanbooleanCompares the given string to the string representation of this URI.static UriDtCreates a new UriDt instance which uses the given OID as the content (and prepends "urn:oid:" to the OID string in the value of the newly created UriDt, per the FHIR specification).inthashCode()protected StringSubclasses must override to convert an encoded representation of this datatype into a "coerced" oneMethods inherited from class ca.uhn.fhir.model.api.BasePrimitive
getValue, getValueAsString, hasValue, isEmpty, readExternal, setValue, setValueAsString, toString, updateStringValue, writeExternalMethods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setIdMethods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserDataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
Constructor Details
-
UriDt
public UriDt()Create a new String -
UriDt
Create a new String
-
-
Method Details
-
encode
Description copied from class:BasePrimitiveSubclasses must override to convert a "coerced" value into an encoded one.- Specified by:
encodein classBasePrimitive<String>- Parameters:
theValue- Will not be null- Returns:
- May return null if the value does not correspond to anything
-
equals
- Overrides:
equalsin classBasePrimitive<String>
-
equals
Compares the given string to the string representation of this URI. In many cases it is preferable to use this instead of the standardequals(Object)method, since that method returnsfalseunless it is passed an instance ofUriDt -
hashCode
- Overrides:
hashCodein classBasePrimitive<String>
-
parse
Description copied from class:BasePrimitiveSubclasses must override to convert an encoded representation of this datatype into a "coerced" one- Specified by:
parsein classBasePrimitive<String>- Parameters:
theValue- Will not be null- Returns:
- May return null if the value does not correspond to anything
-
fromOid
Creates a new UriDt instance which uses the given OID as the content (and prepends "urn:oid:" to the OID string in the value of the newly created UriDt, per the FHIR specification).- Parameters:
theOid- The OID to use (nullis acceptable and will result in a UriDt instance with anullvalue)- Returns:
- A new UriDt instance
-