All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dmd.dmt.shared.generated.dmo.PrimitiveSVDMO Maven / Gradle / Ivy

Go to download

The dark-matter project provides mechanism to define concepts associated with Domain Specific Languages (DSLs) and generate code that can be extended with business logic that supports the given DSL purpose.

There is a newer version: 3.1.15
Show newest version
package org.dmd.dmt.shared.generated.dmo;

// Generated from: org.dmd.dms.util.GenUtility.formatImports(GenUtility.java:408)
import java.io.Serializable;                                  // Always required - (GenUtility.java:227)
import org.dmd.dmc.DmcAttribute;                              // Any attributes - (GenUtility.java:248)
import org.dmd.dmc.DmcObject;                                 // Structural class - (GenUtility.java:362)
import org.dmd.dmc.DmcSliceInfo;                              // Required for object slicing - (GenUtility.java:232)
import org.dmd.dmc.DmcValueException;                         // Any attributes - (GenUtility.java:249)
import org.dmd.dms.generated.dmo.MetaDMSAG;                   // Required for MODREC constructor - (GenUtility.java:231)
import org.dmd.dms.generated.types.DmcTypeModifierMV;         // Required for MODREC constructor - (GenUtility.java:230)
import org.dmd.dms.generated.types.DmcTypeStringSV;           // Required type - (GenUtility.java:339)

// Generated from: org.dmd.dms.util.DmoFormatter.getClassHeader(DmoFormatter.java:678)
/**
 * 

* Generated from the dmt schema at version 0.1 *

* 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) */ @SuppressWarnings("serial") public class PrimitiveSVDMO extends DmcObject implements Serializable { public final static String constructionClassName = "PrimitiveSV"; static { } public PrimitiveSVDMO() { super("PrimitiveSV"); } protected PrimitiveSVDMO(String oc) { super(oc); } @Override public PrimitiveSVDMO getNew(){ PrimitiveSVDMO rc = new PrimitiveSVDMO(); return(rc); } @Override public PrimitiveSVDMO getSlice(DmcSliceInfo info){ PrimitiveSVDMO rc = new PrimitiveSVDMO(); populateSlice(rc,info); return(rc); } public PrimitiveSVDMO(DmcTypeModifierMV mods) { super("PrimitiveSV"); modrec(true); setModifier(mods); } public PrimitiveSVDMO getModificationRecorder(){ PrimitiveSVDMO rc = new PrimitiveSVDMO(); rc.setModifier(new DmcTypeModifierMV(MetaDMSAG.__modify)); rc.modrec(true); return(rc); } // org.dmd.dms.util.GenUtility.formatSV(GenUtility.java:798) public String getSvString(){ DmcTypeStringSV attr = (DmcTypeStringSV) get(DmtDMSAG.__svString); if (attr == null) return(null); return(attr.getSV()); } /** * Sets svString to the specified value. * @param value String */ // org.dmd.dms.util.GenUtility.formatSV(GenUtility.java:838) public void setSvString(String value) { DmcAttribute attr = get(DmtDMSAG.__svString); if (attr == null) attr = new DmcTypeStringSV(DmtDMSAG.__svString); try{ attr.set(value); set(DmtDMSAG.__svString,attr); } catch(DmcValueException ex){ throw(new IllegalStateException("The type specific set() method shouldn't throw exceptions!",ex)); } } /** * Sets svString to the specified value. * @param value A value compatible with DmcTypeStringSV * @throws DmcValueException if value is not correct */ // org.dmd.dms.util.GenUtility.formatSV(GenUtility.java:892) public void setSvString(Object value) throws DmcValueException { DmcTypeStringSV attr = (DmcTypeStringSV) get(DmtDMSAG.__svString); if (attr == null) attr = new DmcTypeStringSV(DmtDMSAG.__svString); attr.set(value); set(DmtDMSAG.__svString,attr); } /** * Removes the svString attribute value. */ // org.dmd.dms.util.GenUtility.formatSV(GenUtility.java:912) public void remSvString(){ rem(DmtDMSAG.__svString); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy