*/
public void toSAX(ContentHandler contentHandler,
LexicalHandler lexicalHandler, NamespaceSupport namespaces)
throws SAXException
{
AttributeMap attributes = new AttributeMap();
// Determine if there are any operations
String operations = null;
if (addOperation )
{
if (operations == null)
{
operations = OPERATION_ADD;
}
else
{
operations += " " + OPERATION_ADD;
}
}
if (addOperation)
{
if (operations == null)
{
operations = OPERATION_DELETE;
}
else
{
operations += " " + OPERATION_DELETE;
}
}
if (operations != null)
{
attributes.put(A_OPERATIONS, operations);
}
if (this.returnValue != null)
{
attributes.put(A_RETURN_VALUE, this.returnValue);
}
if (this.size > -1)
{
attributes.put(A_SIZE, this.size);
}
if (!this.evtBehavior.equals(""))
{
attributes.put(A_EVTBEHAVIOR, this.evtBehavior);
}
if (this.maxlength > -1)
{
attributes.put(A_MAX_LENGTH, this.maxlength);
}
if (this.multiple == true)
{
attributes.put(A_MULTIPLE, this.multiple);
}
if (this.rows > -1)
{
attributes.put(A_ROWS, this.rows);
}
if (this.cols > -1)
{
attributes.put(A_COLS, this.cols);
}
if (this.authority)
{
attributes.put(A_AUTHORITY_CONTROLLED, this.authority);
}
if (this.authority_required)
{
attributes.put(A_AUTHORITY_REQUIRED, this.authority_required);
}
if (this.choices != null)
{
attributes.put(A_CHOICES, this.choices);
}
if (this.presentation != null)
{
attributes.put(A_CHOICES_PRESENTATION, this.presentation);
}
if (this.choicesClosed)
{
attributes.put(A_CHOICES_CLOSED, true);
}
if (this.autofocus != null)
{
attributes.put(A_AUTOFOCUS, this.autofocus);
}
startElement(contentHandler, namespaces, E_PARAMS, attributes);
endElement(contentHandler, namespaces, E_PARAMS);
}