public abstract class DSDefinitionDMW extends DmwNamedObjectWrapper
\n For instance, the Model View Whatever (MVW) framework, builds on the dark-matter schema \n concepts and introduces definitions that align with the Google Web Toolkit (GWT) conceptual model\n of the elements that comprise GWT applications and the various relationships that exist between\n them. The infrastructure needed to parse, manage and use those definitions to generate code\n and documentation are very similar to those used in the base dark-matter schema mechanisms, but\n they had to be hand built for the domain.\n
\n Other kinds of domain specific definitions started to emerge, Google Protocol Buffer (GPB),\n Simple Network Management Protocol (SNMP) etc. Having to build the infrastructure for these \n definitions each time was tedious and, in the spirit of the rest of dark-matter, lent themselves\n to being defined, generated and extended to make the process the easier.\n
\n Likewise, the code generation mechanisms originally employed have evolved and the more generic\n concept of artifact generation, based on definition sets, was introduced to allow for more rapid\n creation of utilities that generate code or documentation or other types of specifications.
core| Modifier | Constructor and Description |
|---|---|
protected |
DSDefinitionDMW() |
protected |
DSDefinitionDMW(DmcObject obj) |
protected |
DSDefinitionDMW(DmcObject obj,
ClassDefinition cd) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComment(Object value)
Adds another comment value.
|
void |
addDescription(Object value)
Adds another description value.
|
void |
addExample(Object value)
Adds another example value.
|
void |
addNvp(Object value)
Adds another nvp value.
|
void |
addOptimize(Object value)
Adds another optimize value.
|
void |
addQuestion(Object value)
Adds another question value.
|
void |
addSkip(Object value)
Adds another skip value.
|
void |
addTags(Object value)
Adds another tags value.
|
Iterator<String> |
getComment()
A comment or note associated with the definition of something.
|
int |
getCommentSize() |
SchemaDefinition |
getDefinedIn()
Indicates the schema in which a type, attribute or class is defined.
|
Iterator<String> |
getDescription()
The description attribute is used to provide descriptive\n documentation
for schema related definitions.
|
int |
getDescriptionSize() |
Iterator<String> |
getDescriptionWithNewlines() |
DSDefinitionDMO |
getDMO() |
String |
getDmoFromModule()
A bit of a hack to allow for creation of fully qualified dot names\n in
the DMODefinitionSet that's used for caching definitions in GWT.
|
DotName |
getDotName()
The dotName attribute is used to store dot separated names.
|
Iterator<Example> |
getExample()
The example attribute is used to provide additional\n examples of how some
defined thing is to be used.
|
int |
getExampleSize() |
String |
getFile()
Indicates the file from which a definition was loaded.
|
String |
getHint()
A short description of something that can be dumped as one line summary of
something.\n For longer explanations, use the description attribute.
|
Integer |
getLineNumber()
Indicates the line number of the file from which a definition was loaded.
|
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.
|
Iterator<NameValuePair> |
getNvp()
A set of additional name value pairs that can be associated with an
object.
|
int |
getNvpSize() |
DefinitionName |
getObjectName() |
DmcAttribute<?> |
getObjectNameAttribute() |
String |
getObsolete()
The version at which something became obsolete.
|
Iterator<String> |
getOptimize()
Depending on what you're modelling, you often come across\n places where
you can see an opportunity to optimize, streamline or improve something
e.g.
|
int |
getOptimizeSize() |
Iterator<String> |
getQuestion()
A question associated with the definition of something.
|
int |
getQuestionSize() |
String |
getRelationship()
The name of the relationship established via a reference to some other
named object.\n
|
Boolean |
getSearchable()
Indicates if something is searchable.
|
Iterator<String> |
getSkip()
A version from which something should be excluded (even though it is
included\n in later versions).
|
int |
getSkipSize() |
DotName |
getSortName()
The sortName is used in siutations where we need a name\n for storage of a
definition that is globally unique but can be sorted on the basis\n of the
definition name, not the module name.
|
Iterator<String> |
getTags()
A collection of tags that can facilitate searching for\n definitions.
|
int |
getTagsSize() |
String |
getVersion()
The version at which something was introduced.
|
Concinnity |
getWhy()
An indication of why something was added to a specification or a system.\n
This might be a reference to a requirement or feature concept.
|
void |
setDefinedIn(SchemaDefinition value)
Sets definedIn to the specified value.
|
void |
setDmcObject(DmcObject obj)
Sets the core object.
|
void |
setDmoFromModule(Object value)
Sets dmoFromModule to the specified value.
|
void |
setDotName(Object value)
Sets dotName to the specified value.
|
void |
setFile(Object value)
Sets file to the specified value.
|
void |
setHint(Object value)
Sets hint to the specified value.
|
void |
setLineNumber(Object value)
Sets lineNumber to the specified value.
|
void |
setName(Object value)
Sets name to the specified value.
|
void |
setObsolete(Object value)
Sets obsolete to the specified value.
|
void |
setRelationship(Object value)
Sets relationship to the specified value.
|
void |
setSearchable(Object value)
Sets searchable to the specified value.
|
void |
setSortName(Object value)
Sets sortName to the specified value.
|
void |
setVersion(Object value)
Sets version to the specified value.
|
void |
setWhy(Concinnity value)
Sets why to the specified value.
|
addAux, applyModifier, equals, getBackRefs, getConstructionClass, getConstructionClassInfo, getConstructionClassName, getDmcObject, 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, waitequalsprotected DSDefinitionDMW()
protected DSDefinitionDMW(DmcObject obj)
protected DSDefinitionDMW(DmcObject obj, ClassDefinition cd)
public void setDmcObject(DmcObject obj)
DmcContainersetDmcObject in interface DmcContainerIFsetDmcObject in class DmwWrapperobj - The core object.public DSDefinitionDMO getDMO()
public DefinitionName getName()
public void setName(Object value) throws DmcValueException
value - A value compatible with DmcTypeDefinitionNameSVDmcValueException - if the value is incorrectpublic Iterator<String> getDescription()
public void addDescription(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringMVDmcValueException - if the value is incorrectpublic int getDescriptionSize()
public Iterator<String> getComment()
public void addComment(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringMVDmcValueException - if the value is incorrectpublic int getCommentSize()
public Iterator<String> getQuestion()
public void addQuestion(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringMVDmcValueException - if the value is incorrectpublic int getQuestionSize()
public Iterator<Example> getExample()
public void addExample(Object value) throws DmcValueException
value - A value compatible with DmcTypeExampleMVDmcValueException - if the value is incorrectpublic int getExampleSize()
public String getHint()
public void setHint(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringSVDmcValueException - if the value is incorrectpublic DotName getSortName()
public void setSortName(Object value) throws DmcValueException
value - A value compatible with DmcTypeDotNameSVDmcValueException - if the value is incorrectpublic Iterator<String> getTags()
public void addTags(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringMVDmcValueException - if the value is incorrectpublic int getTagsSize()
public Iterator<NameValuePair> getNvp()
public void addNvp(Object value) throws DmcValueException
value - A value compatible with DmcTypeNameValuePairMVDmcValueException - if the value is incorrectpublic int getNvpSize()
public Iterator<String> getOptimize()
\n Any dark-matter definition can be decorated with optimize notes. These notes provide
public void addOptimize(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringMVDmcValueException - if the value is incorrectpublic int getOptimizeSize()
public String getVersion()
public void setVersion(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringSVDmcValueException - if the value is incorrectpublic Iterator<String> getSkip()
public void addSkip(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringMVDmcValueException - if the value is incorrectpublic int getSkipSize()
public String getObsolete()
public void setObsolete(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringSVDmcValueException - if the value is incorrectpublic Concinnity getWhy()
public void setWhy(Concinnity value) throws DmcValueException
value - A value compatible with ConcinnityDmcValueException - if the value is incorrectpublic Boolean getSearchable()
public void setSearchable(Object value) throws DmcValueException
value - A value compatible with DmcTypeBooleanSVDmcValueException - if the value is incorrectpublic String getRelationship()
\n This is a minor hack to allow creation of named relationships in graph databases. Eventually, relationships\n will become first class objects to which you can refer.
public void setRelationship(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringSVDmcValueException - if the value is incorrectpublic SchemaDefinition getDefinedIn()
public void setDefinedIn(SchemaDefinition value) throws DmcValueException
value - A value compatible with SchemaDefinitionDmcValueException - if the value is incorrectpublic String getFile()
public void setFile(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringSVDmcValueException - if the value is incorrectpublic Integer getLineNumber()
public void setLineNumber(Object value) throws DmcValueException
value - A value compatible with DmcTypeIntegerSVDmcValueException - if the value is incorrectpublic DotName getDotName()
public void setDotName(Object value) throws DmcValueException
value - A value compatible with DmcTypeDotNameSVDmcValueException - if the value is incorrectpublic String getDmoFromModule()
public void setDmoFromModule(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringSVDmcValueException - if the value is incorrectpublic DefinitionName getObjectName()
public DmcAttribute<?> getObjectNameAttribute()
Copyright © 2023. All rights reserved.