public class ComplexTypeDefinitionDMW extends DmsDefinition implements DmcDefinitionIF
\n An example definition is the RuleParam:\n
\n ComplexTypeDefinition\n name RuleParam\n fieldSeparator :\n field String importStatement The import for the type of parameter\n field String genericArgs The generic arguments associated with this parameter\n field String name The name of the parameter\n field String description A description of the parameter\n description The RuleParam type is used to succintly describe a parameter\n to be supplied to a rule when it is executed.\n\n In this case, the type has four fields, all of String type. An example of the String\n format of the field might be:
org.dmc.DmcObject::obj:The object to be validatedIn this\n case, the generic args field isn't available and will be the empty string. When a field\n seperator is specified, all fields are, more or less optional, but the underlying type\n must be able to handle the empty string as a valid value. This wouldn't work with Integer.\n
\n If no field separator is specified, the separator is assumed to be whitespace and additional\n whitespace is consumed during the parsing.
metanamecore| Modifier | Constructor and Description |
|---|---|
protected |
ComplexTypeDefinitionDMW() |
protected |
ComplexTypeDefinitionDMW(ClassDefinition cd) |
protected |
ComplexTypeDefinitionDMW(DmcObject obj) |
protected |
ComplexTypeDefinitionDMW(DmcObject obj,
ClassDefinition cd) |
protected |
ComplexTypeDefinitionDMW(String mn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDescription(Object value)
Adds another description value.
|
void |
addField(Object value)
Adds another field value.
|
void |
addOptionalPart(Object value)
Adds another optionalPart value.
|
void |
addRequiredPart(Object value)
Adds another requiredPart value.
|
Iterator<String> |
getDescription()
The description attribute is used to provide descriptive\n documentation
for schema related definitions.
|
int |
getDescriptionSize() |
Iterator<String> |
getDescriptionWithNewlines() |
ComplexTypeDefinitionDMO |
getDMO() |
String |
getExtendedClass()
The extendedClass indicates the fully qualified name of the class\n that
is derived from the generated ComplexType to provide additional behaviour.
|
Iterator<Field> |
getField()
The field indicates a type and name for a field in a ComplexType.
|
String |
getFieldSeparator()
The fieldSeparator is used to indicate the separation character used\n
when a ComplexType is represented as a String.
|
int |
getFieldSize() |
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() |
Iterator<Part> |
getOptionalPart()
Indicates an optional part of a complex type definition.
|
int |
getOptionalPartSize() |
Iterator<Part> |
getRequiredPart()
Indicates a required part of a complex type definition.
|
int |
getRequiredPartSize() |
void |
setDmcObject(DmcObject obj)
Sets the core object.
|
void |
setExtendedClass(Object value)
Sets extendedClass to the specified value.
|
void |
setFieldSeparator(Object value)
Sets fieldSeparator to the specified value.
|
void |
setName(Object value)
Sets name to the specified value.
|
getDmcObjectaddRelatedToConcept, getRelatedToConcept, getRelatedToConceptSizeequals, getFullDotName, getNameOfModuleWhereThisCameFromaddComment, addExample, addNvp, addOptimize, addQuestion, addSkip, addTags, getComment, getCommentSize, getDefinedIn, 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 ComplexTypeDefinitionDMW()
protected ComplexTypeDefinitionDMW(DmcObject obj)
protected ComplexTypeDefinitionDMW(DmcObject obj, ClassDefinition cd)
protected ComplexTypeDefinitionDMW(ClassDefinition cd)
protected ComplexTypeDefinitionDMW(String mn) throws DmcValueException
DmcValueExceptionpublic void setDmcObject(DmcObject obj)
DmcContainersetDmcObject in interface DmcContainerIFsetDmcObject in class DmsDefinitionobj - The core object.public ComplexTypeDefinitionDMO 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 Iterator<Field> getField()
public void addField(Object value) throws DmcValueException
value - A value compatible with DmcTypeFieldMVDmcValueException - if the value is incorrectpublic int getFieldSize()
public Iterator<Part> getRequiredPart()
public void addRequiredPart(Object value) throws DmcValueException
value - A value compatible with DmcTypePartMVDmcValueException - if the value is incorrectpublic int getRequiredPartSize()
public Iterator<Part> getOptionalPart()
public void addOptionalPart(Object value) throws DmcValueException
value - A value compatible with DmcTypePartMVDmcValueException - if the value is incorrectpublic int getOptionalPartSize()
public String getFieldSeparator()
public void setFieldSeparator(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringSVDmcValueException - if the value is incorrectpublic String getExtendedClass()
public void setExtendedClass(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringSVDmcValueException - if the value is incorrectpublic Iterator<String> getDescription()
getDescription in class DSDefinitionDMWpublic Iterator<String> getDescriptionWithNewlines()
getDescriptionWithNewlines in class DSDefinitionDMWpublic void addDescription(Object value) throws DmcValueException
addDescription in class DSDefinitionDMWvalue - A value compatible with DmcTypeStringMVDmcValueException - if the value is incorrectpublic int getDescriptionSize()
getDescriptionSize in class DSDefinitionDMWpublic DefinitionName getObjectName()
getObjectName in interface DmcNamedObjectIFgetObjectName in class DmsDefinitionpublic DmcAttribute<?> getObjectNameAttribute()
getObjectNameAttribute in interface DmcNamedObjectIFgetObjectNameAttribute in class DmsDefinitionDMWCopyright © 2023. All rights reserved.