Package org.hl7.fhir.r4b.model
Class XhtmlType
- java.lang.Object
-
- org.hl7.fhir.r4b.model.Base
-
- org.hl7.fhir.r4b.model.Element
-
- org.hl7.fhir.r4b.model.DataType
-
- org.hl7.fhir.r4b.model.PrimitiveType<String>
-
- org.hl7.fhir.r4b.model.XhtmlType
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Externalizable,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.IPrimitiveType<String>
public class XhtmlType extends PrimitiveType<String>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrimitiveType<String>copy()protected Stringencode(String theValue)Subclasses must override to convert a "coerced" value into an encoded one.StringfhirType()StringgetIdBase()Base[]getProperty(int hash, String name, boolean checkValid)StringgetValue()org.hl7.fhir.utilities.xhtml.XhtmlNodegetXhtml()return XHTML if this is an XHTML node, else nullbooleanhasPrimitiveValue()booleanisPrimitive()protected voidlistChildren(List<Property> result)protected Stringparse(String theValue)Subclasses must override to convert an encoded representation of this datatype into a "coerced" oneStringprimitiveValue()voidsetIdBase(String value)BasesetProperty(int hash, String name, Base value)-
Methods inherited from class org.hl7.fhir.r4b.model.PrimitiveType
asStringValue, equalsDeep, equalsShallow, forceStringValue, fpValue, fromStringValue, getTypesForProperty, getValueAsString, hashCode, hasValue, isEmpty, makeProperty, readExternal, setProperty, setValue, setValueAsString, toString, typedCopy, updateStringValue, writeExternal
-
Methods inherited from class org.hl7.fhir.r4b.model.DataType
copyValues
-
Methods inherited from class org.hl7.fhir.r4b.model.Element
addChild, addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdElement, getNamedProperty, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdElement
-
Methods inherited from class org.hl7.fhir.r4b.model.Base
children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyUserData, copyValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isBooleanPrimitive, isDateTime, 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
-
-
-
-
Method Detail
-
listChildren
protected void listChildren(List<Property> result)
- Overrides:
listChildrenin classElement
-
copy
public PrimitiveType<String> copy()
- Specified by:
copyin classPrimitiveType<String>
-
getValue
public String getValue()
- Specified by:
getValuein interfaceorg.hl7.fhir.instance.model.api.IPrimitiveType<String>- Overrides:
getValuein classPrimitiveType<String>
-
getXhtml
public org.hl7.fhir.utilities.xhtml.XhtmlNode getXhtml()
Description copied from class:Basereturn XHTML if this is an XHTML node, else null
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classPrimitiveType<String>- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classPrimitiveType<String>- Throws:
org.hl7.fhir.exceptions.FHIRException
-
primitiveValue
public String primitiveValue()
- Overrides:
primitiveValuein classPrimitiveType<String>
-
isPrimitive
public boolean isPrimitive()
- Overrides:
isPrimitivein classPrimitiveType<String>
-
hasPrimitiveValue
public boolean hasPrimitiveValue()
- Overrides:
hasPrimitiveValuein classPrimitiveType<String>
-
encode
protected String encode(String theValue)
Description copied from class:PrimitiveTypeSubclasses must override to convert a "coerced" value into an encoded one.- Specified by:
encodein classPrimitiveType<String>- Parameters:
theValue- Will not be null- Returns:
- May return null if the value does not correspond to anything
-
parse
protected String parse(String theValue)
Description copied from class:PrimitiveTypeSubclasses must override to convert an encoded representation of this datatype into a "coerced" one- Specified by:
parsein classPrimitiveType<String>- Parameters:
theValue- Will not be null- Returns:
- May return null if the value does not correspond to anything
-
-