Oxygen XML Editor 11.2 Author API

ro.sync.ecss.extensions.commons
Class AbstractDocumentTypeHelper

java.lang.Object
  extended by ro.sync.ecss.extensions.commons.AbstractDocumentTypeHelper
All Implemented Interfaces:
AuthorTableHelper
Direct Known Subclasses:
CALSDocumentTypeHelper, DITARelTableDocumentTypeHelper, DITASimpleTableDocumentTypeHelper, TEIDocumentTypeHelper, XHTMLDocumentTypeHelper

public abstract class AbstractDocumentTypeHelper
extends Object
implements AuthorTableHelper

Abstract implementation of the document type helper.


Field Summary
 
Fields inherited from interface ro.sync.ecss.extensions.commons.table.operations.AuthorTableHelper
TYPE_CELL, TYPE_ROW, TYPE_TABLE
 
Constructor Summary
AbstractDocumentTypeHelper()
           
 
Method Summary
protected abstract  String[] getTableCellElementNames()
          Returns the possible local names of the elements that represents a table cell.
protected abstract  String[] getTableElementLocalName()
          Returns the possible local names of the elements that represents a table.
protected abstract  String[] getTableRowElementNames()
          Return the possible local names of the elements that represent a table row.
protected  boolean isElement(AuthorNode node, String elemLocalName)
          Test if a given node is an element and has the a specific local name.
 boolean isTable(AuthorNode node)
          Check if an AuthorNode is a table node.
 boolean isTableCell(AuthorNode node)
          Check if an AuthorNode is a table cell node.
 boolean isTableRow(AuthorNode node)
          Check if an AuthorNode is a table row node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ro.sync.ecss.extensions.commons.table.operations.AuthorTableHelper
checkTableColSpanIsDefined, getTableCellSpanProvider, updateTableColSpan, updateTableColumnNumber, updateTableRowNumber, updateTableRowSpan
 

Constructor Detail

AbstractDocumentTypeHelper

public AbstractDocumentTypeHelper()
Method Detail

isElement

protected boolean isElement(AuthorNode node,
                            String elemLocalName)
Test if a given node is an element and has the a specific local name.

Parameters:
node - The AuthorNode to be checked.
elemLocalName - The local name of the element.
Returns:
true if the given AuthorNode is an element and its local name matches the given string.

isTableCell

public boolean isTableCell(AuthorNode node)
Description copied from interface: AuthorTableHelper
Check if an AuthorNode is a table cell node.

Specified by:
isTableCell in interface AuthorTableHelper
Parameters:
node - The AuthorNode to be checked.
Returns:
true if the node is a table cell node, false otherwise.
See Also:
AuthorTableHelper.isTableCell(ro.sync.ecss.extensions.api.node.AuthorNode)

isTable

public boolean isTable(AuthorNode node)
Description copied from interface: AuthorTableHelper
Check if an AuthorNode is a table node.

Specified by:
isTable in interface AuthorTableHelper
Parameters:
node - The AuthorNode to be checked.
Returns:
true if the node is a table node, false otherwise.
See Also:
AuthorTableHelper.isTable(ro.sync.ecss.extensions.api.node.AuthorNode)

isTableRow

public boolean isTableRow(AuthorNode node)
Description copied from interface: AuthorTableHelper
Check if an AuthorNode is a table row node.

Specified by:
isTableRow in interface AuthorTableHelper
Parameters:
node - The AuthorNode to be checked.
Returns:
true if the node is a table row node, false otherwise.
See Also:
AuthorTableHelper.isTableRow(ro.sync.ecss.extensions.api.node.AuthorNode)

getTableCellElementNames

protected abstract String[] getTableCellElementNames()
Returns the possible local names of the elements that represents a table cell.

Returns:
The local names of the elements that represents a table cell. Not null.

getTableRowElementNames

protected abstract String[] getTableRowElementNames()
Return the possible local names of the elements that represent a table row.

Returns:
The local names of the elements that represent a table row.

getTableElementLocalName

protected abstract String[] getTableElementLocalName()
Returns the possible local names of the elements that represents a table.

Returns:
The local names of the elements that represents a table.

Oxygen XML Editor 11.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.