|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.foxsmart.csu.config.CiscoRouterConfigParser
com.foxsmart.csu.config.CiscoRouterConfigComponent
com.foxsmart.csu.config.CiscoRouterConfig
public class CiscoRouterConfig
The CiscoRouterConfig class represents a Cisco Router IOS configuration.
| Field Summary |
|---|
| Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigComponent |
|---|
commentComponent, componentMap, log, parentComponent |
| Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser |
|---|
NO, tokenIndex |
| Constructor Summary | |
|---|---|
CiscoRouterConfig()
Constructs a Cisco Router configuration object. |
|
| Method Summary | |
|---|---|
java.util.List |
buildFromIos(java.util.List configLines)
Parse and populate the specific CiscoRouterComponent object based on the passed in individual lines of the IOS configuration. |
void |
buildFromIos(java.lang.String ios)
Builds this a Cisco Router Configuration set of classes based on the specified IOS configuration string. |
java.lang.Object |
clone()
Creates a cloned router configuration. |
java.lang.String |
generateHeaderIos()
Returns the empty string since this is the root for the entire configuration. |
Commands |
generateIos()
Returns the IOS configuration commands for this component. |
java.util.List |
getChildComponentKeys()
Returns the list of child keys of this composite component. |
static java.util.List |
getChildComponentKeysStatic()
Gets the child component keys via a static convenience method. |
java.util.List |
getChildComponentUpdateKeys()
Returns the list of child keys of this composite component. |
static java.util.List |
getChildComponentUpdateKeysStatic()
Gets the child component update keys via a static convenience method. |
java.lang.String |
getOriginalIos()
Gets the original Cisco IOS configuration read from the router. |
java.util.List |
getPackages()
Gets a list of the packages used to instantiate components (e.g. |
static java.util.List |
getPackagesStatic()
Gets the child component keys via a static convenience method. |
static void |
setChildComponentKeysStatic(java.util.List componentKeys)
Sets the child component keys for this component via a static convenience method. |
static void |
setChildComponentUpdateKeysStatic(java.util.List componentUpdateKeys)
Sets the child component update keys for this component via a static convenience method. |
static void |
setPackagesStatic(java.util.List packages)
Sets the packages for this component via a static convenience method. |
void |
validate()
Validates this object to ensure it contains a valid IOS configuration. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CiscoRouterConfig()
| Method Detail |
|---|
public static void setPackagesStatic(java.util.List packages)
packages - the list of packagespublic static java.util.List getPackagesStatic()
public java.util.List getPackages()
CompositeComponent
getPackages in interface CompositeComponentCompositeComponent.getPackages()public static void setChildComponentKeysStatic(java.util.List componentKeys)
componentKeys - the child component keys.public static java.util.List getChildComponentKeysStatic()
public java.util.List getChildComponentKeys()
CompositeComponent
getChildComponentKeys in interface CompositeComponentCompositeComponent.getChildComponentKeys()public static void setChildComponentUpdateKeysStatic(java.util.List componentUpdateKeys)
componentUpdateKeys - the child component keys.public static java.util.List getChildComponentUpdateKeysStatic()
public java.util.List getChildComponentUpdateKeys()
CompositeComponent
getChildComponentUpdateKeys in interface CompositeComponentCompositeComponent.getChildComponentUpdateKeys()
public void buildFromIos(java.lang.String ios)
throws InvalidConfigurationException
ios - The Cisco IOS configuration string.
InvalidConfigurationException - if the IOS configuration can not be parsed for any reason.
public java.util.List buildFromIos(java.util.List configLines)
throws InvalidConfigurationException
CiscoRouterConfigComponent
buildFromIos in class CiscoRouterConfigComponentconfigLines - The list of IOS configuration lines.
InvalidConfigurationException - if the IOS configuration can not be parsed for any reason.CiscoRouterConfigComponent
public void validate()
throws InvalidConfigurationException
CiscoRouterConfigComponent
validate in class CiscoRouterConfigComponentInvalidConfigurationException - if the configuration is invalid.CiscoRouterConfigComponent
public Commands generateIos()
throws InvalidConfigurationException
CiscoRouterConfigComponent
generateIos in class CiscoRouterConfigComponentInvalidConfigurationException - if the IOS configuration is invalid and the IOS string can not be generated.
The validate() method is used to determine if the configuration is valid.CiscoRouterConfigComponentpublic java.lang.String getOriginalIos()
public java.lang.String generateHeaderIos()
throws InvalidConfigurationException
generateHeaderIos in interface CompositeComponentInvalidConfigurationException - never.
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException - if cloning is not supported.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||