//------------------------------------------------------------------------------- // 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 Generic_ProcessorStepRW extends Generic_ObjectStepRW { public step.core.StepCoreObject coreObject() { return new Generic_Processor(); } public String entityName() { return Generic_Processor.EntityName(); } public String getNetwork(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 2); return (String) convertedStepValue(repo, stepVal); } public Processors_Type getProcessorType(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 3); return Processors_Type.fromString((String) convertedStepValue(repo, stepVal)); } public Migrations_Type getMigrationType(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 4); return Migrations_Type.fromString((String) convertedStepValue(repo, stepVal)); } public void initializeCoreObject(StepCoreRepository repo, step.core.StepCoreObject coreObj, StepGenericInstance si) throws Exception { super.initializeCoreObject(repo, coreObj, si); Generic_Processor obj = (Generic_Processor) coreObj; obj.setNetwork(getNetwork(repo, (StepInternalRepresentation) si)); obj.setProcessorType(getProcessorType(repo, (StepInternalRepresentation) si)); obj.setMigrationType(getMigrationType(repo, (StepInternalRepresentation) si)); } public StepGenericInstance genericInstance(StepCoreRepository crepo, step.core.StepCoreObject coreObj) throws Exception { StepInternalRepresentation si = (StepInternalRepresentation) super.genericInstance(crepo, coreObj); Generic_Processor obj = (Generic_Processor) coreObj; si.add(stepValueOf(crepo, obj.getNetwork())); si.add(stepValueOf(crepo, obj.getProcessorType())); si.add(stepValueOf(crepo, obj.getMigrationType())); return si; } }