com.ibm.as400.util.commtrace
Class FormatProperties

java.lang.Object
  extended bycom.ibm.as400.util.commtrace.FormatProperties

public class FormatProperties
extends Object

Values to use for setting the Properties object that is sent to the Format class.
Example:

   FormatProperties prop = new FormatProperties();
	prop.setProgress(FormatProperties.TRUE);
	// Set the filter properties that the user specified
	if(!filterIPaddr.equals("*ALL")) {
		prop.setIPAddress(filterIPaddr);
	}


Field Summary
static String FALSE
           
static String NO
           
static String TRUE
           
static String YES
           
 
Constructor Summary
FormatProperties()
           
 
Method Summary
 String getBroadcast()
          Gets the Broadcast filter.
 String getEndTime()
          Gets the end time filter.
 String getIPAddress()
          Gets the IPAddress filter
 String getPort()
          Gets the Port filter.
 String getProgress()
          Property set if progress should be displayed.
 String getSecondIPAddress()
          Gets the second IPAddress filter.
 String getStartTime()
          Gets the start time filter
 void setBroadcast(String broadcast)
          Sets the broadcast filter.
 void setEndTime(String endtime)
          Sets the end time filter in milliseconds since the epoc.
 void setIPAddress(String IPAddress)
          Sets the IPAddress filter to the given IPAddress.
 void setPort(String port)
          Sets the port filter to the given port.
 void setProgress(String progress)
          Sets if the progress monitor should be displayed or not.
 void setSecondIPAddress(String IPAddress)
          Sets the second IPAddress filter to the given IPAddress.
 void setStartTime(String starttime)
          Sets the start time filter in milliseconds since the epoc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRUE

public static final String TRUE
See Also:
Constant Field Values

YES

public static final String YES
See Also:
Constant Field Values

NO

public static final String NO
See Also:
Constant Field Values

FALSE

public static final String FALSE
See Also:
Constant Field Values
Constructor Detail

FormatProperties

public FormatProperties()
Method Detail

setIPAddress

public void setIPAddress(String IPAddress)
Sets the IPAddress filter to the given IPAddress.

Parameters:
IPAddress - The IPAddress to filter on.

setSecondIPAddress

public void setSecondIPAddress(String IPAddress)
Sets the second IPAddress filter to the given IPAddress.

Parameters:
IPAddress - The IPAddress to filter on.

setPort

public void setPort(String port)
Sets the port filter to the given port.

Parameters:
port - The port to filter on.

setBroadcast

public void setBroadcast(String broadcast)
Sets the broadcast filter.

Parameters:
broadcast - FormatProperties.YES or FormatProperties.NO.

setStartTime

public void setStartTime(String starttime)
Sets the start time filter in milliseconds since the epoc.

Parameters:
starttime - The time to start filtering at.

setEndTime

public void setEndTime(String endtime)
Sets the end time filter in milliseconds since the epoc.

Parameters:
endtime - The time to end filtering.

setProgress

public void setProgress(String progress)
Sets if the progress monitor should be displayed or not.

Parameters:
progress - FormatProperties.TRUE or FormatProperties.FALSE.

getIPAddress

public String getIPAddress()
Gets the IPAddress filter

Returns:
The IPAddress to filter on

getSecondIPAddress

public String getSecondIPAddress()
Gets the second IPAddress filter.

Returns:
The second IPAddress to filter on.

getPort

public String getPort()
Gets the Port filter.

Returns:
The Port to filter on.

getBroadcast

public String getBroadcast()
Gets the Broadcast filter.

Returns:
The Broadcast filter.

getStartTime

public String getStartTime()
Gets the start time filter

Returns:
The start time to filter on

getEndTime

public String getEndTime()
Gets the end time filter.

Returns:
The end time to filter on.

getProgress

public String getProgress()
Property set if progress should be displayed.

Returns:
The progress property.