Class CollectionConverter<B>
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.converters.OpenMetadataConverterBase<B>
org.odpi.openmetadata.accessservices.communityprofile.client.converters.CommunityProfileConverterBase<B>
org.odpi.openmetadata.accessservices.communityprofile.client.converters.CollectionConverter<B>
CollectionConverter generates a CollectionElement from a Collection entity
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionConverter(org.odpi.openmetadata.frameworks.governanceaction.search.PropertyHelper propertyHelper, String serviceName, String serverName) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetNewBean(Class<B> beanClass, org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataElement openMetadataElement, String methodName) Using the supplied openMetadataElement, return a new instance of the bean.getNewBean(Class<B> beanClass, org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataElement element, org.odpi.openmetadata.frameworks.governanceaction.properties.RelatedMetadataElements relationship, String methodName) Using the supplied instances, return a new instance of the bean.getNewBean(Class<B> beanClass, org.odpi.openmetadata.frameworks.governanceaction.properties.RelatedMetadataElement relatedMetadataElement, String methodName) Using the supplied openMetadataElement, return a new instance of the bean.Methods inherited from class org.odpi.openmetadata.accessservices.communityprofile.client.converters.CommunityProfileConverterBase
getRelatedElement, getRelatedElementMethods inherited from class org.odpi.openmetadata.frameworks.governanceaction.converters.OpenMetadataConverterBase
getElementStub, getElementStub, getMetadataElementHeader, getNewComplexBean, getNewComplexBean, getNewRelatedMetadataElementsBean, getNewSchemaAttributeBean
-
Constructor Details
-
CollectionConverter
public CollectionConverter(org.odpi.openmetadata.frameworks.governanceaction.search.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, org.odpi.openmetadata.frameworks.governanceaction.properties.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 classorg.odpi.openmetadata.frameworks.governanceaction.converters.OpenMetadataConverterBase<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
-
getNewBean
public B getNewBean(Class<B> beanClass, org.odpi.openmetadata.frameworks.governanceaction.properties.RelatedMetadataElement relatedMetadataElement, 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 classorg.odpi.openmetadata.frameworks.governanceaction.converters.OpenMetadataConverterBase<B>- Parameters:
beanClass- name of the class to createrelatedMetadataElement- the properties of an open metadata element plus details of the relationship used to navigate to itmethodName- 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
-
getNewBean
public B getNewBean(Class<B> beanClass, org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataElement element, org.odpi.openmetadata.frameworks.governanceaction.properties.RelatedMetadataElements relationship, String methodName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Using the supplied instances, return a new instance of the bean. This is used for beans that contain a combination of the properties from an element and that of a connected relationship.- Overrides:
getNewBeanin classorg.odpi.openmetadata.frameworks.governanceaction.converters.OpenMetadataConverterBase<B>- Parameters:
beanClass- name of the class to createelement- element containing the propertiesrelationship- relationship 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
-