//------------------------------------------------------------------------------- // This package was automatically generated from EXPRESS (ISO STEP 10303 part11) // by a java generator build with the meta CASE tool Platypus // (alain.plantec@univ-brest.fr) // // Please, be aware that any hand-made updating of this file can be lost!!. //------------------------------------------------------------------------------- package CheddarBridge; import java.util.*; import java.io.*; import step.core.*; class Scheduling_ResultStepRW extends step.core.StepCoreObjectReaderWriter { public step.core.StepCoreObject coreObject() { return new Scheduling_Result(); } public String entityName() { return Scheduling_Result.EntityName(); } public String getSchedulingMsg(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 0); return (String) convertedStepValue(repo, stepVal); } public Boolean getHasError(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 1); return (Boolean) convertedStepValue(repo, stepVal); } public String getErrorMsg(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 2); return (String) convertedStepValue(repo, stepVal); } public ArrayList getResult(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 3); return (ArrayList) convertedStepValue(repo, stepVal); } public void initializeCoreObject(StepCoreRepository repo, step.core.StepCoreObject coreObj, StepGenericInstance si) throws Exception { super.initializeCoreObject(repo, coreObj, si); Scheduling_Result obj = (Scheduling_Result) coreObj; obj.setSchedulingMsg(getSchedulingMsg(repo, (StepInternalRepresentation) si)); obj.setHasError(getHasError(repo, (StepInternalRepresentation) si)); obj.setErrorMsg(getErrorMsg(repo, (StepInternalRepresentation) si)); obj.setResult(getResult(repo, (StepInternalRepresentation) si)); } public StepGenericInstance genericInstance(StepCoreRepository crepo, step.core.StepCoreObject coreObj) throws Exception { StepInternalRepresentation si = (StepInternalRepresentation) super.genericInstance(crepo, coreObj); Scheduling_Result obj = (Scheduling_Result) coreObj; si.add(stepValueOf(crepo, obj.getSchedulingMsg())); si.add(stepValueOf(crepo, obj.getHasError())); si.add(stepValueOf(crepo, obj.getErrorMsg())); si.add(stepValueOf(crepo, obj.getResult())); return si; } }