com.foxsmart.csu.config.global.classmap
Class MatchInfoAccessGroupNumber

java.lang.Object
  extended by com.foxsmart.csu.config.CiscoRouterConfigParser
      extended by com.foxsmart.csu.config.global.classmap.MatchInfo
          extended by com.foxsmart.csu.config.global.classmap.MatchInfoAccessGroupNumber
All Implemented Interfaces:
java.io.Serializable

public class MatchInfoAccessGroupNumber
extends MatchInfo

The MatchInfoAccessGroupNumber class provides match information for access group numbers.

See Also:
Serialized Form

Field Summary
static java.lang.Integer MAX_NUMBER
          The maximum access list number.
static java.lang.Integer MIN_NUMBER
          The minimum access list number.
 
Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser
log, NO, tokenIndex
 
Constructor Summary
MatchInfoAccessGroupNumber()
          Constructs a match info access group name object.
 
Method Summary
 java.lang.String generateIos()
          Generates the IOS string associated with this part of the router configuration.
 java.lang.Integer getNumber()
          Gets the access group number.
 void setNumber(java.lang.Integer number)
          Sets the access group number.
 void validate()
          Validates this component.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_NUMBER

public static final java.lang.Integer MIN_NUMBER
The minimum access list number.


MAX_NUMBER

public static final java.lang.Integer MAX_NUMBER
The maximum access list number.

Constructor Detail

MatchInfoAccessGroupNumber

public MatchInfoAccessGroupNumber()
Constructs a match info access group name object.

Method Detail

setNumber

public void setNumber(java.lang.Integer number)
Sets the access group number. Valid values are between 1-2699.

Parameters:
number - The access group number.

getNumber

public java.lang.Integer getNumber()
Gets the access group number.

Returns:
the access group number.

validate

public void validate()
              throws InvalidConfigurationException
Description copied from class: MatchInfo
Validates this component.

Specified by:
validate in class MatchInfo
Throws:
InvalidConfigurationException - if the configuration is invalid.
See Also:
CiscoRouterConfigComponent

generateIos

public java.lang.String generateIos()
                             throws InvalidConfigurationException
Description copied from class: MatchInfo
Generates the IOS string associated with this part of the router configuration.

Specified by:
generateIos in class MatchInfo
Returns:
the generated IOS.
Throws:
InvalidConfigurationException - if the configuration is invalid.
See Also:
CiscoRouterConfigComponent


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