com.foxsmart.csu.config.global
Class RemarkAccessListEntry

java.lang.Object
  extended by com.foxsmart.csu.config.CiscoRouterConfigParser
      extended by com.foxsmart.csu.config.global.AccessListEntry
          extended by 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

Field Summary
static int MAX_REMARK_LENGTH
          The maximum length of the remark
static java.lang.String REMARK
           
 
Fields inherited from class com.foxsmart.csu.config.global.AccessListEntry
ANY, DENY, FILTER_TYPE_DENY, FILTER_TYPE_PERMIT, HOST, LOG, LOG_INPUT, PERMIT
 
Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser
log, NO, tokenIndex
 
Constructor Summary
RemarkAccessListEntry()
          Constructs a remark access list entry object.
 
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.global.AccessListEntry
clone, getFilterType, isAccessNumberSupported, setFilterType, validateAccessListName, validateAccessListNumber, validateFilterType
 
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
 

Field Detail

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
Constructor Detail

RemarkAccessListEntry

public RemarkAccessListEntry()
Constructs a remark access list entry object.

Method Detail

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 lis
tokens - 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.