com.foxsmart.csu.config.global.interfacepkg
Class LapbEncapsulationOptions

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

public class LapbEncapsulationOptions
extends EncapsulationOptions

The LapbEncapsulationOptions class contains LAPB (X.25 Level 2) encapsulation options.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser
log, NO, tokenIndex
 
Constructor Summary
LapbEncapsulationOptions()
          Constructs a LapbEncapsulationOptions object.
 
Method Summary
 java.lang.String generateIos()
          Generates an IOS string for this encapsulation option.
 boolean getDteFlag()
          Gets the DTE flag.
 LapbEncapsulationEnum getEncapsulationOption()
          Gets the encapsulation option.
 void setDteFlag(boolean dteFlag)
          Sets the DTE flag.
 void setEncapsulationOption(LapbEncapsulationEnum encapsulationOption)
          Sets the encapsulation options.
 
Methods inherited from class com.foxsmart.csu.config.global.interfacepkg.EncapsulationOptions
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
 

Constructor Detail

LapbEncapsulationOptions

public LapbEncapsulationOptions()
Constructs a LapbEncapsulationOptions object. By default, the encapsulation option is set to "IP" and the terminal is set to DTE.

Method Detail

getEncapsulationOption

public LapbEncapsulationEnum getEncapsulationOption()
Gets the encapsulation option.

Returns:
the encapsulation option.

setEncapsulationOption

public void setEncapsulationOption(LapbEncapsulationEnum encapsulationOption)
Sets the encapsulation options.

Parameters:
encapsulationOption - the encapsulation option. By default, LapbEncapsulationEnum.IP is used.

getDteFlag

public boolean getDteFlag()
Gets the DTE flag.

Returns:
the DTE flag.

setDteFlag

public void setDteFlag(boolean dteFlag)
Sets the DTE flag. By default, the flag is true. If false, DCE is used.

Parameters:
dteFlag - the DTE flag.

generateIos

public java.lang.String generateIos()
                             throws InvalidConfigurationException
Generates an IOS string for this encapsulation option.

Overrides:
generateIos in class EncapsulationOptions
Returns:
The IOS string for this component.
Throws:
InvalidConfigurationException - if any of the configuration elements are not valid.


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