//------------------------------------------------------------------------------- // 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 extends ARINC_653_Object { private static String EntityName = "PORTMAPPINGTYPE"; private PortMappingType_Choice choice_; private ArrayList PortMap_Ext_; 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(); choice_ = null; PortMap_Ext_ = new ArrayList(); } public PortMappingType () { initializeExplicitAttributes(); } public PortMappingType (step.core.StepCoreRepository _repo) { super(_repo); initializeExplicitAttributes(); } public void setChoice ( PortMappingType_Choice _v ) { choice_ = _v; } public PortMappingType_Choice getChoice() { return choice_; } public void setPortMapExt(ArrayList _v) { if (_v == null) { PortMap_Ext_ = null; } else { if (PortMap_Ext_ == null) { PortMap_Ext_ = new ArrayList(); } else { PortMap_Ext_.clear(); } PortMap_Ext_.addAll(_v); } } public void portMapExtAdd (PortMap_Ext_Type _elem) { if (PortMap_Ext_ == null) { PortMap_Ext_ = new ArrayList(); } PortMap_Ext_.add(_elem); } public boolean portMapExtRemove(PortMap_Ext_Type _elem) { if (PortMap_Ext_ != null) { return PortMap_Ext_.remove(_elem); } return false; } public boolean portMapExtRemoveAll(ArrayList _v) { if (PortMap_Ext_ != null) { return PortMap_Ext_.removeAll(_v); } return false; } public void portMapExtAddAll(ArrayList _v) { if (PortMap_Ext_ == null) { PortMap_Ext_ = new ArrayList(); } PortMap_Ext_.addAll(_v); } public PortMap_Ext_Type portMapExtSet (int _pos, PortMap_Ext_Type _elem) { return PortMap_Ext_.set(_pos, _elem); } public ArrayList getPortMapExt() { return PortMap_Ext_; } public int portMapExtSize () { return PortMap_Ext_ == null ? 0 : PortMap_Ext_.size(); } public PortMap_Ext_Type portMapExtGet (int _pos) { return PortMap_Ext_.get(_pos); } public void accept(CheddarBridge_AbstractVisitor visitor ) { visitor.accept((PortMappingType) this); } public step.core.StepCoreObjectReaderWriter readerWriter() { return new PortMappingTypeStepRW(); } public boolean replaceReferenceWith(StepCoreObject oldObj, StepCoreObject newObj) { boolean done = false; if (getChoice() == oldObj ) { setChoice((PortMappingType_Choice) newObj); done = true; } for (ListIterator itori = getPortMapExt().listIterator(); itori.hasNext(); ) { if (itori.next() == oldObj ) { if (newObj == null) { itori.remove(); } else { itori.set((PortMap_Ext_Type)newObj); } done = true; } } if (super.replaceReferenceWith(oldObj, newObj)) { done = true; } return done; } }