Class RootBuilder
java.lang.Object
org.odpi.openmetadata.commonservices.ocf.metadatamanagement.builders.RootBuilder
- Direct Known Subclasses:
ReferenceableBuilder
RootBuilder provides the super class for builders.
Builders create Open Metadata Repository Services (OMRS) objects based on the
bean properties supplied in the constructor.
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<ElementClassification>
protected RepositoryErrorHandler
protected OMRSRepositoryHelper
protected String
protected String
-
Constructor Summary
ModifierConstructorDescriptionprotected
RootBuilder
(OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetEntityClassifications
(String methodName) Return a list of entity classifications that can be stored in the metadata repository.protected InstanceProperties
getInstanceProperties
(String methodName) Return the supplied bean properties in an InstanceProperties object.void
setClassifications
(List<ElementClassification> classifications) Set up the classifications associated with the entity.
-
Field Details
-
errorHandler
-
repositoryHelper
-
serviceName
-
serverName
-
classifications
-
-
Constructor Details
-
RootBuilder
Constructor.- Parameters:
repositoryHelper
- helper methodsserviceName
- name of this OMASserverName
- name of local server
-
-
Method Details
-
setClassifications
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
-
getInstanceProperties
protected InstanceProperties getInstanceProperties(String methodName) throws InvalidParameterException Return the supplied bean properties in an InstanceProperties object.- Parameters:
methodName
- name of the calling method- Returns:
- InstanceProperties object
- Throws:
InvalidParameterException
- there is a problem with the properties
-