
Package ca.uhn.fhir.context
Class RuntimeResourceDefinition
- java.lang.Object
-
- ca.uhn.fhir.context.BaseRuntimeElementDefinition<T>
-
- ca.uhn.fhir.context.BaseRuntimeElementCompositeDefinition<IBaseResource>
-
- ca.uhn.fhir.context.RuntimeResourceDefinition
-
public class RuntimeResourceDefinition extends BaseRuntimeElementCompositeDefinition<IBaseResource>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ca.uhn.fhir.context.BaseRuntimeElementDefinition
BaseRuntimeElementDefinition.ChildTypeEnum
-
-
Constructor Summary
Constructors Constructor Description RuntimeResourceDefinition(FhirContext theContext, String theResourceName, Class<? extends IBaseResource> theClass, ResourceDef theResourceAnnotation, boolean theStandardType, Map<Class<? extends IBase>,BaseRuntimeElementDefinition<?>> theClassToElementDefinitions)
-
Method Summary
-
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 Detail
-
RuntimeResourceDefinition
public RuntimeResourceDefinition(FhirContext theContext, String theResourceName, Class<? extends IBaseResource> theClass, ResourceDef theResourceAnnotation, boolean theStandardType, Map<Class<? extends IBase>,BaseRuntimeElementDefinition<?>> theClassToElementDefinitions)
-
-
Method Detail
-
addSearchParam
public void addSearchParam(RuntimeSearchParam theParam)
-
getBaseDefinition
public RuntimeResourceDefinition 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
public BaseRuntimeElementDefinition.ChildTypeEnum getChildType()
- Specified by:
getChildType
in classBaseRuntimeElementDefinition<IBaseResource>
-
getImplementingClass
public <T> Class<T> getImplementingClass(Class<T> theClass)
ExpressBaseRuntimeElementDefinition.getImplementingClass()
as theClass (to prevent casting warnings)
-
getResourceProfile
@Deprecated public String getResourceProfile()
Deprecated.
-
getResourceProfile
public String getResourceProfile(String theServerBase)
-
getSearchParam
public RuntimeSearchParam getSearchParam(String theName)
-
getSearchParams
public List<RuntimeSearchParam> getSearchParams()
-
getSearchParamsForCompartmentName
public List<RuntimeSearchParam> getSearchParamsForCompartmentName(String theCompartmentName)
Will not return null
-
getStructureVersion
public FhirVersionEnum getStructureVersion()
-
isBundle
public boolean isBundle()
-
sealAndInitialize
public void sealAndInitialize(FhirContext theContext, Map<Class<? extends IBase>,BaseRuntimeElementDefinition<?>> theClassToElementDefinitions)
-
toProfile
@Deprecated public IBaseResource toProfile()
Deprecated.
-
toProfile
public IBaseResource toProfile(String theServerBase)
-
-