//------------------------------------------------------------------------------- // 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 Partition_HM_Type extends ARINC_653_Object { private static String EntityName = "PARTITION_HM_TYPE"; private ArrayList System_State_Entry_; private ArrayList Part_HM_Ext_; private String PartitionIdentifier_; private String PartitionName_; private String PartitionCallback_; 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(); System_State_Entry_ = new ArrayList(); Part_HM_Ext_ = new ArrayList(); PartitionIdentifier_ = ""; PartitionName_ = null; PartitionCallback_ = null; } public Partition_HM_Type () { initializeExplicitAttributes(); } public Partition_HM_Type (step.core.StepCoreRepository _repo) { super(_repo); initializeExplicitAttributes(); } public void setSystemStateEntry(ArrayList _v) { if (_v == null) { System_State_Entry_ = null; } else { if (System_State_Entry_ == null) { System_State_Entry_ = new ArrayList(); } else { System_State_Entry_.clear(); } System_State_Entry_.addAll(_v); } } public void systemStateEntryAdd (System_State_Entry_Type _elem) { if (System_State_Entry_ == null) { System_State_Entry_ = new ArrayList(); } System_State_Entry_.add(_elem); } public boolean systemStateEntryRemove(System_State_Entry_Type _elem) { if (System_State_Entry_ != null) { return System_State_Entry_.remove(_elem); } return false; } public boolean systemStateEntryRemoveAll(ArrayList _v) { if (System_State_Entry_ != null) { return System_State_Entry_.removeAll(_v); } return false; } public void systemStateEntryAddAll(ArrayList _v) { if (System_State_Entry_ == null) { System_State_Entry_ = new ArrayList(); } System_State_Entry_.addAll(_v); } public System_State_Entry_Type systemStateEntrySet (int _pos, System_State_Entry_Type _elem) { return System_State_Entry_.set(_pos, _elem); } public ArrayList getSystemStateEntry() { return System_State_Entry_; } public int systemStateEntrySize () { return System_State_Entry_ == null ? 0 : System_State_Entry_.size(); } public System_State_Entry_Type systemStateEntryGet (int _pos) { return System_State_Entry_.get(_pos); } public void setPartHMExt(ArrayList _v) { if (_v == null) { Part_HM_Ext_ = null; } else { if (Part_HM_Ext_ == null) { Part_HM_Ext_ = new ArrayList(); } else { Part_HM_Ext_.clear(); } Part_HM_Ext_.addAll(_v); } } public void partHMExtAdd (Part_HM_Ext_Type _elem) { if (Part_HM_Ext_ == null) { Part_HM_Ext_ = new ArrayList(); } Part_HM_Ext_.add(_elem); } public boolean partHMExtRemove(Part_HM_Ext_Type _elem) { if (Part_HM_Ext_ != null) { return Part_HM_Ext_.remove(_elem); } return false; } public boolean partHMExtRemoveAll(ArrayList _v) { if (Part_HM_Ext_ != null) { return Part_HM_Ext_.removeAll(_v); } return false; } public void partHMExtAddAll(ArrayList _v) { if (Part_HM_Ext_ == null) { Part_HM_Ext_ = new ArrayList(); } Part_HM_Ext_.addAll(_v); } public Part_HM_Ext_Type partHMExtSet (int _pos, Part_HM_Ext_Type _elem) { return Part_HM_Ext_.set(_pos, _elem); } public ArrayList getPartHMExt() { return Part_HM_Ext_; } public int partHMExtSize () { return Part_HM_Ext_ == null ? 0 : Part_HM_Ext_.size(); } public Part_HM_Ext_Type partHMExtGet (int _pos) { return Part_HM_Ext_.get(_pos); } public void setPartitionIdentifier ( String _v ) { PartitionIdentifier_ = _v; } public String getPartitionIdentifier() { return PartitionIdentifier_; } public void setPartitionName ( String _v ) { PartitionName_ = _v; } public String getPartitionName() { return PartitionName_; } public void setPartitionCallback ( String _v ) { PartitionCallback_ = _v; } public String getPartitionCallback() { return PartitionCallback_; } public void accept(CheddarBridge_AbstractVisitor visitor ) { visitor.accept((Partition_HM_Type) this); } public step.core.StepCoreObjectReaderWriter readerWriter() { return new Partition_HM_TypeStepRW(); } public boolean replaceReferenceWith(StepCoreObject oldObj, StepCoreObject newObj) { boolean done = false; for (ListIterator itori = getSystemStateEntry().listIterator(); itori.hasNext(); ) { if (itori.next() == oldObj ) { if (newObj == null) { itori.remove(); } else { itori.set((System_State_Entry_Type)newObj); } done = true; } } for (ListIterator itori = getPartHMExt().listIterator(); itori.hasNext(); ) { if (itori.next() == oldObj ) { if (newObj == null) { itori.remove(); } else { itori.set((Part_HM_Ext_Type)newObj); } done = true; } } if (super.replaceReferenceWith(oldObj, newObj)) { done = true; } return done; } }