public class DSDefinitionDMO extends DmcObject implements DmcNamedObjectIF, Serializable
\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.
__objectClass, attributes| Constructor and Description |
|---|
DSDefinitionDMO() |
DSDefinitionDMO(String oc) |
| Modifier and Type | Method and Description |
|---|---|
DmcAttribute<?> |
addComment(Object value)
Adds another comment value.
|
DmcAttribute<?> |
addDescription(Object value)
Adds another description value.
|
DmcAttribute<?> |
addExample(Object value)
Adds another example value.
|
DmcAttribute<?> |
addNvp(Object value)
Adds another nvp value.
|
DmcAttribute<?> |
addOptimize(Object value)
Adds another optimize value.
|
DmcAttribute<?> |
addQuestion(Object value)
Adds another question value.
|
DmcAttribute<?> |
addSkip(Object value)
Adds another skip value.
|
DmcAttribute<?> |
addTags(Object value)
Adds another tags value.
|
Iterator<String> |
getComment()
A comment or note associated with the definition of something.
|
SchemaDefinitionREF |
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.
|
Iterator<String> |
getDescriptionWithNewlines() |
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.
|
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.
|
Map<Integer,DmcAttributeInfo> |
getIdToAttrInfo() |
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.
|
DSDefinitionDMO |
getNew()
Auto-generated derived classes override this to return an empty instance
of themselves.
|
Iterator<NameValuePair> |
getNvp()
A set of additional name value pairs that can be associated with an
object.
|
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.
|
Iterator<String> |
getQuestion()
A question associated with the definition of something.
|
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).
|
DSDefinitionDMO |
getSlice(DmcSliceInfo info)
Auto-generated derived classes override this to return an instance of themselves
with just the specified slice of attributes.
|
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.
|
Map<String,DmcAttributeInfo> |
getStringToAttrInfo() |
Iterator<String> |
getTags()
A collection of tags that can facilitate searching for\n definitions.
|
String |
getVersion()
The version at which something was introduced.
|
ConcinnityREF |
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(Object value)
Sets definedIn to the specified value.
|
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(Object value)
Sets why to the specified value.
|
add, add, addAux, addAux, addBackref, allowsAttribute, applyModifier, clearReferenceInfo, cloneIt, del, del, delFromEmptyAttribute, deserializeIt, equals, 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, youAreDeletedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequalspublic DSDefinitionDMO()
public DSDefinitionDMO(String oc)
public Map<Integer,DmcAttributeInfo> getIdToAttrInfo()
public Map<String,DmcAttributeInfo> getStringToAttrInfo()
public DSDefinitionDMO getNew()
DmcObjectpublic DSDefinitionDMO getSlice(DmcSliceInfo info)
DmcObjectpublic DefinitionName getName()
public void setName(Object value) throws DmcValueException
value - A value compatible with DmcTypeDefinitionNameSVDmcValueException - if the value is incorrectpublic Iterator<String> getComment()
public DmcAttribute<?> addComment(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringMVDmcValueException - if the value is incorrectpublic SchemaDefinitionREF getDefinedIn()
public void setDefinedIn(Object value) throws DmcValueException
value - A value compatible with DmcTypeSchemaDefinitionREFSVDmcValueException - if the value is incorrectpublic Iterator<String> getDescription()
public DmcAttribute<?> addDescription(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringMVDmcValueException - 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 DotName getDotName()
public void setDotName(Object value) throws DmcValueException
value - A value compatible with DmcTypeDotNameSVDmcValueException - if the value is incorrectpublic Iterator<Example> getExample()
public DmcAttribute<?> addExample(Object value) throws DmcValueException
value - A value compatible with DmcTypeExampleMVDmcValueException - 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 String getHint()
public void setHint(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 Iterator<NameValuePair> getNvp()
public DmcAttribute<?> addNvp(Object value) throws DmcValueException
value - A value compatible with DmcTypeNameValuePairMVDmcValueException - if the value is incorrectpublic String getObsolete()
public void setObsolete(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringSVDmcValueException - if the value is incorrectpublic Iterator<String> getOptimize()
\n Any dark-matter definition can be decorated with optimize notes. These notes provide
public DmcAttribute<?> addOptimize(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringMVDmcValueException - if the value is incorrectpublic Iterator<String> getQuestion()
public DmcAttribute<?> addQuestion(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringMVDmcValueException - 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 Boolean getSearchable()
public void setSearchable(Object value) throws DmcValueException
value - A value compatible with DmcTypeBooleanSVDmcValueException - if the value is incorrectpublic Iterator<String> getSkip()
public DmcAttribute<?> addSkip(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringMVDmcValueException - 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 DmcAttribute<?> addTags(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringMVDmcValueException - if the value is incorrectpublic String getVersion()
public void setVersion(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringSVDmcValueException - if the value is incorrectpublic ConcinnityREF getWhy()
public void setWhy(Object value) throws DmcValueException
value - A value compatible with DmcTypeConcinnityREFSVDmcValueException - if the value is incorrectpublic DefinitionName getObjectName()
getObjectName in interface DmcNamedObjectIFpublic DmcAttribute<?> getObjectNameAttribute()
getObjectNameAttribute in interface DmcNamedObjectIFCopyright © 2023. All rights reserved.