com.foxsmart.csu.config
Interface MultiInstanceComponent

All Known Implementing Classes:
AsyncInterfaceComponent, AtmInterfaceComponent, BriInterfaceComponent, BviInterfaceComponent, CbrInterfaceComponent, ChannelInterfaceComponent, ClassComponent, ClassMapComponent, DialerInterfaceComponent, EthernetInterfaceComponent, FastEthernetInterfaceComponent, FddiInterfaceComponent, FrameRelayBcComponent, FrameRelayBeComponent, FrameRelayCirComponent, FrameRelayMincirComponent, FrAtmInterfaceComponent, GigabitEthernetInterfaceComponent, GroupAsyncInterfaceComponent, HssiInterfaceComponent, InterfaceComponent, LexInterfaceComponent, LineComponent, LoopbackInterfaceComponent, MapClassAtmComponent, MapClassDialerComponent, MapClassFrameRelayComponent, MultilinkInterfaceComponent, NullInterfaceComponent, PolicyMapComponent, PortChannelInterfaceComponent, PosInterfaceComponent, SerialInterfaceComponent, TenGigabitEthernetInterfaceComponent, TokenRingInterfaceComponent, TunnelInterfaceComponent, UnknownComponent, VgAnylanInterfaceComponent, VifInterfaceComponent, VirtualTemplateInterfaceComponent, VirtualTokenRingInterfaceComponent, VlanInterfaceComponent, XTagAtmInterfaceComponent

public interface MultiInstanceComponent

This interface identifies a component that may contains multiple instances within a configuration. CompositeComponents will typically have multiple instances (e.g. "interface Serial0", "interface Serial1", etc.).


Method Summary
 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.
 boolean requiresCommentSeparator()
          Determines if a comment separator should be generated between the various instances of this component when generateIos is called and more than one component of this type exists.
 

Method Detail

equalsComponentInstance

boolean equalsComponentInstance(CiscoRouterConfigComponent component)
                                throws InvalidConfigurationException
Determines if this component and the passed in component are the same instance of component that can be compared from an IOS configuration standpoint.

Parameters:
component - The component to compare to this component.
Returns:
True if the components are of the same instance or false if not.
Throws:
InvalidConfigurationException - if either this or the passed in component aren't valid.

requiresCommentSeparator

boolean requiresCommentSeparator()
Determines if a comment separator should be generated between the various instances of this component when generateIos is called and more than one component of this type exists. The default implementation of this method is "true".

Returns:
True if a comment separator should be generated.


Copyright © 2005-2008 Fox Smart, Inc. All Rights Reserved.