com.foxsmart.csu.config.global
Class RemarkNumberAccessListEntry
java.lang.Object
com.foxsmart.csu.config.CiscoRouterConfigParser
com.foxsmart.csu.config.global.AccessListEntry
com.foxsmart.csu.config.global.RemarkAccessListEntry
com.foxsmart.csu.config.global.RemarkNumberAccessListEntry
- All Implemented Interfaces:
- NumberAccessListEntry, java.io.Serializable
public class RemarkNumberAccessListEntry
- extends RemarkAccessListEntry
- implements NumberAccessListEntry
The RemarkNumberAccessListEntry is used for remarks that are associated with various numbered access lists.
- See Also:
- Serialized Form
| 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 |
RemarkNumberAccessListEntry
public RemarkNumberAccessListEntry()
- Constructs a remark number access list entry object.
setAccessListNumber
public void setAccessListNumber(java.lang.Integer accessListNumber)
- Sets the access list number.
- Specified by:
setAccessListNumber in interface NumberAccessListEntry
- Parameters:
accessListNumber - The access list number.
getAccessListNumber
public java.lang.Integer getAccessListNumber()
- Gets the access list number.
- Specified by:
getAccessListNumber in interface NumberAccessListEntry
- Returns:
- the access list number.
isAccessNumberSupported
public boolean isAccessNumberSupported(int accessListNumber)
- Determines whether an access list number is supported by a specific access list entry type.
- Specified by:
isAccessNumberSupported in interface NumberAccessListEntry
- Parameters:
accessListNumber - The access list number to verify.
- Returns:
- True if the access list number is supported or false if not.
buildFromIos
public void buildFromIos(java.lang.String line)
throws InvalidConfigurationException
- Specified by:
buildFromIos in interface NumberAccessListEntry
- 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 NumberAccessListEntry- 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 NumberAccessListEntry
- Returns:
- the generated IOS.
- Throws:
InvalidConfigurationException - if the configuration is invalid.- See Also:
CiscoRouterConfigComponent
Copyright © 2005-2008 Fox Smart, Inc. All Rights Reserved.