//------------------------------------------------------------------------------- // 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 Parameter_UnionStepRW extends step.core.StepCoreObjectReaderWriter { public step.core.StepCoreObject coreObject() { return new Parameter_Union(); } public String entityName() { return Parameter_Union.EntityName(); } public Boolean_Parameter_Type getBooleanParameter(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 0); return (Boolean_Parameter_Type) convertedStepValue(repo, stepVal); } public Integer_Parameter_Type getIntegerParameter(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 1); return (Integer_Parameter_Type) convertedStepValue(repo, stepVal); } public Double_Parameter_Type getDoubleParameter(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 2); return (Double_Parameter_Type) convertedStepValue(repo, stepVal); } public String_Parameter_Type getStringParameter(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 3); return (String_Parameter_Type) convertedStepValue(repo, stepVal); } public void initializeCoreObject(StepCoreRepository repo, step.core.StepCoreObject coreObj, StepGenericInstance si) throws Exception { super.initializeCoreObject(repo, coreObj, si); Parameter_Union obj = (Parameter_Union) coreObj; obj.setBooleanParameter(getBooleanParameter(repo, (StepInternalRepresentation) si)); obj.setIntegerParameter(getIntegerParameter(repo, (StepInternalRepresentation) si)); obj.setDoubleParameter(getDoubleParameter(repo, (StepInternalRepresentation) si)); obj.setStringParameter(getStringParameter(repo, (StepInternalRepresentation) si)); } public StepGenericInstance genericInstance(StepCoreRepository crepo, step.core.StepCoreObject coreObj) throws Exception { StepInternalRepresentation si = (StepInternalRepresentation) super.genericInstance(crepo, coreObj); Parameter_Union obj = (Parameter_Union) coreObj; si.add(stepValueOf(crepo, obj.getBooleanParameter())); si.add(stepValueOf(crepo, obj.getIntegerParameter())); si.add(stepValueOf(crepo, obj.getDoubleParameter())); si.add(stepValueOf(crepo, obj.getStringParameter())); return si; } }