wt.query.template
Class TableModelSAXSource

java.lang.Object
  extended bywt.query.template.TableModelSAXSource
All Implemented Interfaces:
SAXXMLSource, Serializable, XMLSource

public class TableModelSAXSource
extends Object
implements SAXXMLSource, Serializable



Supported API: true

Extendable: false

See Also:
Serialized Form

Nested Class Summary
private static class TableModelSAXSource.AggregateValue
           
private static class TableModelSAXSource.WrapperTableModel
           
 
Field Summary
static String BRANCH_ID
           
private static String CDATA
           
private static String CLASSNAME
           
private static String EMAIL
           
private static AttributeListImpl EMPTY_ATTRIBUTE_LIST
           
private static String HEADING
           
private static String IDX
           
private static String IS_NULL
           
private static AttributeListImpl IS_NULL_ATTRIBUTE_LIST
           
static String LATEST
           
static String META_SEPARATOR_STRING
          Special separator string used in column names to indicate that the column in question is a meta-column.
static String OBJECT_ID
           
private static String RESOURCE
           
private static String RESULT
           
private static String ROW
           
private  boolean standAlone
           
private static String TAG
           
private  TableModel theTableModel
           
static String TYPE
           
private static char VALID_REPLACEMENT_CHAR
           
private static String VALUE
           
 
Constructor Summary
TableModelSAXSource(TableModel a_TableModel)
          

Supported API: false
 
Method Summary
private  void addAttributes(AttributeListImpl attrs, TableModelSAXSource.AggregateValue aggValue)
           
private  void generateStringEvent(DocumentHandler listener, Object a_value)
           
private  void generateStringEvent(DocumentHandler listener, String a_value)
           
 String getBaseURI()
          The URI describing the location of the XML data, up to, but not including the file part of the URI.
private  AttributeListImpl getReferenceAttributes(Persistable a_object)
           
 TableModel getTableModel()
          Gets the object for the association that plays role: theTableModel.
private static TableModel getWrapperTableModel(TableModel rawTableModel)
           
private  String headingToTagName(String a_value)
           
 boolean isStandAlone()
          Gets the value of the attribute: standAlone; Indicates if this is a standalone document.
private  String makeUnique(String a_value, Hashtable a_uniqueValues)
           
 void produceEvents(DocumentHandler listener)
          Deprecated.  
 void setStandAlone(boolean a_StandAlone)
          Sets the value of the attribute: standAlone; Indicates if this is a standalone document.
 void setTableModel(TableModel a_TableModel)
          Sets the object for the association that plays role: theTableModel.
private  void theTableModelValidate(TableModel a_TableModel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

standAlone

private boolean standAlone

theTableModel

private TableModel theTableModel

RESULT

private static final String RESULT
See Also:
Constant Field Values

HEADING

private static final String HEADING
See Also:
Constant Field Values

ROW

private static final String ROW
See Also:
Constant Field Values

CDATA

private static final String CDATA
See Also:
Constant Field Values

TAG

private static final String TAG
See Also:
Constant Field Values

IS_NULL

private static final String IS_NULL
See Also:
Constant Field Values

IDX

private static final String IDX
See Also:
Constant Field Values

VALUE

private static final String VALUE
See Also:
Constant Field Values

EMAIL

private static final String EMAIL
See Also:
Constant Field Values

VALID_REPLACEMENT_CHAR

private static final char VALID_REPLACEMENT_CHAR
See Also:
Constant Field Values

EMPTY_ATTRIBUTE_LIST

private static final AttributeListImpl EMPTY_ATTRIBUTE_LIST

IS_NULL_ATTRIBUTE_LIST

private static final AttributeListImpl IS_NULL_ATTRIBUTE_LIST

META_SEPARATOR_STRING

public static final String META_SEPARATOR_STRING
Special separator string used in column names to indicate that the column in question is a meta-column. For instance, one could have a column named "Part" and one named "Part$$id" (if this constant has a value of "$$") and the values in the "Part$$id" column would be added as "id" attributes on the Part XML result elements and the "Part$$id" column would be filtered out (i.e. it would not generate its own XML elements).

See Also:
Constant Field Values

TYPE

public static final String TYPE
See Also:
Constant Field Values

OBJECT_ID

public static final String OBJECT_ID
See Also:
Constant Field Values

BRANCH_ID

public static final String BRANCH_ID
See Also:
Constant Field Values

LATEST

public static final String LATEST
See Also:
Constant Field Values
Constructor Detail

TableModelSAXSource

public TableModelSAXSource(TableModel a_TableModel)


Supported API: false

Parameters:
a_TableModel -
Method Detail

isStandAlone

public boolean isStandAlone()
Gets the value of the attribute: standAlone; Indicates if this is a standalone document.

Supported API: false

Returns:
boolean

setStandAlone

public void setStandAlone(boolean a_StandAlone)
Sets the value of the attribute: standAlone; Indicates if this is a standalone document.

Supported API: false

Parameters:
a_StandAlone -

getTableModel

public TableModel getTableModel()
Gets the object for the association that plays role: theTableModel.

Supported API: false

Returns:
TableModel

setTableModel

public void setTableModel(TableModel a_TableModel)
                   throws WTPropertyVetoException
Sets the object for the association that plays role: theTableModel.

Supported API: false

Parameters:
a_TableModel -
Throws:
WTPropertyVetoException

theTableModelValidate

private void theTableModelValidate(TableModel a_TableModel)
                            throws WTPropertyVetoException
Parameters:
a_TableModel -
Throws:
WTPropertyVetoException

produceEvents

public void produceEvents(DocumentHandler listener)
                   throws SAXException
Deprecated.  

Produce the SAX events for the XML source data calling the appropriate handler methods on the provided DocumentHandler instance.

Supported API: false

Specified by:
produceEvents in interface SAXXMLSource
Parameters:
listener - The handler that will "receive" the SAX events as method calls.
Throws:
SAXException

getBaseURI

public String getBaseURI()
The URI describing the location of the XML data, up to, but not including the file part of the URI. For example, the base URI for data sourced at http://www.acme.com/documents/Document1.xml would be http://www.acme.com/documents.

Supported API: true

Specified by:
getBaseURI in interface XMLSource
Returns:
String

getReferenceAttributes

private AttributeListImpl getReferenceAttributes(Persistable a_object)
                                          throws SAXException
Throws:
SAXException

headingToTagName

private String headingToTagName(String a_value)

makeUnique

private String makeUnique(String a_value,
                          Hashtable a_uniqueValues)

generateStringEvent

private void generateStringEvent(DocumentHandler listener,
                                 Object a_value)
                          throws SAXException
Throws:
SAXException

generateStringEvent

private void generateStringEvent(DocumentHandler listener,
                                 String a_value)
                          throws SAXException
Throws:
SAXException

addAttributes

private void addAttributes(AttributeListImpl attrs,
                           TableModelSAXSource.AggregateValue aggValue)

getWrapperTableModel

private static TableModel getWrapperTableModel(TableModel rawTableModel)