
Package org.hl7.fhir.dstu3.model
Class MarkdownType
- java.lang.Object
-
- org.hl7.fhir.dstu3.model.Base
-
- org.hl7.fhir.dstu3.model.Element
-
- org.hl7.fhir.dstu3.model.Type
-
- org.hl7.fhir.dstu3.model.PrimitiveType<String>
-
- org.hl7.fhir.dstu3.model.StringType
-
- org.hl7.fhir.dstu3.model.MarkdownType
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement
,Externalizable
,Serializable
,Comparable<MarkdownType>
,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.IPrimitiveType<String>
public class MarkdownType extends StringType implements Comparable<MarkdownType>
Primitive type "code" in FHIR, when not bound to an enumerated list of codes- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MarkdownType()
MarkdownType(String theCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(MarkdownType theCode)
MarkdownType
copy()
protected String
encode(String theValue)
Subclasses must override to convert a "coerced" value into an encoded one.String
fhirType()
protected String
parse(String theValue)
Subclasses must override to convert an encoded representation of this datatype into a "coerced" one-
Methods inherited from class org.hl7.fhir.dstu3.model.StringType
getValueNotNull, toString
-
Methods inherited from class org.hl7.fhir.dstu3.model.PrimitiveType
asStringValue, equalsDeep, equalsShallow, fromStringValue, getProperty, getValue, getValueAsString, hashCode, hasPrimitiveValue, hasValue, isEmpty, isPrimitive, primitiveValue, readExternal, setProperty, setProperty, setValue, setValueAsString, typedCopy, updateStringValue, writeExternal
-
Methods inherited from class org.hl7.fhir.dstu3.model.Element
addChild, addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, getNamedProperty, getTypesForProperty, hasExtension, hasExtension, hasId, hasIdElement, listChildren, makeProperty, setExtension, setId, setIdBase, setIdElement
-
Methods inherited from class org.hl7.fhir.dstu3.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isBooleanPrimitive, isMetadataBased, isResource, listChildrenByName, 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, setUserData
-
-
-
-
Constructor Detail
-
MarkdownType
public MarkdownType()
-
MarkdownType
public MarkdownType(String theCode)
-
-
Method Detail
-
compareTo
public int compareTo(MarkdownType theCode)
- Specified by:
compareTo
in interfaceComparable<MarkdownType>
-
parse
protected String parse(String theValue)
Description copied from class:PrimitiveType
Subclasses must override to convert an encoded representation of this datatype into a "coerced" one- Overrides:
parse
in classStringType
- Parameters:
theValue
- Will not be null- Returns:
- May return null if the value does not correspond to anything
-
encode
protected String encode(String theValue)
Description copied from class:PrimitiveType
Subclasses must override to convert a "coerced" value into an encoded one.- Overrides:
encode
in classStringType
- Parameters:
theValue
- Will not be null- Returns:
- May return null if the value does not correspond to anything
-
copy
public MarkdownType copy()
- Overrides:
copy
in classStringType
-
fhirType
public String fhirType()
- Specified by:
fhirType
in interfaceorg.hl7.fhir.instance.model.api.IBase
- Overrides:
fhirType
in classStringType
-
-