//------------------------------------------------------------------------------- // 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 PortType extends ARINC_653_Object { private static String EntityName = "PORTTYPE"; private ArrayList PortExt_; private String Name_; private String MaxMessageSize_; private DirectionType Direction_; 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(); PortExt_ = new ArrayList(); Name_ = ""; MaxMessageSize_ = ""; Direction_ = DirectionType.SOURCE; } public PortType () { initializeExplicitAttributes(); } public PortType (step.core.StepCoreRepository _repo) { super(_repo); initializeExplicitAttributes(); } public void setPortExt(ArrayList _v) { if (_v == null) { PortExt_ = null; } else { if (PortExt_ == null) { PortExt_ = new ArrayList(); } else { PortExt_.clear(); } PortExt_.addAll(_v); } } public void portExtAdd (PortExt_Type _elem) { if (PortExt_ == null) { PortExt_ = new ArrayList(); } PortExt_.add(_elem); } public boolean portExtRemove(PortExt_Type _elem) { if (PortExt_ != null) { return PortExt_.remove(_elem); } return false; } public boolean portExtRemoveAll(ArrayList _v) { if (PortExt_ != null) { return PortExt_.removeAll(_v); } return false; } public void portExtAddAll(ArrayList _v) { if (PortExt_ == null) { PortExt_ = new ArrayList(); } PortExt_.addAll(_v); } public PortExt_Type portExtSet (int _pos, PortExt_Type _elem) { return PortExt_.set(_pos, _elem); } public ArrayList getPortExt() { return PortExt_; } public int portExtSize () { return PortExt_ == null ? 0 : PortExt_.size(); } public PortExt_Type portExtGet (int _pos) { return PortExt_.get(_pos); } public void setName ( String _v ) { Name_ = _v; } public String getName() { return Name_; } public void setMaxMessageSize ( String _v ) { MaxMessageSize_ = _v; } public String getMaxMessageSize() { return MaxMessageSize_; } public void setDirection ( DirectionType _v ) { Direction_ = _v; } public DirectionType getDirection() { return Direction_; } public void accept(CheddarBridge_AbstractVisitor visitor ) { visitor.accept((PortType) this); } public step.core.StepCoreObjectReaderWriter readerWriter() { return new PortTypeStepRW(); } public boolean replaceReferenceWith(StepCoreObject oldObj, StepCoreObject newObj) { boolean done = false; for (ListIterator itori = getPortExt().listIterator(); itori.hasNext(); ) { if (itori.next() == oldObj ) { if (newObj == null) { itori.remove(); } else { itori.set((PortExt_Type)newObj); } done = true; } } if (super.replaceReferenceWith(oldObj, newObj)) { done = true; } return done; } }