public abstract class ExtensionHookDMW extends ContainedElement implements DmcDefinitionIF, DmcNamedObjectIF
\n However, you might also want that additional information to show up in the documentation\n produced as part of the base DSL. That's where the ExtensionHook mechanism comes into play;\n although you can use this for your own purposes to allow others to extend the\n content of your generated artifacts - there's nothing dark-matter specific about \n the mechanism.\n
\n When defining your Sections, you may indicate that they contain ExtensionHooks. This\n will result in the generation of an ExtensionHook interface for the template definition module.\n Other designers who have extended your DSL then create a class that implements the ExtensionHook\n interface and have it dynamically loaded when the artifact generator is invoked (this is usually\n done via commandline arguments that are passed to the generated TemplateLoader). It's up to the\n designer of the base DSL to provide these mechanisms.\n
\n When formatting the artifact, the base DSL designer will call the method on a Section\n (in the appropriate sequence) to have the TemplateLoader call any registered classes that\n implement the ExtensionHook interface.
Generated from the dmtdl schema at version unknown
This code was auto-generated by the dmggenerator utility and shouldn't be alterred manually! Generated from: org.dmd.dmg.generators.BaseDMWGenerator.dumpWrapper(BaseDMWGenerator.java:488)
core| Modifier | Constructor and Description |
|---|---|
|
ExtensionHookDMW() |
|
ExtensionHookDMW(DmcTypeModifierMV mods) |
|
ExtensionHookDMW(ExtensionHookDMO obj) |
protected |
ExtensionHookDMW(ExtensionHookDMO obj,
ClassDefinition cd) |
| Modifier and Type | Method and Description |
|---|---|
ExtensionHook |
cloneIt() |
boolean |
equals(Object obj)
This method should check the type of the obj param and compare the name
of this object with the one passed as argument.
|
ExtensionHookDMO |
getDMO() |
ExtensionHook |
getModificationRecorder() |
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.
|
String |
getNameOfModuleWhereThisCameFrom()
This method indicates the name of the module from which this definition was loaded.
|
DefinitionName |
getObjectName() |
DmcAttribute<?> |
getObjectNameAttribute() |
String |
getTargetObjectClass() |
Section |
getUsesSection() |
int |
hashCode() |
void |
remName()
Removes the name attribute value.
|
void |
remTargetObjectClass()
Removes the targetObjectClass attribute value.
|
void |
remUsesSection()
Removes the usesSection attribute value.
|
void |
setName(DefinitionName value)
Sets name to the specified value.
|
void |
setName(Object value)
Sets name to the specified value.
|
void |
setTargetObjectClass(Object value)
Sets targetObjectClass to the specified value.
|
void |
setTargetObjectClass(String value)
Sets targetObjectClass to the specified value.
|
void |
setUsesSection(Object value)
Sets the usesSection to the specified value.
|
void |
setUsesSection(Section value)
Sets the usesSection to the specified value.
|
initializeaddDescription, addDescription, delDescription, delDescription, descriptionContains, getDefinedInTdlModule, getDescriptionCopy, getDescriptionHasValue, getDescriptionIsEmpty, getDescriptionIterable, getDescriptionSize, getDotName, remDefinedInTdlModule, remDescription, remDotName, setDefinedInTdlModule, setDefinedInTdlModule, setDotName, setDotNameequals, getFullDotNameaddComment, addExample, addNvp, addOptimize, addQuestion, addSkip, addTags, getComment, getCommentSize, getDefinedIn, getDescription, getDescriptionWithNewlines, getDmoFromModule, getExample, getExampleSize, getFile, getHint, getLineNumber, getNvp, getNvpSize, getObsolete, getOptimize, getOptimizeSize, getQuestion, getQuestionSize, getRelationship, getSearchable, getSkip, getSkipSize, getSortName, getTags, getTagsSize, getVersion, getWhy, setDefinedIn, setDmcObject, setDmoFromModule, setFile, setHint, setLineNumber, setObsolete, setRelationship, setSearchable, setSortName, setVersion, setWhyaddAux, applyModifier, getBackRefs, getConstructionClass, getConstructionClassInfo, getConstructionClassName, getDmcObject, getObjectClass, getReferringObjects, getReferringObjectsViaAttribute, hasAux, isReferenced, referenceCount, removeAux, resolveReferences, resolveReferences, serializeIt, toJSON, toOIF, toOIF, toPersistentOIF, toString, youAreDeletedgetDeleted, getModifier, setDeleted, setModifierclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDefinedIn, getDotName, toOIFpublic ExtensionHookDMW()
public ExtensionHookDMW(DmcTypeModifierMV mods)
public ExtensionHookDMW(ExtensionHookDMO obj)
protected ExtensionHookDMW(ExtensionHookDMO obj, ClassDefinition cd)
public ExtensionHook getModificationRecorder()
getModificationRecorder in class ContainedElementDMWpublic ExtensionHook cloneIt()
public ExtensionHookDMO getDMO()
getDMO in class ContainedElementDMWpublic DefinitionName getObjectName()
getObjectName in interface DmcNamedObjectIFgetObjectName in class ContainedElementDMWpublic int hashCode()
hashCode in class ContainedElementDMWpublic DmcAttribute<?> getObjectNameAttribute()
getObjectNameAttribute in interface DmcNamedObjectIFgetObjectNameAttribute in class ContainedElementDMWpublic boolean equals(Object obj)
DmcNamedObjectIFequals in interface DmcNamedObjectIFequals in class ContainedElementDMWobj - The comparison object.public DefinitionName getName()
DSDefinitionDMWgetName in interface DmcDefinitionIFgetName in class ContainedElementDMWpublic void setName(Object value) throws DmcValueException
setName in class ContainedElementDMWvalue - A value compatible with DmcTypeDefinitionNameDmcValueException - if the value is incorrectpublic void setName(DefinitionName value)
setName in class ContainedElementDMWvalue - DefinitionNamepublic void remName()
remName in class ContainedElementDMWpublic String getTargetObjectClass()
public void setTargetObjectClass(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringDmcValueExceptionpublic void setTargetObjectClass(String value)
value - Stringpublic void remTargetObjectClass()
public Section getUsesSection()
public void setUsesSection(Section value)
value - A value compatible with SectionREFpublic void setUsesSection(Object value) throws DmcValueException
value - A value compatible with SectionREFDmcValueException - is the value is incorrectpublic void remUsesSection()
public String getNameOfModuleWhereThisCameFrom()
getNameOfModuleWhereThisCameFrom in class DSDefinitionCopyright © 2023. All rights reserved.