public class DesignModelArchiveBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
writeToFile |
| Modifier | Constructor and Description |
|---|---|
|
DesignModelArchiveBuilder()
Default constructor
|
protected |
DesignModelArchiveBuilder(String archiveGUID,
String archiveName,
String archiveDescription,
OpenMetadataArchiveType archiveType,
String archiveRootName,
String originatorName,
String originatorLicense,
Date creationDate,
long versionNumber,
String versionName)
Typical constructor passes parameters used to build the open metadata archive's property header.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttributeToBead(String beadId,
String attributeId,
int position,
int minCardinality,
int maxCardinality,
boolean uniqueValues,
boolean orderedValues) |
protected String |
addCategory(String glossaryId,
String qualifiedName,
String displayName,
String description,
String subjectArea)
Add a glossary category to the archive and connect it to glossary.
|
protected void |
addCategoryHierarchy(String childCategoryName,
Set<String> parentNames)
Add Category hierarchy relationship
|
protected void |
addCategoryToCategory(String parentCategoryId,
String childCategoryId)
Link two categories together as part of the parent child hierarchy.
|
protected String |
addConceptBead(String modelId,
List<String> groupIds,
String qualifiedName,
String displayName,
String technicalName,
String description,
String versionNumber,
String author)
Create an element that describes a concept bead.
|
protected String |
addConceptBeadAttribute(String modelId,
List<String> groupIds,
String qualifiedName,
String displayName,
String technicalName,
String description,
String versionNumber,
String author)
Create a concept attribute.
|
protected String |
addConceptBeadLink(String modelId,
List<String> groupIds,
String qualifiedName,
String displayName,
String technicalName,
String description,
String versionNumber,
String author)
Create a concept bead link.
|
protected String |
addConceptModelElement(String typeName,
String modelId,
List<String> groupIds,
String qualifiedName,
String displayName,
String technicalName,
String description,
String versionNumber,
String author)
Create an element of a concept model.
|
protected String |
addDesignModel(String qualifiedName,
String displayName,
String technicalName,
String description,
String versionNumber,
String author)
Create an element that represents a design model.
|
protected String |
addDesignModelGroup(String modelId,
String parentGroupId,
String qualifiedName,
String displayName,
String technicalName,
String description,
String versionNumber,
String author)
Create an element for a model group and link it to a model and any parent model group.
|
protected String |
addGlossary(String qualifiedName,
String displayName,
String description,
String language,
String usage,
String externalLink,
String scope)
Create a glossary entity.
|
protected void |
addHasARelationship(String conceptQName,
String propertyQName) |
protected void |
addISARelationship(String specialTermQName,
String generalizedTermQName)
Add an isa relationship
|
protected void |
addLinkToBead(String beadId,
String linkId,
String attributeName,
ConceptModelDecoration decoration,
int position,
int minCardinality,
int maxCardinality,
boolean uniqueValues,
boolean orderedValues) |
protected void |
addMoreInformationLink(String describedElementId,
String describerElementId)
Create a navigation link from one referenceable to another to show they provide more information.
|
protected void |
addRelatedTermRelationship(String conceptQName,
String propertyQName) |
protected String |
addTerm(String glossaryId,
List<String> categoryIds,
String qualifiedName,
String displayName,
String description)
Add a term and link it to the glossary and an arbitrary number of categories.
|
protected String |
addTerm(String glossaryId,
List<String> categoryIds,
String qualifiedName,
String displayName,
String description,
String examples,
boolean isSpineObject,
boolean isSpineAttribute,
boolean categoriesAsNames)
Add a term and link it to the glossary and an arbitrary number of categories.
|
protected OpenMetadataArchive |
getOpenMetadataArchive()
Returns the open metadata type archive containing all of the content loaded by the subclass.
|
protected void |
initialize(String archiveGUID,
String archiveName,
String archiveDescription,
OpenMetadataArchiveType archiveType,
String archiveRootName,
String originatorName,
String originatorLicense,
Date creationDate,
long versionNumber,
String versionName)
Typical constructor passes parameters used to build the open metadata archive's property header.
|
protected void |
linkTermToReferenceable(String termId,
String referenceableId)
Create a semantic assignment between a term and a Referenceable - for example a model element.
|
protected void |
logBadArchiveContent(String methodName)
Throws an exception if there is a problem building the archive.
|
protected DesignModelArchiveBuilder(String archiveGUID, String archiveName, String archiveDescription, OpenMetadataArchiveType archiveType, String archiveRootName, String originatorName, String originatorLicense, Date creationDate, long versionNumber, String versionName)
archiveGUID - unique identifier for this open metadata archive.archiveName - name of the open metadata archive.archiveDescription - description of the open metadata archive.archiveType - enum describing the type of archive this is.archiveRootName - non-spaced root name of the open metadata archive elements.originatorName - name of the originator (person or organization) of the archive.originatorLicense - license for the content.creationDate - data that this archive was created.versionNumber - version number of the archive.versionName - version name for the archive.public DesignModelArchiveBuilder()
protected void initialize(String archiveGUID, String archiveName, String archiveDescription, OpenMetadataArchiveType archiveType, String archiveRootName, String originatorName, String originatorLicense, Date creationDate, long versionNumber, String versionName)
archiveGUID - unique identifier for this open metadata archive.archiveName - name of the open metadata archive.archiveDescription - description of the open metadata archive.archiveType - enum describing the type of archive this is.archiveRootName - non-spaced root name of the open metadata archive elements.originatorName - name of the originator (person or organization) of the archive.originatorLicense - license for the content.creationDate - data that this archive was created.versionNumber - version number of the archive.versionName - version name for the archive.protected String addGlossary(String qualifiedName, String displayName, String description, String language, String usage, String externalLink, String scope)
qualifiedName - unique name for the glossarydisplayName - display name for the glossarydescription - description about the glossarylanguage - language that the glossary is written inusage - how the glossary should be usedexternalLink - link to materialscope - scope of the content.protected String addCategory(String glossaryId, String qualifiedName, String displayName, String description, String subjectArea)
glossaryId - identifier of the glossary.qualifiedName - unique name for the category.displayName - display name for the category.description - description of the category.subjectArea - name of the subject area if this category contains terms for the subject area.protected String addTerm(String glossaryId, List<String> categoryIds, String qualifiedName, String displayName, String description)
glossaryId - unique identifier of the glossarycategoryIds - unique identifiers of the categoriesqualifiedName - unique name of the termdisplayName - display name of the termdescription - description of the termprotected String addTerm(String glossaryId, List<String> categoryIds, String qualifiedName, String displayName, String description, String examples, boolean isSpineObject, boolean isSpineAttribute, boolean categoriesAsNames)
glossaryId - unique identifier of the glossarycategoryIds - unique identifiers of the categoriesqualifiedName - unique name of the termdisplayName - display name of the termdescription - description of the termexamples - examples of the termisSpineObject - term is a spine objectisSpineAttribute - term is a spine attributecategoriesAsNames - when true the categories are specified as qualified names, otherwise they are guids.protected void addCategoryToCategory(String parentCategoryId, String childCategoryId)
parentCategoryId - unique identifier for the parent categorychildCategoryId - unique identifier for the child categoryprotected void addMoreInformationLink(String describedElementId, String describerElementId)
describedElementId - unique identifier for the element that is referencing the other.describerElementId - unique identifier for the element being pointed to.protected void linkTermToReferenceable(String termId, String referenceableId)
termId - identifier of termreferenceableId - identifier of referenceableprotected String addDesignModel(String qualifiedName, String displayName, String technicalName, String description, String versionNumber, String author)
qualifiedName - unique name for the modeldisplayName - display nametechnicalName - non-spaced namedescription - descriptionversionNumber - version descriptionauthor - authorprotected String addDesignModelGroup(String modelId, String parentGroupId, String qualifiedName, String displayName, String technicalName, String description, String versionNumber, String author)
modelId - unique identifier of model (or null)parentGroupId - unique identifier of parent (or null)qualifiedName - unique name for the modeldisplayName - display nametechnicalName - non-spaced namedescription - descriptionversionNumber - version descriptionauthor - authorprotected String addConceptModelElement(String typeName, String modelId, List<String> groupIds, String qualifiedName, String displayName, String technicalName, String description, String versionNumber, String author)
typeName - unique name of the element's typemodelId - unique identifier of model (or null)groupIds - list of model groups to add this element toqualifiedName - unique name for the modeldisplayName - display nametechnicalName - non-spaced namedescription - descriptionversionNumber - version descriptionauthor - authorprotected String addConceptBead(String modelId, List<String> groupIds, String qualifiedName, String displayName, String technicalName, String description, String versionNumber, String author)
modelId - unique identifier of model (or null)groupIds - list of model groups to add this element toqualifiedName - unique name for the modeldisplayName - display nametechnicalName - non-spaced namedescription - descriptionversionNumber - version descriptionauthor - authorprotected String addConceptBeadLink(String modelId, List<String> groupIds, String qualifiedName, String displayName, String technicalName, String description, String versionNumber, String author)
modelId - unique identifier of model (or null)groupIds - list of model groups to add this element toqualifiedName - unique name for the modeldisplayName - display nametechnicalName - non-spaced namedescription - descriptionversionNumber - version descriptionauthor - authorprotected String addConceptBeadAttribute(String modelId, List<String> groupIds, String qualifiedName, String displayName, String technicalName, String description, String versionNumber, String author)
modelId - unique identifier for the model elementgroupIds - list of model groups to add this element toqualifiedName - unique name for the modeldisplayName - display nametechnicalName - non-spaced namedescription - descriptionversionNumber - version descriptionauthor - authorprotected void addAttributeToBead(String beadId, String attributeId, int position, int minCardinality, int maxCardinality, boolean uniqueValues, boolean orderedValues)
protected void addLinkToBead(String beadId, String linkId, String attributeName, ConceptModelDecoration decoration, int position, int minCardinality, int maxCardinality, boolean uniqueValues, boolean orderedValues)
protected void addISARelationship(String specialTermQName, String generalizedTermQName)
specialTermQName - qualified name of the specialized termgeneralizedTermQName - qualified name of the generalized termprotected void addRelatedTermRelationship(String conceptQName, String propertyQName)
protected void addCategoryHierarchy(String childCategoryName, Set<String> parentNames)
childCategoryName - name of the child categoryparentNames - set of the names of the parent categories qualified namesprotected OpenMetadataArchive getOpenMetadataArchive()
protected void logBadArchiveContent(String methodName)
methodName - calling methodCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.