org.dmd.dmp.shared.generated.types.DmcTypeDenotifyRequestREF Maven / Gradle / Ivy
Show all versions of dark-matter-data Show documentation
// ---------------------------------------------------------------------------
// dark-matter-data
// Copyright (c) 2010-2021 dark-matter-data committers
// ---------------------------------------------------------------------------
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published by the
// Free Software Foundation; either version 3 of the License, or (at your
// option) any later version.
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
// more details.
// You should have received a copy of the GNU Lesser General Public License along
// with this program; if not, see .
// ---------------------------------------------------------------------------
package org.dmd.dmp.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.dmp.shared.generated.dmo.DenotifyRequestDMO;
/**
* This is the generated DmcAttribute derivative for values of type DenotifyRequest
*
* Generated from the dmp 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 DmcTypeDenotifyRequestREF extends DmcAttribute implements Serializable {
public DmcTypeDenotifyRequestREF(){
}
public DmcTypeDenotifyRequestREF(DmcAttributeInfo ai){
super(ai);
}
protected DenotifyRequestDMO typeCheck(Object value) throws DmcValueException {
if (value instanceof DenotifyRequestDMO)
return((DenotifyRequestDMO)value);
throw(new DmcValueException("Object of class: " + value.getClass().getName() + " passed where object compatible with DenotifyRequestDMO expected."));
}
@Override
public void serializeValue(DmcOutputStreamIF dos, DenotifyRequestDMO value) throws Exception {
value.serializeIt(dos);
}
@Override
public DenotifyRequestDMO deserializeValue(DmcInputStreamIF dis) throws Exception {
DenotifyRequestDMO rc = (DenotifyRequestDMO)dis.getDMOInstance(dis);
rc.deserializeIt(dis);
return(rc);
}
@Override
public DenotifyRequestDMO cloneValue(DenotifyRequestDMO value){
return((DenotifyRequestDMO)value.cloneIt());
}
}