|
||||||||||
| 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.global.policymap.ClassComponent
public class ClassComponent
The Class class specifies the policy criteria for a policy map. All attributes of the class are stored as child components.
| Field Summary | |
|---|---|
static java.lang.String |
CLASS
|
static java.lang.String |
CLASS_DEFAULT
|
| 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 | |
|---|---|
ClassComponent()
Constructs a class 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. |
java.lang.String |
generateHeaderIos()
Returns the header IOS configuration string for this component. |
Commands |
generateIos()
Returns the IOS configuration commands for this component. |
protected Commands |
generateUpdateIos()
Generates the IOS commands that will handle the updating of 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 |
getName()
Gets the class name. |
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. |
void |
setName(java.lang.String name)
Sets the class name. |
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.foxsmart.csu.config.MultiInstanceComponent |
|---|
requiresCommentSeparator |
| Field Detail |
|---|
public static final java.lang.String CLASS
public static final java.lang.String CLASS_DEFAULT
| Constructor Detail |
|---|
public ClassComponent()
| 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 setName(java.lang.String name)
name - The class name.public java.lang.String getName()
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 java.lang.String generateHeaderIos()
throws InvalidConfigurationException
CompositeComponent
generateHeaderIos in interface CompositeComponentInvalidConfigurationException - if the IOS configuration is invalid and the header IOS string can not be
generated. The validate() method is used to determine if the configuration is valid.CompositeComponent
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
protected Commands generateUpdateIos()
throws InvalidConfigurationException
CiscoRouterConfigComponent
generateUpdateIos in class CiscoRouterConfigComponentInvalidConfigurationException - if this component can't be updated.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||