|
||||||||||
| 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
public abstract class MultiLineConfigComponent
The MultiLineConfigComponent class represents a Cisco Router Configuration Component with multiple lines.
| 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 | |
|---|---|
MultiLineConfigComponent()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
add(java.util.Collection lines)
Adds a collection of lines. |
void |
add(int index,
java.lang.String line)
Adds an individual line to the list of lines at a specified index. |
void |
add(java.lang.String line)
Adds an individual line to the list of lines. |
void |
clear()
Clears all lines from the list of lines. |
boolean |
contains(java.lang.String line)
Determines if the list of lines contains the specified line. |
java.lang.String |
get(int index)
Gets a line at a specified index. |
protected java.util.List |
getLines()
Gets the lines |
int |
indexOf(java.lang.String line)
Determines which index the specific line is located. |
boolean |
isEmpty()
Returns true if the list of lines is empty or false if not. |
int |
lastIndexOf(java.lang.String line)
Determines the last index the specific line is located. |
java.lang.String |
remove(int index)
Removes a line at a specified index. |
java.lang.String |
set(int index,
java.lang.String line)
Sets an individual line at a specified index. |
protected void |
setLines(java.util.List lines)
Sets the lines |
int |
size()
Returns the number of lines current in the list of lines. |
java.lang.Object[] |
toArray()
Returns an array of the lines. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiLineConfigComponent()
| Method Detail |
|---|
public void add(int index,
java.lang.String line)
throws java.lang.IndexOutOfBoundsException
index - The index to add the line to.line - The line.
java.lang.IndexOutOfBoundsException - if the index is out of bounds.public void add(java.lang.String line)
line - The line.public void add(java.util.Collection lines)
lines - The collection of lines to add.public void clear()
public boolean contains(java.lang.String line)
line - The line to check.
public java.lang.String get(int index)
throws java.lang.IndexOutOfBoundsException
index - The index position to retrieve the line.
java.lang.IndexOutOfBoundsException - if the index is out of bounds.public int indexOf(java.lang.String line)
line - The line to search for.
public boolean isEmpty()
public int lastIndexOf(java.lang.String line)
line - The line to search for.
public java.lang.String remove(int index)
throws java.lang.IndexOutOfBoundsException
index - The index position to retrieve the line.
java.lang.IndexOutOfBoundsException - if the index is out of bounds.
public java.lang.String set(int index,
java.lang.String line)
throws java.lang.IndexOutOfBoundsException
index - The index to add the line to.line - The line.
java.lang.IndexOutOfBoundsException - if the index is out of bounds.public int size()
public java.lang.Object[] toArray()
protected java.util.List getLines()
protected void setLines(java.util.List lines)
lines - the lines
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||