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

org.dmd.dmt.shared.generated.types.DmcTypePrimitiveMVIDXREF 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.types;

import java.io.Serializable;
import org.dmd.dmc.DmcInputStreamIF;
import org.dmd.dmc.DmcOutputStreamIF;
import org.dmd.dmc.DmcAttribute;
import org.dmd.dmc.DmcAttributeInfo;
import org.dmd.dmc.DmcValueException;
import org.dmd.dmt.shared.generated.dmo.PrimitiveMVIDXDMO;

/**
 * This is the generated DmcAttribute derivative for values of type PrimitiveMVIDX
 * 

* 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.DmoTypeFormatter.dumpNormalREFType(DmoTypeFormatter.java:197) */ @SuppressWarnings("serial") abstract public class DmcTypePrimitiveMVIDXREF extends DmcAttribute implements Serializable { public DmcTypePrimitiveMVIDXREF(){ } public DmcTypePrimitiveMVIDXREF(DmcAttributeInfo ai){ super(ai); } protected PrimitiveMVIDXDMO typeCheck(Object value) throws DmcValueException { if (value instanceof PrimitiveMVIDXDMO) return((PrimitiveMVIDXDMO)value); throw(new DmcValueException("Object of class: " + value.getClass().getName() + " passed where object compatible with PrimitiveMVIDXDMO expected.")); } @Override public void serializeValue(DmcOutputStreamIF dos, PrimitiveMVIDXDMO value) throws Exception { value.serializeIt(dos); } @Override public PrimitiveMVIDXDMO deserializeValue(DmcInputStreamIF dis) throws Exception { PrimitiveMVIDXDMO rc = (PrimitiveMVIDXDMO)dis.getDMOInstance(dis); rc.deserializeIt(dis); return(rc); } @Override public PrimitiveMVIDXDMO cloneValue(PrimitiveMVIDXDMO value){ return((PrimitiveMVIDXDMO)value.cloneIt()); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy