//------------------------------------------------------------------------------- // 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 Priority_Inversion_ItemStepRW extends step.core.StepCoreObjectReaderWriter { public step.core.StepCoreObject coreObject() { return new Priority_Inversion_Item(); } public String entityName() { return Priority_Inversion_Item.EntityName(); } public Integer getStartTime(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 0); return (Integer) convertedStepValue(repo, stepVal); } public Integer getEndTime(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 1); return (Integer) convertedStepValue(repo, stepVal); } public String getTaskName(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 2); return (String) convertedStepValue(repo, stepVal); } public String getResourceName(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 3); return (String) convertedStepValue(repo, stepVal); } public void initializeCoreObject(StepCoreRepository repo, step.core.StepCoreObject coreObj, StepGenericInstance si) throws Exception { super.initializeCoreObject(repo, coreObj, si); Priority_Inversion_Item obj = (Priority_Inversion_Item) coreObj; obj.setStartTime(getStartTime(repo, (StepInternalRepresentation) si)); obj.setEndTime(getEndTime(repo, (StepInternalRepresentation) si)); obj.setTaskName(getTaskName(repo, (StepInternalRepresentation) si)); obj.setResourceName(getResourceName(repo, (StepInternalRepresentation) si)); } public StepGenericInstance genericInstance(StepCoreRepository crepo, step.core.StepCoreObject coreObj) throws Exception { StepInternalRepresentation si = (StepInternalRepresentation) super.genericInstance(crepo, coreObj); Priority_Inversion_Item obj = (Priority_Inversion_Item) coreObj; si.add(stepValueOf(crepo, obj.getStartTime())); si.add(stepValueOf(crepo, obj.getEndTime())); si.add(stepValueOf(crepo, obj.getTaskName())); si.add(stepValueOf(crepo, obj.getResourceName())); return si; } }