|
||||||||||
| 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.MultiLineConfigComponent
com.foxsmart.csu.config.UnknownComponent
public class UnknownComponent
The UnknownComponent class represents a part of the router configuration which is not understood. Each unknown component is stored and retrieved as is - whether it is valid or not.
| 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 | |
|---|---|
UnknownComponent()
Constructs an unknown component 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. |
boolean |
equalsComponentInstance(CiscoRouterConfigComponent component)
Determines if this component and the passed in component are the same instance of component that can be compared from an IOS configuration standpoint. |
Commands |
generateIos()
Returns the IOS configuration commands for this component. |
boolean |
requiresCommentSeparator()
If a specific sub-class of UnknownComponent (not sure who would want this) wishes to have comment separators in between multiple instances of this component, it should override this method and return true. |
void |
validate()
An unknown component is always valid. |
| Methods inherited from class com.foxsmart.csu.config.MultiLineConfigComponent |
|---|
add, add, add, clear, contains, get, getLines, indexOf, isEmpty, lastIndexOf, remove, set, setLines, size, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnknownComponent()
| Method Detail |
|---|
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
validate in class CiscoRouterConfigComponentInvalidConfigurationException - if the configuration is invalid.
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.CiscoRouterConfigComponent
public boolean equalsComponentInstance(CiscoRouterConfigComponent component)
throws InvalidConfigurationException
equalsComponentInstance in interface MultiInstanceComponentcomponent - The component to compare to this component.
InvalidConfigurationException - if either this or the passed in component aren't valid.public boolean requiresCommentSeparator()
requiresCommentSeparator in interface MultiInstanceComponentrequiresCommentSeparator in class CiscoRouterConfigComponentCiscoRouterConfigComponent.requiresCommentSeparator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||