Class ComponentFactory
- java.lang.Object
-
- in.cdac.medinfo.csnotk.csnolib.model.ComponentFactory
-
public class ComponentFactory extends java.lang.ObjectFactory class to generate Components using thegetComponent()method.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VersionedComponentgetComponent(EnumComponent componentType, java.lang.String id)Function to return the object of the desired Component type.static ComponentFactorygetInstance()Static function to return the instance ofComponentFactoryclass.
-
-
-
Method Detail
-
getComponent
public VersionedComponent getComponent(EnumComponent componentType, java.lang.String id)
Function to return the object of the desired Component type.- Parameters:
componentType-EnumComponentvalue that represents the type of the Component whose object has to be created.id- represents the Component Id- Returns:
VersionedComponentIt can be an object ofConceptclass orDescriptionclass orRelationshipclass.
-
getInstance
public static ComponentFactory getInstance()
Static function to return the instance ofComponentFactoryclass.- Returns:
- instance of
ComponentFactoryclass.
-
-