com.foxsmart.csu.config.global
Class StdIpNameAccessListEntry

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
              extended by com.foxsmart.csu.config.global.StdIpNameAccessListEntry
All Implemented Interfaces:
NameAccessListEntry, java.io.Serializable

public class StdIpNameAccessListEntry
extends StdIpAccessListEntry
implements NameAccessListEntry

The StdIpNameAccessListEntry represents a standard IP access list associated with a name.

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
StdIpNameAccessListEntry()
          Constructs a Standard IP name access list entry object.
 
Method Summary
 void buildFromIos(java.lang.String line)
           
 Commands generateIos()
           
 java.lang.String getAccessListName()
          Gets the access list name.
 void setAccessListName(java.lang.String accessListName)
          Sets the access list name.
 void validate()
           
 
Methods inherited from class com.foxsmart.csu.config.global.StdIpAccessListEntry
buildFromIos, generateIosString, getLogFlag, getMatchInfo, setLogFlag, setMatchInfo
 
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

StdIpNameAccessListEntry

public StdIpNameAccessListEntry()
Constructs a Standard IP name access list entry object.

Method Detail

setAccessListName

public void setAccessListName(java.lang.String accessListName)
Sets the access list name.

Specified by:
setAccessListName in interface NameAccessListEntry
Parameters:
accessListName - The access list name.

getAccessListName

public java.lang.String getAccessListName()
Gets the access list name.

Specified by:
getAccessListName in interface NameAccessListEntry
Returns:
the access list name..

buildFromIos

public void buildFromIos(java.lang.String line)
                  throws InvalidConfigurationException
Specified by:
buildFromIos in interface NameAccessListEntry
Parameters:
line - the IOS line
Throws:
InvalidConfigurationException - if the configuration is invalid.
See Also:
CiscoRouterConfigComponent

validate

public void validate()
              throws InvalidConfigurationException
Specified by:
validate in interface NameAccessListEntry
Overrides:
validate in class StdIpAccessListEntry
Throws:
InvalidConfigurationException - if the configuration is invalid.
See Also:
CiscoRouterConfigComponent

generateIos

public Commands generateIos()
                     throws InvalidConfigurationException
Specified by:
generateIos in interface NameAccessListEntry
Returns:
the generated IOS.
Throws:
InvalidConfigurationException - if the configuration is invalid.
See Also:
CiscoRouterConfigComponent


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