KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > tools > OPP > message > command > LocationWarningCommand


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Library License version 1 published by ozone-db.org.
3
//
4
// The original code and portions created by SMB are
5
// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
6
//
7
// $Id: LocationWarningCommand.java,v 1.2 2003/11/07 21:34:22 per_nyfelt Exp $
8
package org.ozoneDB.tools.OPP.message.command;
9
10 import org.ozoneDB.tools.OPP.message.MessageWriter;
11
12 /**
13  *
14  * @author Joakim Ohlrogge
15  */

16 public class LocationWarningCommand extends AbstractMessageCommand {
17     private String JavaDoc message;
18     private String JavaDoc file;
19     private int row;
20
21     public LocationWarningCommand(MessageWriter writer, String JavaDoc message, String JavaDoc file, int row) {
22         super(writer);
23         this.message = message;
24         this.file = file;
25         this.row = row;
26     }
27
28     public void execute() {
29         getWriter().warning(file, row, message);
30     }
31 }
32
Popular Tags