//------------------------------------------------------------------------------- // 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_Union extends step.core.StepCoreObject { private static String EntityName = "PORTMAPPINGTYPE_CHOICE_UNION"; private Pseudo_Partition_Choice_Type pseudo_partition_Choice_; private Standard_Partition_Choice_Type standard_partition_Choice_; 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(); pseudo_partition_Choice_ = null; standard_partition_Choice_ = null; } public PortMappingType_Choice_Union () { initializeExplicitAttributes(); } public PortMappingType_Choice_Union (step.core.StepCoreRepository _repo) { super(_repo); initializeExplicitAttributes(); } public void setPseudoPartitionChoice ( Pseudo_Partition_Choice_Type _v ) { pseudo_partition_Choice_ = _v; } public Pseudo_Partition_Choice_Type getPseudoPartitionChoice() { return pseudo_partition_Choice_; } public void setStandardPartitionChoice ( Standard_Partition_Choice_Type _v ) { standard_partition_Choice_ = _v; } public Standard_Partition_Choice_Type getStandardPartitionChoice() { return standard_partition_Choice_; } public void accept(CheddarBridge_AbstractVisitor visitor ) { visitor.accept((PortMappingType_Choice_Union) this); } public step.core.StepCoreObjectReaderWriter readerWriter() { return new PortMappingType_Choice_UnionStepRW(); } public boolean replaceReferenceWith(StepCoreObject oldObj, StepCoreObject newObj) { boolean done = false; if (getPseudoPartitionChoice() == oldObj ) { setPseudoPartitionChoice((Pseudo_Partition_Choice_Type) newObj); done = true; } if (getStandardPartitionChoice() == oldObj ) { setStandardPartitionChoice((Standard_Partition_Choice_Type) newObj); done = true; } if (super.replaceReferenceWith(oldObj, newObj)) { done = true; } return done; } }