//------------------------------------------------------------------------------- // 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 Framework_RequestStepRW extends step.core.StepCoreObjectReaderWriter { public step.core.StepCoreObject coreObject() { return new Framework_Request(); } public String entityName() { return Framework_Request.EntityName(); } public Framework_Statement_Type getStatement(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 0); return Framework_Statement_Type.fromString((String) convertedStepValue(repo, stepVal)); } public ArrayList getParam(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 1); return (ArrayList) convertedStepValue(repo, stepVal); } public String getTarget(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 2); return (String) convertedStepValue(repo, stepVal); } public void initializeCoreObject(StepCoreRepository repo, step.core.StepCoreObject coreObj, StepGenericInstance si) throws Exception { super.initializeCoreObject(repo, coreObj, si); Framework_Request obj = (Framework_Request) coreObj; obj.setStatement(getStatement(repo, (StepInternalRepresentation) si)); obj.setParam(getParam(repo, (StepInternalRepresentation) si)); obj.setTarget(getTarget(repo, (StepInternalRepresentation) si)); } public StepGenericInstance genericInstance(StepCoreRepository crepo, step.core.StepCoreObject coreObj) throws Exception { StepInternalRepresentation si = (StepInternalRepresentation) super.genericInstance(crepo, coreObj); Framework_Request obj = (Framework_Request) coreObj; si.add(stepValueOf(crepo, obj.getStatement())); si.add(stepValueOf(crepo, obj.getParam())); si.add(stepValueOf(crepo, obj.getTarget())); return si; } }