//------------------------------------------------------------------------------- // 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 System_State_Entry_Type extends ARINC_653_Object { private static String EntityName = "SYSTEM_STATE_ENTRY_TYPE"; private ArrayList Error_ID_Action_; private String SystemState_; private String Description_; 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(); Error_ID_Action_ = new ArrayList(); SystemState_ = ""; Description_ = null; } public System_State_Entry_Type () { initializeExplicitAttributes(); } public System_State_Entry_Type (step.core.StepCoreRepository _repo) { super(_repo); initializeExplicitAttributes(); } public void setErrorIDAction(ArrayList _v) { if (_v == null) { Error_ID_Action_ = null; } else { if (Error_ID_Action_ == null) { Error_ID_Action_ = new ArrayList(); } else { Error_ID_Action_.clear(); } Error_ID_Action_.addAll(_v); } } public void errorIDActionAdd (Error_ID_Level_Type _elem) { if (Error_ID_Action_ == null) { Error_ID_Action_ = new ArrayList(); } Error_ID_Action_.add(_elem); } public boolean errorIDActionRemove(Error_ID_Level_Type _elem) { if (Error_ID_Action_ != null) { return Error_ID_Action_.remove(_elem); } return false; } public boolean errorIDActionRemoveAll(ArrayList _v) { if (Error_ID_Action_ != null) { return Error_ID_Action_.removeAll(_v); } return false; } public void errorIDActionAddAll(ArrayList _v) { if (Error_ID_Action_ == null) { Error_ID_Action_ = new ArrayList(); } Error_ID_Action_.addAll(_v); } public Error_ID_Level_Type errorIDActionSet (int _pos, Error_ID_Level_Type _elem) { return Error_ID_Action_.set(_pos, _elem); } public ArrayList getErrorIDAction() { return Error_ID_Action_; } public int errorIDActionSize () { return Error_ID_Action_ == null ? 0 : Error_ID_Action_.size(); } public Error_ID_Level_Type errorIDActionGet (int _pos) { return Error_ID_Action_.get(_pos); } public void setSystemState ( String _v ) { SystemState_ = _v; } public String getSystemState() { return SystemState_; } public void setDescription ( String _v ) { Description_ = _v; } public String getDescription() { return Description_; } public void accept(CheddarBridge_AbstractVisitor visitor ) { visitor.accept((System_State_Entry_Type) this); } public step.core.StepCoreObjectReaderWriter readerWriter() { return new System_State_Entry_TypeStepRW(); } public boolean replaceReferenceWith(StepCoreObject oldObj, StepCoreObject newObj) { boolean done = false; for (ListIterator itori = getErrorIDAction().listIterator(); itori.hasNext(); ) { if (itori.next() == oldObj ) { if (newObj == null) { itori.remove(); } else { itori.set((Error_ID_Level_Type)newObj); } done = true; } } if (super.replaceReferenceWith(oldObj, newObj)) { done = true; } return done; } }