package org.dmd.dmt.server.generated.dmw;
// Generated from: org.dmd.util.codegen.ImportManager.getFormattedImports(ImportManager.java:82)
// Called from: org.dmd.dmg.generators.BaseDMWGeneratorNewest.dumpWrapper(BaseDMWGeneratorNewest.java:349)
import java.util.ArrayList; // To support getMVCopy() - (BaseDMWGeneratorNewest.java:999)
import java.util.Iterator; // Support copy of MV objects - (BaseDMWGeneratorNewest.java:2054)
import org.dmd.dmc.*; // If any attributes - (BaseDMWGeneratorNewest.java:905)
import org.dmd.dms.ClassDefinition; // Passing derived class def up the hierarchy - (BaseDMWGeneratorNewest.java:889)
import org.dmd.dms.generated.dmo.MetaDMSAG; // Required for MODREC constructor - (BaseDMWGeneratorNewest.java:894)
import org.dmd.dms.generated.types.DmcTypeModifierMV; // Required for MODREC constructor - (BaseDMWGeneratorNewest.java:893)
import org.dmd.dmt.server.generated.dmw.MenuElementTypeAndCommentIterableDMW; // For multi-valued MenuElementTypeAndComment - (BaseDMWGeneratorNewest.java:1919)
import org.dmd.dmt.shared.generated.dmo.ComplexTypeTestDMO; // Class not auxiliary or abstract - (BaseDMWGeneratorNewest.java:1070)
import org.dmd.dmt.shared.generated.dmo.DmtDMSAG; // Attribute mvComplex from the dmt schema - (BaseDMWGeneratorNewest.java:720)
import org.dmd.dmt.shared.generated.types.MenuElementTypeAndComment; // Primitive type - (BaseDMWGeneratorNewest.java:968)
import org.dmd.dmw.DmwWrapper; // Unnamed object wrapper - (BaseDMWGeneratorNewest.java:1053)
/**
* null
* <P>
* Generated from the dmt schema at version 0.1
* <P>
* This code was auto-generated by the dmggenerator utility and shouldn't be alterred manually!
* Generated from: org.dmd.dmg.generators.BaseDMWGeneratorNewest.dumpWrapper(BaseDMWGeneratorNewest.java:366)
*/
public class ComplexTypeTestDMW extends DmwWrapper {
// Generated from: org.dmd.dmg.generators.BaseDMWGeneratorNewest.dumpWrapper(BaseDMWGeneratorNewest.java:443)
public ComplexTypeTestDMW() {
super(new ComplexTypeTestDMO(), org.dmd.dmt.server.generated.DmtSchemaAG._ComplexTypeTest);
}
// Generated from: org.dmd.dmg.generators.BaseDMWGeneratorNewest.dumpWrapper(BaseDMWGeneratorNewest.java:449)
public ComplexTypeTestDMW(DmcTypeModifierMV mods) {
super(new ComplexTypeTestDMO(mods), org.dmd.dmt.server.generated.DmtSchemaAG._ComplexTypeTest);
}
// Generated from: org.dmd.dmg.generators.BaseDMWGeneratorNewest.dumpWrapper(BaseDMWGeneratorNewest.java:478)
public ComplexTypeTestDMW getModificationRecorder(){
ComplexTypeTestDMW rc = new ComplexTypeTestDMW(new DmcTypeModifierMV(MetaDMSAG.__modify));
return(rc);
}
// Generated from: org.dmd.dmg.generators.BaseDMWGeneratorNewest.dumpWrapper(BaseDMWGeneratorNewest.java:512)
public ComplexTypeTestDMW(ComplexTypeTestDMO obj) {
super(obj, org.dmd.dmt.server.generated.DmtSchemaAG._ComplexTypeTest);
}
public ComplexTypeTestDMW cloneIt() {
ComplexTypeTestDMW rc = new ComplexTypeTestDMW();
rc.setDmcObject(getDMO().cloneIt());
return(rc);
}
public ComplexTypeTestDMO getDMO() {
return((ComplexTypeTestDMO) core);
}
// Generated from: org.dmd.dmg.generators.BaseDMWGeneratorNewest.dumpWrapper(BaseDMWGeneratorNewest.java:527)
protected ComplexTypeTestDMW(ComplexTypeTestDMO obj, ClassDefinition cd) {
super(obj,cd);
}
/**
* @return The number of MenuElementTypeAndComment items.
*/
// org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatMV(BaseDMWGeneratorNewest.java:1489)
public int getMvComplexSize(){
return(((ComplexTypeTestDMO) core).getMvComplexSize());
}
/**
* @return true if there are no MenuElementTypeAndCommentDMO items.
*/
// org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatMV(BaseDMWGeneratorNewest.java:1497)
public boolean getMvComplexIsEmpty(){
if (((ComplexTypeTestDMO) core).getMvComplexSize() == 0)
return(true);
return(false);
}
/**
* @return true if there are any MenuElementTypeAndCommentDMO items.
*/
// org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatMV(BaseDMWGeneratorNewest.java:1507)
public boolean getMvComplexHasValue(){
if (((ComplexTypeTestDMO) core).getMvComplexSize() == 0)
return(false);
return(true);
}
/**
* @return An Iterator of MenuElementTypeAndComment objects.
*/
// org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatMV(BaseDMWGeneratorNewest.java:1923)
public MenuElementTypeAndCommentIterableDMW getMvComplexIterable(){
DmcAttribute<?> attr = core.get(DmtDMSAG.__mvComplex);
if (attr == null)
return(MenuElementTypeAndCommentIterableDMW.emptyList);
return(new MenuElementTypeAndCommentIterableDMW(((ComplexTypeTestDMO) core).getMvComplex()));
}
/**
* Adds another mvComplex value.
* @param value A value compatible with MenuElementTypeAndComment
*/
// org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatMV(BaseDMWGeneratorNewest.java:1949)
public void addMvComplex(Object value) throws DmcValueException {
((ComplexTypeTestDMO) core).addMvComplex(value);
}
/**
* Adds another mvComplex value.
* @param value A value compatible with MenuElementTypeAndComment
*/
// org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatMV(BaseDMWGeneratorNewest.java:1959)
public void addMvComplex(MenuElementTypeAndComment value){
((ComplexTypeTestDMO) core).addMvComplex(value);
}
/**
* Returns true if the collection contains the mvComplex value.
* @param value A value compatible with MenuElementTypeAndComment
*/
// org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatMV(BaseDMWGeneratorNewest.java:2016)
public boolean mvComplexContains(MenuElementTypeAndComment value){
return(((ComplexTypeTestDMO) core).mvComplexContains(value));
}
/**
* @return A COPY of the collection of MenuElementTypeAndComment objects.
*/
// org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatMV(BaseDMWGeneratorNewest.java:2058)
@SuppressWarnings("unchecked")
public ArrayList<MenuElementTypeAndComment> getMvComplexCopy(){
DmcAttribute<?> attr = core.get(DmtDMSAG.__mvComplex);
if (attr == null)
return(new ArrayList<MenuElementTypeAndComment>());
ArrayList<MenuElementTypeAndComment> rc = new ArrayList<MenuElementTypeAndComment>(attr.getMVSize());
Iterator<MenuElementTypeAndComment> it = (Iterator<MenuElementTypeAndComment>) attr.getMV();
while(it.hasNext()){
rc.add(it.next());
}
return(rc);
}
/**
* Deletes a mvComplex value.
* @param value The MenuElementTypeAndComment to be deleted from set of attribute values.
*/
// org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatMV(BaseDMWGeneratorNewest.java:2085)
public void delMvComplex(Object value) throws DmcValueException {
((ComplexTypeTestDMO) core).delMvComplex(value);
}
/**
* Deletes a mvComplex value.
* @param value The MenuElementTypeAndComment to be deleted from set of attribute values.
*/
// org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatMV(BaseDMWGeneratorNewest.java:2094)
public void delMvComplex(MenuElementTypeAndComment value){
((ComplexTypeTestDMO) core).delMvComplex(value);
}
/**
* Removes the mvComplex attribute value.
*/
// org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatMV(BaseDMWGeneratorNewest.java:2106)
public void remMvComplex(){
((ComplexTypeTestDMO) core).remMvComplex();
}
// org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatSV(BaseDMWGeneratorNewest.java:1292)
public MenuElementTypeAndComment getSvComplex(){
return(((ComplexTypeTestDMO) core).getSvComplex());
}
/**
* Sets svComplex to the specified value.
* @param value A value compatible with DmcTypeMenuElementTypeAndComment
*/
// org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatSV(BaseDMWGeneratorNewest.java:1402)
public void setSvComplex(Object value) throws DmcValueException {
((ComplexTypeTestDMO) core).setSvComplex(value);
}
/**
* Sets svComplex to the specified value.
* @param value MenuElementTypeAndComment
*/
// org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatSV(BaseDMWGeneratorNewest.java:1411)
public void setSvComplex(MenuElementTypeAndComment value){
((ComplexTypeTestDMO) core).setSvComplex(value);
}
/**
* Removes the svComplex attribute value.
*/
// org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatSV(BaseDMWGeneratorNewest.java:1437)
public void remSvComplex(){
((ComplexTypeTestDMO) core).remSvComplex();
}
}