com.foxsmart.csu.config.global
Class RemarkAccessListEntry
java.lang.Object
com.foxsmart.csu.config.CiscoRouterConfigParser
com.foxsmart.csu.config.global.AccessListEntry
com.foxsmart.csu.config.global.RemarkAccessListEntry
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- RemarkNameAccessListEntry, RemarkNumberAccessListEntry
public class RemarkAccessListEntry
- extends AccessListEntry
The RemarkAccessListEntry is used for remarks that are associated with various access lists.
- See Also:
- Serialized Form
|
Method Summary |
protected void |
buildFromIos(java.lang.String line,
java.util.List tokens)
This method builds this class from an IOS string. |
protected java.lang.String |
generateIosString()
|
java.lang.String |
getRemark()
Gets the remark. |
void |
setRemark(java.lang.String remark)
Sets the remark. |
protected void |
validate()
|
| Methods inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser |
checkExists, checkLineComplete, checkNotEmpty, checkRange, checkTokenCount, checkTokenCount, checkTokenMatch, checkTokenMatch, decrementTokenIndex, generateCommands, getBigDecimalNumberFromString, getDoubleNumberFromString, getEnum, getHexadecimalNumberFromString, getIntegerNumberFromString, getIpAddressFromString, getLine, getLongNumberFromString, getMacAddressFromString, getNextOptionalToken, getNextToken, getToken, getTokenIndex, getTokens, getTotalIndentedLines, getTotalLines, incrementTokenIndex, invalidConfiguration, invalidTokenFound, isEmpty, moreIndentedLines, moreLines, moreTokens, removeLines, resetTokenIndex, setTokenIndex, tokensLeft |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_REMARK_LENGTH
public static final int MAX_REMARK_LENGTH
- The maximum length of the remark
- See Also:
- Constant Field Values
REMARK
public static final java.lang.String REMARK
- See Also:
- Constant Field Values
RemarkAccessListEntry
public RemarkAccessListEntry()
- Constructs a remark access list entry object.
setRemark
public void setRemark(java.lang.String remark)
- Sets the remark. Any leading and trailing spaces will be trimmed. Also, the remark will be truncated to the first
100 characters.
- Parameters:
remark - The remark.
getRemark
public java.lang.String getRemark()
- Gets the remark.
- Returns:
- the remark.
buildFromIos
protected void buildFromIos(java.lang.String line,
java.util.List tokens)
throws InvalidConfigurationException
- This method builds this class from an IOS string. The passed in token list will be used to do the parsing. It is
assumed that the index for parsing the tokens is at the point where any component key words or access list
identifiers have already been parsed.
- Parameters:
line - The IOS configuration listokens - The list of tokens for this line
- Throws:
InvalidConfigurationException - if there was a configuration error
validate
protected void validate()
throws InvalidConfigurationException
- Throws:
InvalidConfigurationException - if the configuration is invalid.- See Also:
CiscoRouterConfigComponent
generateIosString
protected java.lang.String generateIosString()
throws InvalidConfigurationException
- Returns:
- the generated IOS string.
- Throws:
InvalidConfigurationException - if the configuration is invalid.- See Also:
CiscoRouterConfigComponent
Copyright © 2005-2008 Fox Smart, Inc. All Rights Reserved.