//------------------------------------------------------------------------------- // 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 step.core.*; public class PortMappingType_Choice extends step.core.StepCoreObject { private static String EntityName = "PORTMAPPINGTYPE_CHOICE"; private PortMappingType_Choice_Type type_of_PortMappingType_Choice_; private PortMappingType_Choice_Union union_; public static String EntityName() { return EntityName; } public String entityName() { return EntityName(); } public boolean isInstanceOf(String entName) { return entName.equals(EntityName); } public boolean isKindOf(String entName) { return entName.equals(EntityName) ? true : super.isKindOf(entName); } public void initializeExplicitAttributes() { super.initializeExplicitAttributes(); type_of_PortMappingType_Choice_ = PortMappingType_Choice_Type.Pseudo_Partition_Choice; union_ = null; } public PortMappingType_Choice () { initializeExplicitAttributes(); } public PortMappingType_Choice (step.core.StepCoreRepository _repo) { super(_repo); initializeExplicitAttributes(); } public void setTypeOfPortMappingTypeChoice ( PortMappingType_Choice_Type _v ) { type_of_PortMappingType_Choice_ = _v; } public PortMappingType_Choice_Type getTypeOfPortMappingTypeChoice() { return type_of_PortMappingType_Choice_; } public void setUnion ( PortMappingType_Choice_Union _v ) { union_ = _v; } public PortMappingType_Choice_Union getUnion() { return union_; } public void accept(CheddarBridge_AbstractVisitor visitor ) { visitor.accept((PortMappingType_Choice) this); } public step.core.StepCoreObjectReaderWriter readerWriter() { return new PortMappingType_ChoiceStepRW(); } public boolean replaceReferenceWith(StepCoreObject oldObj, StepCoreObject newObj) { boolean done = false; if (getUnion() == oldObj ) { setUnion((PortMappingType_Choice_Union) newObj); done = true; } if (super.replaceReferenceWith(oldObj, newObj)) { done = true; } return done; } }