public class StringType extends PrimitiveType<String>
| Constructor and Description |
|---|
StringType()
Create a new String
|
StringType(String theValue)
Create a new String
|
| Modifier and Type | Method and Description |
|---|---|
StringType |
copy() |
protected String |
encode(String theValue)
Subclasses must override to convert a "coerced" value into an encoded one.
|
String |
fhirType() |
String |
getTranslation(String l) |
String |
getValueNotNull()
Returns the value of this StringType, or an empty string ("") if the
value is
null. |
protected String |
parse(String theValue)
Subclasses must override to convert an encoded representation of this datatype into a "coerced" one
|
String |
toString()
Returns the value of this string, or
null if no value
is present |
asStringValue, equalsDeep, equalsShallow, forceStringValue, fpValue, fromStringValue, getProperty, getTypesForProperty, getValue, getValueAsString, hashCode, hasPrimitiveValue, hasValue, isEmpty, isPrimitive, makeProperty, primitiveValue, readExternal, setProperty, setProperty, setValue, setValueAsString, typedCopy, updateStringValue, writeExternaladdChild, addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, getNamedProperty, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, listChildren, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElementcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isResource, listChildrenByName, listChildrenByName, setUserData, setUserDataINNclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitgetFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserDatapublic StringType()
public StringType(String theValue)
public String getValueNotNull()
null. This method is provided as a convenience to
users of this API.public String toString()
null if no value
is presenttoString in class PrimitiveType<String>protected String parse(String theValue)
PrimitiveTypeparse in class PrimitiveType<String>theValue - Will not be nullprotected String encode(String theValue)
PrimitiveTypeencode in class PrimitiveType<String>theValue - Will not be nullpublic StringType copy()
copy in class PrimitiveType<String>public String getTranslation(String l) throws org.hl7.fhir.exceptions.FHIRException
org.hl7.fhir.exceptions.FHIRExceptionCopyright © 2014–2021 Health Level 7. All rights reserved.