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

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

public class X25EncapsulationOptions
extends EncapsulationOptions

The X25EncapsulationOptions class contains X.25 encapsulation options.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser
log, NO, tokenIndex
 
Constructor Summary
X25EncapsulationOptions()
          Constructs a LapbEncapsulationOptions object.
 
Method Summary
 java.lang.String generateIos()
          Generates an IOS string for the frame relay portion of the encapsulation.
 boolean getDteFlag()
          Gets the DTE flag.
 X25EncapsulationEnum getEncapsulationOption()
          Gets the encapsulation option.
 java.lang.String getProfileName()
          Gets the X.25 profile name.
 void setDteFlag(boolean dteFlag)
          Sets the DTE flag.
 void setEncapsulationOption(X25EncapsulationEnum encapsulationOption)
          Sets the encapsulation options.
 void setProfileName(java.lang.String profileName)
          Sets the X.25 profile name.
 void validate()
          Validates that this object 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
 

Constructor Detail

X25EncapsulationOptions

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

Method Detail

getProfileName

public java.lang.String getProfileName()
Gets the X.25 profile name.

Returns:
the X.25 profile name.

setProfileName

public void setProfileName(java.lang.String profileName)
Sets the X.25 profile name. The X.25 profile should already be defined in the global configuration section of the router. Otherwise, a configuration error will result if the profile name is set. Note that a profile name can only be used with the ax25, ddn, and ietf options and when in DTE operation.

Parameters:
profileName - the X.25 profile name.

getEncapsulationOption

public X25EncapsulationEnum getEncapsulationOption()
Gets the encapsulation option.

Returns:
the encapsulation option.

setEncapsulationOption

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

Parameters:
encapsulationOption - the encapsulation option. By default, X25EncapsulationEnum.AX25 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.

validate

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

Overrides:
validate in class EncapsulationOptions
Throws:
InvalidConfigurationException - if the configuration is invalid.

generateIos

public java.lang.String generateIos()
                             throws InvalidConfigurationException
Generates an IOS string for the frame relay portion of the encapsulation.

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.