com.foxsmart.csu.config.global
Class StdIpAccessListEntry

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.StdIpAccessListEntry
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
StdIpNameAccessListEntry, StdIpNumberAccessListEntry

public abstract class StdIpAccessListEntry
extends AccessListEntry

The StdIpAccessListEntry object contains information used for all standard access lists.

See Also:
Serialized Form

Field Summary
 
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
StdIpAccessListEntry()
          Constructs a standard IP 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()
           
 boolean getLogFlag()
          Gets the log flag.
 AccessListMatchInfo getMatchInfo()
          Gets the access list match information.
 void setLogFlag(boolean logFlag)
          Sets the log flag.
 void setMatchInfo(AccessListMatchInfo matchInfo)
          Sets the access list match information.
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
 

Constructor Detail

StdIpAccessListEntry

public StdIpAccessListEntry()
Constructs a standard IP access list entry object.

Method Detail

setMatchInfo

public void setMatchInfo(AccessListMatchInfo matchInfo)
Sets the access list match information.

Parameters:
matchInfo - The access list match information.

getMatchInfo

public AccessListMatchInfo getMatchInfo()
Gets the access list match information.

Returns:
the access list match information.

setLogFlag

public void setLogFlag(boolean logFlag)
Sets the log flag. If true, access list matches will be logged. Default: false.

Parameters:
logFlag - The log flag.

getLogFlag

public boolean getLogFlag()
Gets the log flag.

Returns:
the log flag.

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
Throws:
InvalidConfigurationException - if the configuration is invalid.
See Also:
CiscoRouterConfigComponent


Copyright © 2005-2008 Fox Smart, Inc. All Rights Reserved.