public class DependencyDMW extends DmsDefinition implements DmcDefinitionIF
\n A Dependency can be referred to via a RunContext definition which directs the generation\n of code that can instantiate the required object instances. Satisfying a Dependency relies\n on there being a DependencyImplementation that indicates how to instantiate the object\n that implements the interface defined by the dependency.\n
\n If a Dependency specifies an instantiation, this is considered the default mechanism to\n fulfill the dependency. Other DependencyImplementations may be specified that override\n the specified instantiation in particular contexts.
metanamecore| Modifier | Constructor and Description |
|---|---|
protected |
DependencyDMW() |
protected |
DependencyDMW(ClassDefinition cd) |
protected |
DependencyDMW(DmcObject obj) |
protected |
DependencyDMW(DmcObject obj,
ClassDefinition cd) |
protected |
DependencyDMW(String mn) |
| Modifier and Type | Method and Description |
|---|---|
DmcAttribute<?> |
addDependencies(Dependency value)
Adds another dependencies value.
|
DependencyIterableDMW |
getDependencies()
A set of references to Dependencies.
|
int |
getDependenciesSize() |
DependencyDMO |
getDMO() |
String |
getInstantiation()
The instantiation attribute specifies how something is to be instantiated.
|
DefinitionName |
getName()
The name attribute is used to store a single string token that represents
a unique name\n for an object with the set of definitions of which it is a
part.
|
DefinitionName |
getObjectName() |
DmcAttribute<?> |
getObjectNameAttribute() |
String |
getUseInterface()
The fully qualified name of a Java interface or base class that specifies
a dependency.
|
void |
setDmcObject(DmcObject obj)
Sets the core object.
|
void |
setInstantiation(Object value)
Sets instantiation to the specified value.
|
void |
setName(Object value)
Sets name to the specified value.
|
void |
setUseInterface(Object value)
Sets useInterface to the specified value.
|
getDmcObjectaddRelatedToConcept, getRelatedToConcept, getRelatedToConceptSizeequals, getFullDotName, getNameOfModuleWhereThisCameFromaddComment, addDescription, addExample, addNvp, addOptimize, addQuestion, addSkip, addTags, getComment, getCommentSize, getDefinedIn, getDescription, getDescriptionSize, getDescriptionWithNewlines, getDmoFromModule, getDotName, getExample, getExampleSize, getFile, getHint, getLineNumber, getNvp, getNvpSize, getObsolete, getOptimize, getOptimizeSize, getQuestion, getQuestionSize, getRelationship, getSearchable, getSkip, getSkipSize, getSortName, getTags, getTagsSize, getVersion, getWhy, setDefinedIn, setDmoFromModule, setDotName, setFile, setHint, setLineNumber, setObsolete, setRelationship, setSearchable, setSortName, setVersion, setWhyaddAux, applyModifier, equals, getBackRefs, getConstructionClass, getConstructionClassInfo, getConstructionClassName, getObjectClass, getReferringObjects, getReferringObjectsViaAttribute, hasAux, isReferenced, referenceCount, removeAux, resolveReferences, resolveReferences, serializeIt, toJSON, toOIF, toOIF, toPersistentOIF, toString, youAreDeletedgetDeleted, getModifier, setDeleted, setModifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDefinedIn, getDotName, toOIFequalsprotected DependencyDMW()
protected DependencyDMW(DmcObject obj)
protected DependencyDMW(DmcObject obj, ClassDefinition cd)
protected DependencyDMW(ClassDefinition cd)
protected DependencyDMW(String mn) throws DmcValueException
DmcValueExceptionpublic void setDmcObject(DmcObject obj)
DmcContainersetDmcObject in interface DmcContainerIFsetDmcObject in class DmsDefinitionobj - The core object.public DependencyDMO getDMO()
getDMO in class DmsDefinitionDMWpublic DefinitionName getName()
getName in interface DmcDefinitionIFgetName in class DmsDefinitionDMWpublic void setName(Object value) throws DmcValueException
setName in class DmsDefinitionDMWvalue - A value compatible with DmcTypeDefinitionNameSVDmcValueException - if the value is incorrectpublic String getUseInterface()
public void setUseInterface(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringSVDmcValueException - if the value is incorrectpublic DependencyIterableDMW getDependencies()
public DmcAttribute<?> addDependencies(Dependency value) throws DmcValueException
value - A value compatible with DependencyDmcValueException - if the value is incorrectpublic int getDependenciesSize()
public String getInstantiation()
public void setInstantiation(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringSVDmcValueException - if the value is incorrectpublic DefinitionName getObjectName()
getObjectName in interface DmcNamedObjectIFgetObjectName in class DmsDefinitionpublic DmcAttribute<?> getObjectNameAttribute()
getObjectNameAttribute in interface DmcNamedObjectIFgetObjectNameAttribute in class DmsDefinitionDMWCopyright © 2023. All rights reserved.