Package ca.uhn.fhir.context
Class RuntimeResourceDefinition
java.lang.Object
ca.uhn.fhir.context.BaseRuntimeElementDefinition<IBaseResource>
ca.uhn.fhir.context.BaseRuntimeElementCompositeDefinition<IBaseResource>
ca.uhn.fhir.context.RuntimeResourceDefinition
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.uhn.fhir.context.BaseRuntimeElementDefinition
BaseRuntimeElementDefinition.ChildTypeEnum
-
Constructor Summary
ConstructorDescriptionRuntimeResourceDefinition
(FhirContext theContext, String theResourceName, Class<? extends IBaseResource> theClass, ResourceDef theResourceAnnotation, boolean theStandardType, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSearchParam
(RuntimeSearchParam theParam) If this definition refers to a class which extends another resource definition type, this method will return the definition of the topmost resource.getId()
<T> Class
<T> getImplementingClass
(Class<T> theClass) ExpressBaseRuntimeElementDefinition.getImplementingClass()
as theClass (to prevent casting warnings)Deprecated.getResourceProfile
(String theServerBase) getSearchParam
(String theName) getSearchParamsForCompartmentName
(String theCompartmentName) Will not return nullboolean
isBundle()
void
sealAndInitialize
(FhirContext theContext, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) Deprecated.Methods inherited from class ca.uhn.fhir.context.BaseRuntimeElementCompositeDefinition
getChildByName, getChildByNameOrThrowDataFormatException, getChildren, getChildrenAndExtension, isSealed, validateSealed
Methods inherited from class ca.uhn.fhir.context.BaseRuntimeElementDefinition
addExtension, getDeclaredExtension, getExtensions, getExtensionsModifier, getExtensionsNonModifier, getImplementingClass, getName, getRootParentDefinition, hasExtensions, isStandardType, newInstance, newInstance, toString
-
Constructor Details
-
RuntimeResourceDefinition
public RuntimeResourceDefinition(FhirContext theContext, String theResourceName, Class<? extends IBaseResource> theClass, ResourceDef theResourceAnnotation, boolean theStandardType, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions)
-
-
Method Details
-
addSearchParam
-
getBaseDefinition
If this definition refers to a class which extends another resource definition type, this method will return the definition of the topmost resource. For example, if this definition refers to MyPatient2, which extends MyPatient, which in turn extends Patient, this method will return the resource definition for Patient.If the definition has no parent, returns
this
-
getChildType
- Specified by:
getChildType
in classBaseRuntimeElementDefinition<IBaseResource>
-
getId
-
getImplementingClass
ExpressBaseRuntimeElementDefinition.getImplementingClass()
as theClass (to prevent casting warnings) -
getResourceProfile
Deprecated. -
getResourceProfile
-
getSearchParam
-
getSearchParams
-
getSearchParamsForCompartmentName
Will not return null -
getStructureVersion
-
isBundle
-
sealAndInitialize
public void sealAndInitialize(FhirContext theContext, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) -
toProfile
Deprecated. -
toProfile
-