Class RootBuilder

  • Direct Known Subclasses:
    ReferenceableBuilder

    public class RootBuilder
    extends Object
    RootBuilder provides the super class for builders. Builders create Open Metadata Repository Services (OMRS) objects based on the bean properties supplied in the constructor.
    • Constructor Detail

      • RootBuilder

        protected RootBuilder​(OMRSRepositoryHelper repositoryHelper,
                              String serviceName,
                              String serverName)
        Constructor.
        Parameters:
        repositoryHelper - helper methods
        serviceName - name of this OMAS
        serverName - name of local server
    • Method Detail

      • setClassifications

        public void setClassifications​(List<ElementClassification> classifications)
        Set up the classifications associated with the entity.
        Parameters:
        classifications - list of classification objects
      • getEntityClassifications

        public List<Classification> getEntityClassifications​(String methodName)
                                                      throws InvalidParameterException
        Return a list of entity classifications that can be stored in the metadata repository.
        Parameters:
        methodName - calling method
        Returns:
        list of entity classification objects
        Throws:
        InvalidParameterException - the properties of the classification are flawed