|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.foxsmart.csu.config.CiscoRouterConfigParser
com.foxsmart.csu.config.global.Timestamps
public class Timestamps
The Timestamps class represents timestamp configurations. A timestamp must be either datetime OR uptime. When one is used, the other is not.
| Field Summary | |
|---|---|
static java.lang.String |
DATETIME
|
static java.lang.String |
LOCALTIME
|
static java.lang.String |
MSEC
|
static java.lang.String |
SHOW_TIMEZONE
|
static java.lang.String |
UPTIME
|
| Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser |
|---|
log, NO, tokenIndex |
| Constructor Summary | |
|---|---|
Timestamps()
Constructs a Timestamps object. |
|
| Method Summary | |
|---|---|
java.lang.String |
generateIos()
Generates the IOS associated with the Timestamps. |
boolean |
getDateTime()
Gets whether the timestamp format is datetime. |
boolean |
getLocalTime()
Gets the local time flag. |
boolean |
getMsec()
Gets the milliseconds flag. |
boolean |
getShowTimezone()
Gets the show timezone flag. |
boolean |
getUpTime()
Gets whether the timestamp format is uptime. |
void |
setDateTime()
Sets the timestamp to use datetime. |
void |
setLocalTime(boolean localTime)
Sets the local time flag. |
void |
setMsec(boolean msec)
Sets the milliseconds flag. |
void |
setShowTimezone(boolean showTimezone)
Sets the show timezone flag. |
void |
setUpTime()
Sets the timestamp to use uptime. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DATETIME
public static final java.lang.String LOCALTIME
public static final java.lang.String MSEC
public static final java.lang.String SHOW_TIMEZONE
public static final java.lang.String UPTIME
| Constructor Detail |
|---|
public Timestamps()
| Method Detail |
|---|
public void setDateTime()
public void setUpTime()
public boolean getDateTime()
public boolean getUpTime()
public void setLocalTime(boolean localTime)
localTime - The local time flag.public boolean getLocalTime()
public void setMsec(boolean msec)
msec - The milliseconds flag.public boolean getMsec()
public void setShowTimezone(boolean showTimezone)
showTimezone - The show timezone flag.public boolean getShowTimezone()
public java.lang.String generateIos()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||