com.foxsmart.csu.config.global.line
Class ModemAutoConfigure

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

public class ModemAutoConfigure
extends CiscoRouterConfigParser

The ModemAutoConfigure class represents the autoconfigure information for the Modem class.

See Also:
Serialized Form

Field Summary
static java.lang.String AUTOCONFIGURE
           
static java.lang.String DISCOVERY
           
static java.lang.String TYPE
           
 
Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser
log, NO, tokenIndex
 
Constructor Summary
ModemAutoConfigure()
          Constructs a modem autoconfigure object.
 
Method Summary
 Commands generateDeleteIos(CiscoRouterConfig updatedCiscoRouterConfig)
          Generates the delete IOS commands associated with this "component".
 Commands generateIos()
          Generates the IOS associated with this "component".
 java.lang.String getAutoConfigureMode()
          Gets the auto configure mode.
 java.lang.String getModemType()
          Gets the the modem type.
 void setAutoConfigureMode(java.lang.String autoConfigureMode)
          Sets the autoconfigure mode.
 void setModemType(java.lang.String modemType)
          Sets the the modem type.
 void validate()
          Validates that this "component" is valid.
 
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

AUTOCONFIGURE

public static final java.lang.String AUTOCONFIGURE
See Also:
Constant Field Values

DISCOVERY

public static final java.lang.String DISCOVERY
See Also:
Constant Field Values

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values
Constructor Detail

ModemAutoConfigure

public ModemAutoConfigure()
Constructs a modem autoconfigure object.

Method Detail

setAutoConfigureMode

public void setAutoConfigureMode(java.lang.String autoConfigureMode)
Sets the autoconfigure mode. Valid values are the following class constants: DISCOVERY or TYPE. The following is a description of each value: DISCOVERY: Attempt to determine modem type automatically. TYPE: A modem type must be specified.

Parameters:
autoConfigureMode - The auto configure mode.

getAutoConfigureMode

public java.lang.String getAutoConfigureMode()
Gets the auto configure mode.

Returns:
the auto configure mode.

setModemType

public void setModemType(java.lang.String modemType)
Sets the the modem type. This value is required and only used when the autoconfigure mode is TYPE.

Parameters:
modemType - The the modem type.

getModemType

public java.lang.String getModemType()
Gets the the modem type.

Returns:
the the modem type.

validate

public void validate()
              throws InvalidConfigurationException
Validates that this "component" is valid.

Throws:
InvalidConfigurationException - if the configuration is invalid.
See Also:
CiscoRouterConfigComponent

generateIos

public Commands generateIos()
                     throws InvalidConfigurationException
Generates the IOS associated with this "component".

Returns:
the generated commands.
Throws:
InvalidConfigurationException - if the configuration is invalid.
See Also:
CiscoRouterConfigComponent

generateDeleteIos

public Commands generateDeleteIos(CiscoRouterConfig updatedCiscoRouterConfig)
                           throws InvalidConfigurationException
Generates the delete IOS commands associated with this "component".

Parameters:
updatedCiscoRouterConfig - the updated Cisco router configuration.
Returns:
the generated commands.
Throws:
InvalidConfigurationException - if the configuration is invalid.
See Also:
MultiLineComponent


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