agonism.dovetail.schema
Class Table

java.lang.Object
  |
  +--agonism.dovetail.schema.QGBase
        |
        +--agonism.dovetail.schema.Table
All Implemented Interfaces:
com.jxml.quick.QAware, QGBaseIntf

public class Table
extends QGBase
implements QGBaseIntf, com.jxml.quick.QAware


Field Summary
protected  java.util.ArrayList columns
          list of Column
protected  java.util.ArrayList constraints
          list of Constraint
protected  java.util.ArrayList indices
          list of Index
protected  java.lang.String name
           
 
Fields inherited from class agonism.dovetail.schema.QGBase
qParent
 
Constructor Summary
Table()
           
Table(QGBaseIntf qParent, java.lang.String name)
          minimum constructor
Table(QGBaseIntf qParent, java.lang.String name, java.util.ArrayList columns, java.util.ArrayList constraints, java.util.ArrayList indices)
          full constructor
 
Method Summary
 int columnCount()
           
 int constraintCount()
           
 void endElement(java.lang.String tagName, com.jxml.quick.QContext outputContext)
          Method called at the end of a Quick transformation.
 java.util.ArrayList getAllXChildren()
          get a list of all the objects corresponding to XML children
 Column getColumn(int i)
           
 java.util.ArrayList getColumns()
          list of Column
 Constraint getConstraint(int i)
           
 java.util.ArrayList getConstraints()
          list of Constraint
 Index getIndex(int i)
           
 java.util.ArrayList getIndices()
          list of Index
 java.lang.String getName()
           
 java.lang.String getXAttVal(java.lang.String attname)
           
 java.util.ArrayList getXChildren(java.lang.String childTagName)
           
 int indexCount()
           
 void print(java.io.PrintWriter pw, java.lang.String indent)
          print a summary of this object
 void setColumn(int i, Column column)
           
 void setConstraint(int i, Constraint constraint)
           
 void setIndex(int i, Index index)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class agonism.dovetail.schema.QGBase
getXParent, print, setXParent, setXParentLinks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface agonism.dovetail.schema.QGBaseIntf
getXParent, print, setXParent, setXParentLinks
 

Field Detail

name

protected java.lang.String name

columns

protected java.util.ArrayList columns
list of Column

constraints

protected java.util.ArrayList constraints
list of Constraint

indices

protected java.util.ArrayList indices
list of Index
Constructor Detail

Table

public Table()

Table

public Table(QGBaseIntf qParent,
             java.lang.String name,
             java.util.ArrayList columns,
             java.util.ArrayList constraints,
             java.util.ArrayList indices)
full constructor

Table

public Table(QGBaseIntf qParent,
             java.lang.String name)
minimum constructor
Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getColumns

public java.util.ArrayList getColumns()
list of Column

getColumn

public Column getColumn(int i)

setColumn

public void setColumn(int i,
                      Column column)

columnCount

public int columnCount()

getConstraints

public java.util.ArrayList getConstraints()
list of Constraint

getConstraint

public Constraint getConstraint(int i)

setConstraint

public void setConstraint(int i,
                          Constraint constraint)

constraintCount

public int constraintCount()

getIndices

public java.util.ArrayList getIndices()
list of Index

getIndex

public Index getIndex(int i)

setIndex

public void setIndex(int i,
                     Index index)

indexCount

public int indexCount()

endElement

public void endElement(java.lang.String tagName,
                       com.jxml.quick.QContext outputContext)
                throws com.jxml.quick.QPE
Description copied from interface: QGBaseIntf
Method called at the end of a Quick transformation. Can be used to check integrity.
Specified by:
endElement in interface QGBaseIntf
Overrides:
endElement in class QGBase

print

public void print(java.io.PrintWriter pw,
                  java.lang.String indent)
Description copied from interface: QGBaseIntf
print a summary of this object
Specified by:
print in interface QGBaseIntf
Overrides:
print in class QGBase

getXAttVal

public java.lang.String getXAttVal(java.lang.String attname)

getXChildren

public java.util.ArrayList getXChildren(java.lang.String childTagName)

getAllXChildren

public java.util.ArrayList getAllXChildren()
Description copied from interface: QGBaseIntf
get a list of all the objects corresponding to XML children
Specified by:
getAllXChildren in interface QGBaseIntf
Overrides:
getAllXChildren in class QGBase