edu.wpi.cs.dsrg.xmldb.xat.common.treestructure
Class ListPatternImp

java.lang.Object
  |
  +--edu.wpi.cs.dsrg.xmldb.xat.common.treestructure.ListPatternImp

public class ListPatternImp
extends java.lang.Object
implements ListPattern

This Class implemented the ListPattern Interface.

Since:
1.0
See Also:
Serialized Form

Field Summary
protected  java.util.Vector listp
          The list pattern.
 
Constructor Summary
ListPatternImp()
          The default ListPatternImp Constructor.
ListPatternImp(java.util.Vector listp)
          Deprecated. It should use Vector as it's parameter. It can not enforce the type of the items in the Vector.
 
Method Summary
 void add(ColumnName col)
          Add the given column name into a ListPattern.
 void add(ListPattern pattern)
          Connect with another list pattern.
 void add(java.lang.String text)
          Add text in list pattern.
 boolean containsColumn(java.lang.String columnName)
          Test to see if this DOMPattern contains a specific column name in its pattern tree.
 java.lang.String[] getColumnNames()
          Get all the column names within the ListPattern.
 java.util.Vector getList()
          Get the list.
 void setList(java.util.Vector lpattern)
          Set the list in the ListPattern.
 java.lang.String toString()
          Convert the ListPattern into String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

listp

protected java.util.Vector listp
The list pattern.
Since:
1.0
Constructor Detail

ListPatternImp

public ListPatternImp()
The default ListPatternImp Constructor.
Since:
1.0

ListPatternImp

public ListPatternImp(java.util.Vector listp)
Deprecated. It should use Vector as it's parameter. It can not enforce the type of the items in the Vector.

The ListPatternImp Constructor.
Parameters:
listp - The list pattern used to construct the ListPatternNode.
Since:
1.0
Method Detail

add

public void add(ColumnName col)
Add the given column name into a ListPattern.
Specified by:
add in interface ListPattern
Parameters:
param - The ColumnName adding to.
Returns:
void
Since:
1.0

add

public void add(ListPattern pattern)
Connect with another list pattern.
Specified by:
add in interface ListPattern
Parameters:
text - java.lang.String
Returns:
void
Since:
1.0

add

public void add(java.lang.String text)
Add text in list pattern. Creation date: (2/9/2003 10:26:56 PM)
Specified by:
add in interface ListPattern
Parameters:
text - java.lang.String
Since:
1.0

containsColumn

public boolean containsColumn(java.lang.String columnName)
Test to see if this DOMPattern contains a specific column name in its pattern tree.
Parameters:
columnName - The columnName searching for.
Returns:
boolean True: The listPattern contains the given columnName. False: otherwise.
Since:
1.0

getColumnNames

public java.lang.String[] getColumnNames()
Get all the column names within the ListPattern.
Returns:
String[] The vector of columns within the list pattern.
Since:
1.0

getList

public java.util.Vector getList()
Get the list.
Specified by:
getList in interface ListPattern
Returns:
Vector The vector of the list pattern.
Since:
1.0

setList

public void setList(java.util.Vector lpattern)
Set the list in the ListPattern.
Specified by:
setList in interface ListPattern
Parameters:
newPattern -  
Returns:
void
Since:
1.0

toString

public java.lang.String toString()
Convert the ListPattern into String.
Specified by:
toString in interface ListPattern
Overrides:
toString in class java.lang.Object
Returns:
String The result of converting.
Since:
1.0