public class ExtensionHookDMO extends ContainedElementDMO implements DmcNamedObjectIF, Serializable
\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 dmogenerator utility and shouldn't be alterred manually! Generated from: org.dmd.dms.util.DmoFormatter.dumpDMO(DmoFormatter.java:134)
| Modifier and Type | Field and Description |
|---|---|
static String |
constructionClassName |
__objectClass, attributes| Modifier | Constructor and Description |
|---|---|
|
ExtensionHookDMO() |
|
ExtensionHookDMO(DmcTypeModifierMV mods) |
protected |
ExtensionHookDMO(String oc) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
This method performs an attribute by attribute comparison of this
object with the specified object and returns true if they are equal.
|
ExtensionHookDMO |
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.
|
ExtensionHookDMO |
getNew()
Auto-generated derived classes override this to return an empty instance
of themselves.
|
DefinitionName |
getObjectName() |
DmcAttribute<?> |
getObjectNameAttribute() |
ExtensionHookDMO |
getSlice(DmcSliceInfo info)
Auto-generated derived classes override this to return an instance of themselves
with just the specified slice of attributes.
|
String |
getTargetObjectClass() |
SectionREF |
getUsesSection() |
SectionREF |
getUsesSectionREF() |
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 usesSection to the specified value.
|
void |
setUsesSection(SectionDMO value)
Sets usesSection to the specified value.
|
addDescription, addDescription, delDescription, delDescription, descriptionContains, getDefinedInTdlModule, getDefinedInTdlModuleREF, getDescription, getDescriptionSize, getDotName, getNthDescription, remDefinedInTdlModule, remDescription, remDotName, setDefinedInTdlModule, setDefinedInTdlModule, setDotName, setDotNameaddComment, addExample, addNvp, addOptimize, addQuestion, addSkip, addTags, getComment, getDefinedIn, getDescriptionWithNewlines, getDmoFromModule, getExample, getFile, getHint, getIdToAttrInfo, getLineNumber, getNvp, getObsolete, getOptimize, getQuestion, getRelationship, getSearchable, getSkip, getSortName, getStringToAttrInfo, getTags, getVersion, getWhy, setDefinedIn, setDmoFromModule, setFile, setHint, setLineNumber, setObsolete, setRelationship, setSearchable, setSortName, setVersion, setWhyadd, add, addAux, addAux, addBackref, allowsAttribute, applyModifier, clearReferenceInfo, cloneIt, del, del, delFromEmptyAttribute, deserializeIt, get, get, get, getAdditionalAttributes, getAttributeInfo, getAttributeInfo, getAttributeIterator, getAttributeNames, getAttributes, getAttributeValidators, getBackref, getBackRefs, getConstructionClass, getConstructionClassInfo, getConstructionClassName, getContainer, getDataType, getFullClassName, getLastValue, getModifier, getObjectClass, getObjectValidators, getReferringObjects, getReferringObjectsViaAttribute, getStagingObject, hasAux, hasValue, isModrec, isReferenced, isStaging, modrec, nth, nthNullFromEmptyAttribute, numberOfAttributes, populateSlice, referenceCount, rem, rem, removeAux, removeBackref, resolveReferences, resolveReferences, resolveReferences, resolveReferencesExceptClass, resolveReferencesExceptClass, serializeIt, set, set, setContainer, setLastValue, setModifier, shallowCopy, staging, supportsBackrefTracking, toCompactJSON, toCompactJSON, toJSON, toJSON, toJSON, toOIF, toOIF, toOIFNoPadding, toPersistentOIF, toPersistentOIF, toString, youAreDeletedpublic static final String constructionClassName
public ExtensionHookDMO()
protected ExtensionHookDMO(String oc)
public ExtensionHookDMO(DmcTypeModifierMV mods)
public ExtensionHookDMO getNew()
DmcObjectgetNew in class DSDefinitionDMOpublic ExtensionHookDMO getSlice(DmcSliceInfo info)
DmcObjectgetSlice in class DSDefinitionDMOinfo - the slice infopublic ExtensionHookDMO getModificationRecorder()
public DefinitionName getObjectName()
getObjectName in interface DmcNamedObjectIFgetObjectName in class ContainedElementDMOpublic DmcAttribute<?> getObjectNameAttribute()
getObjectNameAttribute in interface DmcNamedObjectIFgetObjectNameAttribute in class ContainedElementDMOpublic boolean equals(Object obj)
DmcObjectequals in interface DmcNamedObjectIFequals in class ContainedElementDMOobj - The comparison object.public int hashCode()
hashCode in class ContainedElementDMOpublic DefinitionName getName()
DSDefinitionDMOgetName in class ContainedElementDMOpublic void setName(DefinitionName value)
setName in class ContainedElementDMOvalue - DefinitionNamepublic void setName(Object value) throws DmcValueException
setName in class ContainedElementDMOvalue - A value compatible with DmcTypeDefinitionNameSVDmcValueException - if value is not correctpublic void remName()
remName in class ContainedElementDMOpublic SectionREF getUsesSection()
public SectionREF getUsesSectionREF()
public void setUsesSection(SectionDMO value)
value - SectionDMOpublic void setUsesSection(Object value) throws DmcValueException
value - A value compatible with DmcTypeSectionREFSVDmcValueException - if value is not correctpublic void remUsesSection()
public String getTargetObjectClass()
public void setTargetObjectClass(String value)
value - Stringpublic void setTargetObjectClass(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringSVDmcValueException - if value is not correctpublic void remTargetObjectClass()
Copyright © 2023. All rights reserved.