com.foxsmart.csu.config.global
Class ExtMacAddressNumberAccessListEntry

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.ExtMacAddressNumberAccessListEntry
All Implemented Interfaces:
NumberAccessListEntry, java.io.Serializable

public class ExtMacAddressNumberAccessListEntry
extends AccessListEntry
implements NumberAccessListEntry

The ExtMacAddressNumberAccessListEntry is used for access lists numbers: 1100-1199.

See Also:
Serialized Form

Field Summary
static java.lang.Integer MAX_AL_NUMBER_RANGE
          The maximum access list number.
static java.lang.Integer MIN_AL_NUMBER_RANGE
          The minimum access list number.
static MacAddress ZERO_MAC_ADDRESS
          MAC address of all zeros.
 
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
ExtMacAddressNumberAccessListEntry()
          Constructs an Extended Mac Address number access list entry object.
 
Method Summary
 void buildFromIos(java.lang.String line)
           
 Commands generateIos()
           
 java.lang.Integer getAccessListNumber()
          Gets the access list number.
 ExtendedMacAddressCompareInfo getCompareInfo()
          Gets the compare information.
 MacAddress getDestinationHardwareAddress()
          Gets the destination hardware address.
 MacAddress getDestinationHardwareAddressMask()
          Gets the destination hardware address mask.
 MacAddress getSourceHardwareAddress()
          Gets the source hardware address.
 MacAddress getSourceHardwareAddressMask()
          Gets the source hardware address mask.
 boolean isAccessNumberSupported(int accessListNumber)
          Determines whether an access list number is supported by a specific access list entry type.
 void setAccessListNumber(java.lang.Integer accessListNumber)
          Sets the access list number.
 void setCompareInfo(ExtendedMacAddressCompareInfo compareInfo)
          Sets the compare information.
 void setDestinationHardwareAddress(MacAddress destinationHardwareAddress)
          Sets the destination hardware address.
 void setDestinationHardwareAddressMask(MacAddress destinationHardwareAddressMask)
          Sets the destination hardware address mask.
 void setSourceHardwareAddress(MacAddress sourceHardwareAddress)
          Sets the source hardware address.
 void setSourceHardwareAddressMask(MacAddress sourceHardwareAddressMask)
          Sets the source hardware address mask.
 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
 

Field Detail

MIN_AL_NUMBER_RANGE

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


MAX_AL_NUMBER_RANGE

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


ZERO_MAC_ADDRESS

public static final MacAddress ZERO_MAC_ADDRESS
MAC address of all zeros.

Constructor Detail

ExtMacAddressNumberAccessListEntry

public ExtMacAddressNumberAccessListEntry()
Constructs an Extended Mac Address number access list entry object.

Method Detail

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.

setSourceHardwareAddress

public void setSourceHardwareAddress(MacAddress sourceHardwareAddress)
Sets the source hardware address.

Parameters:
sourceHardwareAddress - The source hardware address.

getSourceHardwareAddress

public MacAddress getSourceHardwareAddress()
Gets the source hardware address.

Returns:
the source hardware address.

setSourceHardwareAddressMask

public void setSourceHardwareAddressMask(MacAddress sourceHardwareAddressMask)
Sets the source hardware address mask.

Parameters:
sourceHardwareAddressMask - The source hardware address mask.

getSourceHardwareAddressMask

public MacAddress getSourceHardwareAddressMask()
Gets the source hardware address mask.

Returns:
the source hardware address mask.

setDestinationHardwareAddress

public void setDestinationHardwareAddress(MacAddress destinationHardwareAddress)
Sets the destination hardware address.

Parameters:
destinationHardwareAddress - The destination hardware address.

getDestinationHardwareAddress

public MacAddress getDestinationHardwareAddress()
Gets the destination hardware address.

Returns:
the destination hardware address.

setDestinationHardwareAddressMask

public void setDestinationHardwareAddressMask(MacAddress destinationHardwareAddressMask)
Sets the destination hardware address mask.

Parameters:
destinationHardwareAddressMask - The destination hardware address mask.

getDestinationHardwareAddressMask

public MacAddress getDestinationHardwareAddressMask()
Gets the destination hardware address mask.

Returns:
the destination hardware address mask.

setCompareInfo

public void setCompareInfo(ExtendedMacAddressCompareInfo compareInfo)
Sets the compare information. Set this value to null for no extra comparison information.

Parameters:
compareInfo - The compare information.

getCompareInfo

public ExtendedMacAddressCompareInfo getCompareInfo()
Gets the compare information.

Returns:
the compare information.

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
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.