public class FormatProperties extends Object
FormatProperties prop = new FormatProperties(); prop.setProgress(FormatProperties.TRUE); // Set the filter properties that the user specified if(!filterIPaddr.equals("*ALL")) { prop.setIPAddress(filterIPaddr); }
Modifier and Type | Field | Description |
---|---|---|
static String |
FALSE |
|
static String |
NO |
|
static String |
TRUE |
|
static String |
YES |
Constructor | Description |
---|---|
FormatProperties() |
Modifier and Type | Method | Description |
---|---|---|
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.
|
public static final String TRUE
public static final String YES
public static final String NO
public static final String FALSE
public void setIPAddress(String IPAddress)
IPAddress
- The IPAddress to filter on.public void setSecondIPAddress(String IPAddress)
IPAddress
- The IPAddress to filter on.public void setPort(String port)
port
- The port to filter on.public void setBroadcast(String broadcast)
broadcast
- FormatProperties.YES or FormatProperties.NO.public void setStartTime(String starttime)
starttime
- The time to start filtering at.public void setEndTime(String endtime)
endtime
- The time to end filtering.public void setProgress(String progress)
progress
- FormatProperties.TRUE or FormatProperties.FALSE.public String getIPAddress()
public String getSecondIPAddress()
public String getPort()
public String getBroadcast()
public String getStartTime()
public String getEndTime()
public String getProgress()
Copyright © 2024. All rights reserved.