//------------------------------------------------------------------------------- // 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 ProcessType extends ARINC_653_Object { private static String EntityName = "PROCESSTYPE"; private ArrayList ProcExt_; private String Name_; private String StackSize_; 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(); ProcExt_ = new ArrayList(); Name_ = null; StackSize_ = null; } public ProcessType () { initializeExplicitAttributes(); } public ProcessType (step.core.StepCoreRepository _repo) { super(_repo); initializeExplicitAttributes(); } public void setProcExt(ArrayList _v) { if (_v == null) { ProcExt_ = null; } else { if (ProcExt_ == null) { ProcExt_ = new ArrayList(); } else { ProcExt_.clear(); } ProcExt_.addAll(_v); } } public void procExtAdd (ProcExt_Type _elem) { if (ProcExt_ == null) { ProcExt_ = new ArrayList(); } ProcExt_.add(_elem); } public boolean procExtRemove(ProcExt_Type _elem) { if (ProcExt_ != null) { return ProcExt_.remove(_elem); } return false; } public boolean procExtRemoveAll(ArrayList _v) { if (ProcExt_ != null) { return ProcExt_.removeAll(_v); } return false; } public void procExtAddAll(ArrayList _v) { if (ProcExt_ == null) { ProcExt_ = new ArrayList(); } ProcExt_.addAll(_v); } public ProcExt_Type procExtSet (int _pos, ProcExt_Type _elem) { return ProcExt_.set(_pos, _elem); } public ArrayList getProcExt() { return ProcExt_; } public int procExtSize () { return ProcExt_ == null ? 0 : ProcExt_.size(); } public ProcExt_Type procExtGet (int _pos) { return ProcExt_.get(_pos); } public void setName ( String _v ) { Name_ = _v; } public String getName() { return Name_; } public void setStackSize ( String _v ) { StackSize_ = _v; } public String getStackSize() { return StackSize_; } public void accept(CheddarBridge_AbstractVisitor visitor ) { visitor.accept((ProcessType) this); } public step.core.StepCoreObjectReaderWriter readerWriter() { return new ProcessTypeStepRW(); } public boolean replaceReferenceWith(StepCoreObject oldObj, StepCoreObject newObj) { boolean done = false; for (ListIterator itori = getProcExt().listIterator(); itori.hasNext(); ) { if (itori.next() == oldObj ) { if (newObj == null) { itori.remove(); } else { itori.set((ProcExt_Type)newObj); } done = true; } } if (super.replaceReferenceWith(oldObj, newObj)) { done = true; } return done; } }