Class MetadataElementSummaryConverter<B>
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.converters.OpenMetadataConverterBase<B>
org.odpi.openmetadata.frameworks.governanceaction.converters.MetadataElementSummaryConverter<B>
MetadataElementSummaryConverter generates a MetadataElementSummary from an OPenMetadataElement.
-
Constructor Summary
ConstructorsConstructorDescriptionMetadataElementSummaryConverter(PropertyHelper propertyHelper, String serviceName, String serverName) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetNewBean(Class<B> beanClass, OpenMetadataElement openMetadataElement, String methodName) Using the supplied openMetadataElement, return a new instance of the bean.getNewBeans(Class<B> beanClass, List<OpenMetadataElement> openMetadataElements, String methodName) Using the supplied openMetadataElement, return a new instance of the bean.Methods inherited from class org.odpi.openmetadata.frameworks.governanceaction.converters.OpenMetadataConverterBase
getElementClassifications, getElementStub, getElementStub, getElementSummary, getMetadataElementHeader, getNewBean, getNewBean, getNewComplexBean, getNewComplexBean, getNewComplexBean, getNewRelatedMetadataElementsBean, getNewSchemaAttributeBean, getRelatedElement, getRelatedElement, getRelatedElementSummary
-
Constructor Details
-
MetadataElementSummaryConverter
public MetadataElementSummaryConverter(PropertyHelper propertyHelper, String serviceName, String serverName) Constructor- Parameters:
propertyHelper- helper object to parse entityserviceName- name of this componentserverName- local server name
-
-
Method Details
-
getNewBean
public B getNewBean(Class<B> beanClass, OpenMetadataElement openMetadataElement, String methodName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Using the supplied openMetadataElement, return a new instance of the bean. This is used for most beans that have a one to one correspondence with the repository instances.- Overrides:
getNewBeanin classOpenMetadataConverterBase<B>- Parameters:
beanClass- name of the class to createopenMetadataElement- openMetadataElement containing the propertiesmethodName- calling method- Returns:
- bean populated with properties from the instances supplied
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem instantiating the bean
-
getNewBeans
public List<B> getNewBeans(Class<B> beanClass, List<OpenMetadataElement> openMetadataElements, String methodName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Using the supplied openMetadataElement, return a new instance of the bean. This is used for most beans that have a one to one correspondence with the repository instances.- Parameters:
beanClass- name of the class to createopenMetadataElements- list of openMetadataElements containing the propertiesmethodName- calling method- Returns:
- bean populated with properties from the instances supplied
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem instantiating the bean
-