コード例 #1
0
 public virtual Response visit(ICommandVisitor visitor)
 {
     throw new ApplicationException("BaseCommand.Visit() not implemented");
 }
コード例 #2
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return(visitor.processConnectionControl(this));
 }
コード例 #3
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptGraphicalPrimitiveEllipticalArcClose(this, parameter);
 }
コード例 #4
0
ファイル: NewArray.cs プロジェクト: taler0n/Students
 public void AcceptVisitor(ICommandVisitor visitor)
 {
     throw new System.NotImplementedException();
 }
コード例 #5
0
ファイル: ProducerAck.cs プロジェクト: ThorTech/apache-nms
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processProducerAck(this);
 }
コード例 #6
0
ファイル: BrokerInfo.cs プロジェクト: Redi0/meijing-ui
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processBrokerInfo(this);
 }
コード例 #7
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptControlAuxiliaryColor(this, parameter);
 }
コード例 #8
0
ファイル: ReplayCommand.cs プロジェクト: ThorTech/apache-nms
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processReplayCommand(this);
 }
コード例 #9
0
 public override Response visit(ICommandVisitor visitor)
 {
     return(visitor.processAddSession(this));
 }
コード例 #10
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptMetafileDescriptorCharacterCodingAnnouncer(this, parameter);
 }
コード例 #11
0
 public void Accept(ICommandVisitor visitor)
 {
     visitor.Visit(this);
 }
コード例 #12
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptPictureDescriptorColorSelectionMode(this, parameter);
 }
コード例 #13
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptAttributeTextPath(this, parameter);
 }
コード例 #14
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processMessageDispatchNotification(this);
 }
コード例 #15
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response Visit(ICommandVisitor visitor)
 {
     return(visitor.ProcessConnectionError(this));
 }
コード例 #16
0
ファイル: WireFormatInfo.cs プロジェクト: ThorTech/apache-nms
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processWireFormat(this);
 }
コード例 #17
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptSegmentClipInheritance(this, parameter);
 }
コード例 #18
0
ファイル: TransactionInfo.cs プロジェクト: Redi0/meijing-ui
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     switch(type)
     {
         case TransactionInfo.BEGIN:
             return visitor.processBeginTransaction(this);
         case TransactionInfo.END:
             return visitor.processEndTransaction(this);
         case TransactionInfo.PREPARE:
             return visitor.processPrepareTransaction(this);
         case TransactionInfo.COMMIT_ONE_PHASE:
             return visitor.processCommitTransactionOnePhase(this);
         case TransactionInfo.COMMIT_TWO_PHASE:
             return visitor.processCommitTransactionTwoPhase(this);
         case TransactionInfo.ROLLBACK:
             return visitor.processRollbackTransaction(this);
         case TransactionInfo.RECOVER:
             return visitor.processRecoverTransactions(this);
         case TransactionInfo.FORGET:
             return visitor.processForgetTransaction(this);
         default:
             throw new IOException("Transaction info type unknown: " + type);
     }
 }
コード例 #19
0
 public override TResult Visit <TArg, TResult>(ICommandVisitor <TArg, TResult> visitor, TArg arg)
 {
     return(visitor.VisitLetCommand(this, arg));
 }
コード例 #20
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processRemoveSubscriptionInfo(this);
 }
コード例 #21
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptDelimiterBeginApplicationStructureBody(this, parameter);
 }
コード例 #22
0
ファイル: MessageAck.cs プロジェクト: ThorTech/apache-nms
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processMessageAck(this);
 }
コード例 #23
0
 public override Task <Result> Accept(ICommandVisitor visitor)
 {
     return(visitor.Visit(this));
 }
コード例 #24
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptDelimiterBeginCompoundTextPath(this, parameter);
 }
コード例 #25
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return(visitor.processBrokerInfo(this));
 }
コード例 #26
0
 public override Response visit(ICommandVisitor visitor)
 {
     return(visitor.processShutdownInfo(this));
 }
コード例 #27
0
 public void AcceptVisitor(ICommandVisitor visitor) => visitor.Visit(this);
コード例 #28
0
ファイル: ReplayCommand.cs プロジェクト: ioxuy/meijing-ui
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return(visitor.processReplayCommand(this));
 }
コード例 #29
0
 public T AcceptVisitor <T>(ICommandVisitor <T> visitor) => visitor.Visit(this);
コード例 #30
0
ファイル: RemoveInfo.cs プロジェクト: ThorTech/apache-nms
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     switch(objectId.GetDataStructureType())
     {
         case ConnectionId.ID_CONNECTIONID:
             return visitor.processRemoveConnection((ConnectionId) objectId);
         case SessionId.ID_SESSIONID:
             return visitor.processRemoveSession((SessionId) objectId);
         case ConsumerId.ID_CONSUMERID:
             return visitor.processRemoveConsumer((ConsumerId) objectId);
         case ProducerId.ID_PRODUCERID:
             return visitor.processRemoveProducer((ProducerId) objectId);
         default:
             throw new IOException("Unknown remove command type: " + objectId.GetDataStructureType());
     }
 }
コード例 #31
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptAttributeCharacterOrientation(this, parameter);
 }
コード例 #32
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     if(IsAddOperation)
     {
     return visitor.processAddDestination(this);
     }
     else if(IsRemoveOperation)
     {
     return visitor.processRemoveDestination(this);
     }
     throw new IOException("Unknown operation type: " + OperationType);
 }
コード例 #33
0
 public override Response visit(ICommandVisitor visitor)
 {
     return(visitor.processMessageDispatch(this));
 }
コード例 #34
0
ファイル: BaseCommand.cs プロジェクト: Redi0/meijing-ui
 public virtual Response visit(ICommandVisitor visitor)
 {
     throw new ApplicationException("BaseCommand.Visit() not implemented");
 }
コード例 #35
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptDelimiterBeginMetafile(this, parameter);
 }
コード例 #36
0
ファイル: KeepAliveInfo.cs プロジェクト: ThorTech/apache-nms
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processKeepAliveInfo(this);
 }
コード例 #37
0
 public override T Accept <T>(ICommandVisitor <T> visitor)
 {
     return(visitor.Visit(this));
 }
コード例 #38
0
ファイル: ShutdownInfo.cs プロジェクト: ThorTech/apache-nms
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processShutdownInfo(this);
 }
コード例 #39
0
 public CommandVisitorPipe(ICommandVisitor visitor)
 {
     this.visitor = visitor;
 }
コード例 #40
0
ファイル: ConnectionInfo.cs プロジェクト: ThorTech/apache-nms
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processAddConnection( this );
 }
コード例 #41
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response Visit(ICommandVisitor visitor)
 {
     return(visitor.ProcessAddConsumer(this));
 }
コード例 #42
0
ファイル: NewArray.cs プロジェクト: Confirmit/Students
 public void AcceptVisitor(ICommandVisitor visitor)
 {
     throw new System.NotImplementedException();
 }
コード例 #43
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response Visit(ICommandVisitor visitor)
 {
     return(visitor.ProcessKeepAliveInfo(this));
 }
コード例 #44
0
ファイル: ConsumerControl.cs プロジェクト: Redi0/meijing-ui
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processConsumerControl(this);
 }
コード例 #45
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptSegmentSegmentDisplayPriority(this, parameter);
 }
コード例 #46
0
ファイル: GetRandom.cs プロジェクト: Confirmit/Students
 public void AcceptVisitor(ICommandVisitor visitor)
 {
     visitor.Accept(this);
 }
コード例 #47
0
ファイル: Circle.cs プロジェクト: julienguiraud/CgmInfo
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptGraphicalPrimitiveCircle(this, parameter);
 }