Class ElementHeaderConverter

  • Direct Known Subclasses:
    ReferenceableConverter

    public class ElementHeaderConverter
    extends Object
    ElementHeaderConverter provides the root converter for the Discovery Engine OMAS beans. These beans are defined in the Open Discovery Framework (ODF) and extend the Open Connector Framework (OCF) beans. This root converter covers the OCF ElementHeader attributes: type (ElementType), guid, url and the classifications. It leaves extendedProperties to the sub classes The root converter has two constructors. Once constructor is for an object that is built just from an entity (eg Discovery Engine Properties). The other is for an object built from a combination of connected entities. In this second case, the root entity and possibly a relevant relationship is passed on the constructor.
    • Constructor Detail

      • ElementHeaderConverter

        public ElementHeaderConverter​(EntityDetail entity,
                                      Relationship relationship,
                                      OMRSRepositoryHelper repositoryHelper,
                                      String serviceName,
                                      String serverName)
        Constructor captures the initial content with relationship
        Parameters:
        entity - properties to convert
        relationship - properties to convert
        repositoryHelper - helper object to parse entity/relationship
        serviceName - name of this component
        serverName - called server
    • Method Detail

      • setTypeName

        protected void setTypeName()
        Extract the type name from the entity (if not null).
      • updateBean

        public void updateBean​(ElementHeader bean)
        Extract the properties from the entity.
        Parameters:
        bean - output bean