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

java.lang.Object
  extended by com.foxsmart.csu.config.CiscoRouterConfigParser
      extended by com.foxsmart.csu.config.global.interfacepkg.EncapsulationOptions
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AtmDxiEncapsulationOptions, FrameRelayEncapsulationOptions, HdlcEncapsulationOptions, LapbEncapsulationOptions, PppEncapsulationOptions, SlipEncapsulationOptions, SmdsEncapsulationOptions, X25EncapsulationOptions

public abstract class EncapsulationOptions
extends CiscoRouterConfigParser

The EncapsulationOptions class represents various encapsulation options for an interface. Specific encapsulation options should extend this class.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser
log, NO, tokenIndex
 
Constructor Summary
EncapsulationOptions()
          Constructs an EncapsulationOptions object.
 
Method Summary
 java.lang.String generateIos()
          Generates an IOS string for this component.
 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

EncapsulationOptions

public EncapsulationOptions()
Constructs an EncapsulationOptions object.

Method Detail

validate

public void validate()
              throws InvalidConfigurationException
Validates that this object is valid. This default implementation is always considered valid.

Throws:
InvalidConfigurationException - if the configuration is invalid.

generateIos

public java.lang.String generateIos()
                             throws InvalidConfigurationException
Generates an IOS string for this component. This default implementation returns the empty string.

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.