//------------------------------------------------------------------------------- // 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 Error_ID_TypeStepRW extends ARINC_653_ObjectStepRW { public step.core.StepCoreObject coreObject() { return new Error_ID_Type(); } public String entityName() { return Error_ID_Type.EntityName(); } public String getErrorIdentifier(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 0); return (String) convertedStepValue(repo, stepVal); } public String getDescription(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 1); return (String) convertedStepValue(repo, stepVal); } public PartitionActionType getPartitionAction(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 2); return PartitionActionType.fromString((String) convertedStepValue(repo, stepVal)); } public ModuleActionType getModuleAction(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 3); return ModuleActionType.fromString((String) convertedStepValue(repo, stepVal)); } public void initializeCoreObject(StepCoreRepository repo, step.core.StepCoreObject coreObj, StepGenericInstance si) throws Exception { super.initializeCoreObject(repo, coreObj, si); Error_ID_Type obj = (Error_ID_Type) coreObj; obj.setErrorIdentifier(getErrorIdentifier(repo, (StepInternalRepresentation) si)); obj.setDescription(getDescription(repo, (StepInternalRepresentation) si)); obj.setPartitionAction(getPartitionAction(repo, (StepInternalRepresentation) si)); obj.setModuleAction(getModuleAction(repo, (StepInternalRepresentation) si)); } public StepGenericInstance genericInstance(StepCoreRepository crepo, step.core.StepCoreObject coreObj) throws Exception { StepInternalRepresentation si = (StepInternalRepresentation) super.genericInstance(crepo, coreObj); Error_ID_Type obj = (Error_ID_Type) coreObj; si.add(stepValueOf(crepo, obj.getErrorIdentifier())); si.add(stepValueOf(crepo, obj.getDescription())); si.add(stepValueOf(crepo, obj.getPartitionAction())); si.add(stepValueOf(crepo, obj.getModuleAction())); return si; } }