//------------------------------------------------------------------------------- // 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 PortTypeStepRW extends ARINC_653_ObjectStepRW { public step.core.StepCoreObject coreObject() { return new PortType(); } public String entityName() { return PortType.EntityName(); } public ArrayList getPortExt(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 0); return (ArrayList) convertedStepValue(repo, stepVal); } public String getName(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 1); return (String) convertedStepValue(repo, stepVal); } public String getMaxMessageSize(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 2); return (String) convertedStepValue(repo, stepVal); } public DirectionType getDirection(StepCoreRepository repo, StepInternalRepresentation si) throws Exception { ArrayList values = si.getValues(); StepValue stepVal = values.get( 3); return DirectionType.fromString((String) convertedStepValue(repo, stepVal)); } public void initializeCoreObject(StepCoreRepository repo, step.core.StepCoreObject coreObj, StepGenericInstance si) throws Exception { super.initializeCoreObject(repo, coreObj, si); PortType obj = (PortType) coreObj; obj.setPortExt(getPortExt(repo, (StepInternalRepresentation) si)); obj.setName(getName(repo, (StepInternalRepresentation) si)); obj.setMaxMessageSize(getMaxMessageSize(repo, (StepInternalRepresentation) si)); obj.setDirection(getDirection(repo, (StepInternalRepresentation) si)); } public StepGenericInstance genericInstance(StepCoreRepository crepo, step.core.StepCoreObject coreObj) throws Exception { StepInternalRepresentation si = (StepInternalRepresentation) super.genericInstance(crepo, coreObj); PortType obj = (PortType) coreObj; si.add(stepValueOf(crepo, obj.getPortExt())); si.add(stepValueOf(crepo, obj.getName())); si.add(stepValueOf(crepo, obj.getMaxMessageSize())); si.add(stepValueOf(crepo, obj.getDirection())); return si; } }