com.foxsmart.csu.config.global
Class RemarkNameAccessListEntry

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

public class RemarkNameAccessListEntry
extends RemarkAccessListEntry
implements NameAccessListEntry

The RemarkNameAccessListEntry is used for remarks that are associated with various named access lists.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.foxsmart.csu.config.global.RemarkAccessListEntry
MAX_REMARK_LENGTH, 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
RemarkNameAccessListEntry()
          Constructs a remark 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.RemarkAccessListEntry
buildFromIos, generateIosString, getRemark, setRemark
 
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

RemarkNameAccessListEntry

public RemarkNameAccessListEntry()
Constructs a remark 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 RemarkAccessListEntry
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.