//------------------------------------------------------------------------------- // 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 Write_To_Buffer_Type extends step.core.StepCoreObject { private static String EntityName = "WRITE_TO_BUFFER_TYPE"; private Buffer write_buffer_; private Generic_Task write_task_; private Integer write_size_; 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(); write_buffer_ = null; write_task_ = null; write_size_ = 0; } public Write_To_Buffer_Type () { initializeExplicitAttributes(); } public Write_To_Buffer_Type (step.core.StepCoreRepository _repo) { super(_repo); initializeExplicitAttributes(); } public void setWriteBuffer ( Buffer _v ) { write_buffer_ = _v; } public Buffer getWriteBuffer() { return write_buffer_; } public void setWriteTask ( Generic_Task _v ) { write_task_ = _v; } public Generic_Task getWriteTask() { return write_task_; } public void setWriteSize ( Integer _v ) { write_size_ = _v; } public Integer getWriteSize() { return write_size_; } public void accept(CheddarBridge_AbstractVisitor visitor ) { visitor.accept((Write_To_Buffer_Type) this); } public step.core.StepCoreObjectReaderWriter readerWriter() { return new Write_To_Buffer_TypeStepRW(); } public boolean replaceReferenceWith(StepCoreObject oldObj, StepCoreObject newObj) { boolean done = false; if (getWriteBuffer() == oldObj ) { setWriteBuffer((Buffer) newObj); done = true; } if (getWriteTask() == oldObj ) { setWriteTask((Generic_Task) newObj); done = true; } if (super.replaceReferenceWith(oldObj, newObj)) { done = true; } return done; } }