Package gov.niem.tools.api.db.base
Interface BaseCmfEntity<T>
public interface BaseCmfEntity<T>
Interface for a model object that can be represented as a CMF object.
-
Method Summary
Modifier and TypeMethodDescriptionorg.mitre.niem.cmf.CMFObjectaddToCmfModel(org.mitre.niem.cmf.Model cmfModel, boolean addDependencies, AddModelReason addModelReason, Test test) Add self to the given CMF model if not already there.toCmf()
-
Method Details
-
toCmf
- Throws:
org.mitre.niem.cmf.CMFException
-
addToCmfModel
org.mitre.niem.cmf.CMFObject addToCmfModel(org.mitre.niem.cmf.Model cmfModel, boolean addDependencies, AddModelReason addModelReason, Test test) throws org.mitre.niem.cmf.CMFException, EntityNotUniqueException Add self to the given CMF model if not already there.- Parameters:
cmfModel- The CMF model.addDependencies- True to also add dependencies if not already in the CMF model (namespace, type, group); false (default) to just add this property.addModelReason- Indicates the reason why a component is being added to the model, either directly due to a task like migration or transformation, or indirectly as a required dependency.test- If present, log info to given test object.- Throws:
org.mitre.niem.cmf.CMFExceptionEntityNotUniqueException
-