com.foxsmart.csu.config.global
Class ExtendedMacAddressCompareInfo

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

public class ExtendedMacAddressCompareInfo
extends CiscoRouterConfigParser

The ExtendedMacAddressCompareInfo class contains optional pattern comparison information to be used by Extended Mac Address Access Lists.

See Also:
Serialized Form

Field Summary
static java.lang.String COMPARE_OP_AND
          'Logical And' compare operator.
static java.lang.String COMPARE_OP_EQ
          'Equal' compare operator.
static java.lang.String COMPARE_OP_GT
          'Greater Than' operator.
static java.lang.String COMPARE_OP_LT
          'Less Than' operator.
static java.lang.String COMPARE_OP_NEQ
          'Not Equal' operator.
static java.lang.String COMPARE_OP_XOR
          'Exclusive Or' operator.
static java.lang.Integer MAX_BYTES_TO_COMPARE
          Maximium number of bytes to compare.
static Hexadecimal MAX_COMPARISON_PATTERN
          Maximum comparison pattern.
static Hexadecimal MAX_PACKET_OFFSET
          Maximum packet offset.
static java.lang.Integer MIN_BYTES_TO_COMPARE
          Minimum number of bytes to compare.
static Hexadecimal MIN_COMPARISON_PATTERN
          Minimum comparison pattern.
static Hexadecimal MIN_PACKET_OFFSET
          Minimum packet offset.
 
Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser
log, NO, tokenIndex
 
Constructor Summary
ExtendedMacAddressCompareInfo()
          Constructs an empty ExtendedMacAddressCompareInfo object.
 
Method Summary
 java.lang.String generateIos()
           
 java.lang.String getCompareOperator()
          Gets the compare operator.
 Hexadecimal getComparePattern()
          Gets the compare pattern.
 java.lang.Integer getNumBytesToCompare()
          Gets the number of bytes to compare.
 Hexadecimal getPacketOffset()
          Gets the packet offset.
 void setCompareOperator(java.lang.String compareOperator)
          Sets the compare operator.
 void setComparePattern(Hexadecimal comparePattern)
          Sets the compare pattern.
 void setNumBytesToCompare(java.lang.Integer numBytesToCompare)
          Sets the number of bytes to compare.
 void setPacketOffset(Hexadecimal packetOffset)
          Sets the packet offset.
 void validate()
           
 
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_PACKET_OFFSET

public static final Hexadecimal MIN_PACKET_OFFSET
Minimum packet offset.


MAX_PACKET_OFFSET

public static final Hexadecimal MAX_PACKET_OFFSET
Maximum packet offset.


MIN_COMPARISON_PATTERN

public static final Hexadecimal MIN_COMPARISON_PATTERN
Minimum comparison pattern.


MAX_COMPARISON_PATTERN

public static final Hexadecimal MAX_COMPARISON_PATTERN
Maximum comparison pattern.


MIN_BYTES_TO_COMPARE

public static final java.lang.Integer MIN_BYTES_TO_COMPARE
Minimum number of bytes to compare.


MAX_BYTES_TO_COMPARE

public static final java.lang.Integer MAX_BYTES_TO_COMPARE
Maximium number of bytes to compare.


COMPARE_OP_AND

public static final java.lang.String COMPARE_OP_AND
'Logical And' compare operator.

See Also:
Constant Field Values

COMPARE_OP_EQ

public static final java.lang.String COMPARE_OP_EQ
'Equal' compare operator.

See Also:
Constant Field Values

COMPARE_OP_GT

public static final java.lang.String COMPARE_OP_GT
'Greater Than' operator.

See Also:
Constant Field Values

COMPARE_OP_LT

public static final java.lang.String COMPARE_OP_LT
'Less Than' operator.

See Also:
Constant Field Values

COMPARE_OP_NEQ

public static final java.lang.String COMPARE_OP_NEQ
'Not Equal' operator.

See Also:
Constant Field Values

COMPARE_OP_XOR

public static final java.lang.String COMPARE_OP_XOR
'Exclusive Or' operator.

See Also:
Constant Field Values
Constructor Detail

ExtendedMacAddressCompareInfo

public ExtendedMacAddressCompareInfo()
Constructs an empty ExtendedMacAddressCompareInfo object.

Method Detail

setPacketOffset

public void setPacketOffset(Hexadecimal packetOffset)
Sets the packet offset. Valid values: 0x000 - 0x5DC or null.

Parameters:
packetOffset - The packet offset.

getPacketOffset

public Hexadecimal getPacketOffset()
Gets the packet offset.

Returns:
the packet offset.

setNumBytesToCompare

public void setNumBytesToCompare(java.lang.Integer numBytesToCompare)
Sets the number of bytes to compare. Valid values: 1-4 or null.

Parameters:
numBytesToCompare - The number of bytes to compare.

getNumBytesToCompare

public java.lang.Integer getNumBytesToCompare()
Gets the number of bytes to compare.

Returns:
the number of bytes to compare.

setCompareOperator

public void setCompareOperator(java.lang.String compareOperator)
Sets the compare operator. Valid values: COMPARE_OP_AND, COMPARE_OP_EQ, COMPARE_OP_GT, COMPARE_OP_LT, COMPARE_OP_NEQ, COMPARE_OP_XOR or null.

Parameters:
compareOperator - The compare operator.

getCompareOperator

public java.lang.String getCompareOperator()
Gets the compare operator.

Returns:
the compare operator.

setComparePattern

public void setComparePattern(Hexadecimal comparePattern)
Sets the compare pattern. Valid values: 0x00000000 - 0xFFFFFFFF.

Parameters:
comparePattern - The compare pattern.

getComparePattern

public Hexadecimal getComparePattern()
Gets the compare pattern.

Returns:
the compare pattern.

validate

public void validate()
              throws InvalidConfigurationException
Throws:
InvalidConfigurationException - if the configuration is invalid.
See Also:
CiscoRouterConfigComponent

generateIos

public java.lang.String generateIos()
                             throws InvalidConfigurationException
Returns:
the generated IOS.
Throws:
InvalidConfigurationException - if the configuration is invalid.
See Also:
CiscoRouterConfigComponent


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