//------------------------------------------------------------------------------- // 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 PortMappingType_Choice_UnionStepRW extends step.core.StepCoreObjectReaderWriter { public step.core.StepCoreObject coreObject() { return new PortMappingType_Choice_Union(); } public String entityName() { return PortMappingType_Choice_Union.EntityName(); } public Pseudo_Partition_Choice_Type getPseudoPartitionChoice(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 0); return (Pseudo_Partition_Choice_Type) convertedStepValue(repo, stepVal); } public Standard_Partition_Choice_Type getStandardPartitionChoice(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 1); return (Standard_Partition_Choice_Type) convertedStepValue(repo, stepVal); } public void initializeCoreObject(StepCoreRepository repo, step.core.StepCoreObject coreObj, StepGenericInstance si) throws Exception { super.initializeCoreObject(repo, coreObj, si); PortMappingType_Choice_Union obj = (PortMappingType_Choice_Union) coreObj; obj.setPseudoPartitionChoice(getPseudoPartitionChoice(repo, (StepInternalRepresentation) si)); obj.setStandardPartitionChoice(getStandardPartitionChoice(repo, (StepInternalRepresentation) si)); } public StepGenericInstance genericInstance(StepCoreRepository crepo, step.core.StepCoreObject coreObj) throws Exception { StepInternalRepresentation si = (StepInternalRepresentation) super.genericInstance(crepo, coreObj); PortMappingType_Choice_Union obj = (PortMappingType_Choice_Union) coreObj; si.add(stepValueOf(crepo, obj.getPseudoPartitionChoice())); si.add(stepValueOf(crepo, obj.getStandardPartitionChoice())); return si; } }