Class XMLTableContentProvider
java.lang.Object
com.webmethods.caf.faces.bean.PageFlowScopeAdapter
com.webmethods.caf.faces.data.object.ListTableContentProvider
com.webmethods.caf.faces.data.object.SelectableListTableContentProvider
com.webmethods.caf.faces.data.object.XMLTableContentProvider
- All Implemented Interfaces:
IPageFlowScopeAdapter
,IAddressableTableContentProvider
,IContentProvider
,IRefreshable
,IRefreshableContentProvider
,IReorderableTableContentProvider
,ISelectableTableContentProvider
,ISortableTableContentProvider
,ITableContentProvider
,IUpdateableContentProvider
,IUpdateableTableContentProvider
,Serializable
Table provider which displays a list of W3C DOM
Node
s.
If this provider is configured with a rows xpath expression
(see setRowsXpath(String)
), the xpath expression
should resolve to a list of elements to display.
If this provider is not configured with a rows xpath expression,
the child elements of the root node will be displayed.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.webmethods.caf.faces.data.object.SelectableListTableContentProvider
SelectableListTableContentProvider.Row, SelectableListTableContentProvider.RowComparator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Object[]
protected Map<String,
PropertyDescriptor> protected Node
protected String
Fields inherited from class com.webmethods.caf.faces.data.object.SelectableListTableContentProvider
m_autoIdCounter, m_map, m_originalList, m_selectableHelper
Fields inherited from class com.webmethods.caf.faces.data.object.ListTableContentProvider
m_array, m_canTemplateRow, m_index, m_list, m_onCreateRow, m_onDeleteRow, m_rowId, m_rowType, m_sort, m_templateRow, m_var
Fields inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
fExpireWithPageFlow
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new, uninitialized table content-provider.XMLTableContentProvider
(Node root) Creates a new table content-provider initialized with the specified root node.XMLTableContentProvider
(Node root, String rowsXpath) Creates a new table content-provider initialized with the specified root node, and an xpath expression to apply to the root node to produce a list of elements to display.XMLTableContentProvider
(Node root, String rowsXpath, String rowIdBinding, String rowVariable) Creates a new table content-provider initialized with the specified root node, an xpath expression to apply to the root node to produce a list of elements to display, and a value-binding expression to use to produce a unique id for each node (using the specified row variable to identify the current row in the value-binding expression). -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<String,
PropertyDescriptor> Returns map of bean property-names to bean property-descriptors for all of the bean's properties.getRoot()
Root node.Xpath expression to apply to the root node to produce a list of elements to display.Class<?>
Returns java type of the given propertyReturns value of the given propertyboolean
hasProperty
(Object propertyKey) Checks if the given property is supported by this content providerboolean
isReadOnly
(Object propertyKey) Returns true if the given property is readonly.void
Root node.void
setRowsXpath
(String rowsXpath) Xpath expression to apply to the root node to produce a list of elements to display.void
Sets new value of the given propertyMethods inherited from class com.webmethods.caf.faces.data.object.SelectableListTableContentProvider
createRow, deleteRow, getCurrentRow, getList, getNeedRefresh, getRowId, getRowSelectedCount, getRowSelectedIds, getRowUnselectedIds, getSelectedRows, getUseUnselectedModel, isAddressable, isAutoRefresh, isRowSelected, moveTo, refresh, setAutoRefresh, setCurrentRow, setList, setNeedRefresh, setRowById, setRowSelected, setRowSelectedIds, setRowUnselectedIds, setRowVariable, setTemplateRow, sort, supportsAutoRefresh, updateOriginalList
Methods inherited from class com.webmethods.caf.faces.data.object.ListTableContentProvider
calculateRowId, calculateRowId, getArray, getCanTemplateRow, getOnCreateRow, getOnCreateRowExpression, getOnDeleteRow, getOnDeleteRowExpression, getPropertyKeys, getRowCount, getRowIdBinding, getRowIdExpression, getRowIndex, getRowType, getRowVariable, getSort, isReorderable, isRowAvailable, isTemplateRow, newRow, setArray, setCanTemplateRow, setOnCreateRow, setOnCreateRowExpression, setOnDeleteRow, setOnDeleteRowExpression, setRowId, setRowIdBinding, setRowIdExpression, setRowIndex, setRowType, setSort, toString
Methods inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
getExpireWithPageFlow, setExpireWithPageFlow
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.webmethods.caf.faces.data.IContentProvider
getPropertyKeys, toString
Methods inherited from interface com.webmethods.caf.faces.data.ITableContentProvider
getRowCount, getRowIndex, getRowVariable, isRowAvailable, setRowIndex
-
Field Details
-
EMPTY_ARGS
-
m_descriptors
-
m_rowsXpath
-
m_root
-
-
Constructor Details
-
XMLTableContentProvider
public XMLTableContentProvider()Creates a new, uninitialized table content-provider. This provider must be initialized with a root node. -
XMLTableContentProvider
Creates a new table content-provider initialized with the specified root node. -
XMLTableContentProvider
Creates a new table content-provider initialized with the specified root node, and an xpath expression to apply to the root node to produce a list of elements to display. -
XMLTableContentProvider
public XMLTableContentProvider(Node root, String rowsXpath, String rowIdBinding, String rowVariable) Creates a new table content-provider initialized with the specified root node, an xpath expression to apply to the root node to produce a list of elements to display, and a value-binding expression to use to produce a unique id for each node (using the specified row variable to identify the current row in the value-binding expression).
-
-
Method Details
-
getType
Description copied from interface:IContentProvider
Returns java type of the given property- Specified by:
getType
in interfaceIContentProvider
- Overrides:
getType
in classListTableContentProvider
- Parameters:
propertyKey
- the property key of typeString
orInteger
- Returns:
- property java
Class
- Throws:
PropertyNotFoundException
- if property is not supported
-
getValue
Description copied from interface:IContentProvider
Returns value of the given property- Specified by:
getValue
in interfaceIContentProvider
- Overrides:
getValue
in classListTableContentProvider
- Parameters:
propertyKey
- the property key of typeString
orInteger
- Returns:
- value of the property, can be
null
- Throws:
PropertyNotFoundException
- if property is not supportedELException
-
hasProperty
Description copied from interface:IContentProvider
Checks if the given property is supported by this content provider- Specified by:
hasProperty
in interfaceIContentProvider
- Overrides:
hasProperty
in classListTableContentProvider
- Parameters:
propertyKey
- property key of typeString
orInteger
- Returns:
true
if property is supported
-
isReadOnly
Description copied from interface:IUpdateableContentProvider
Returns true if the given property is readonly. If it is readonly,
IUpdateableContentProvider.setValue(Object, Object)
will definitely fail.- Specified by:
isReadOnly
in interfaceIUpdateableContentProvider
- Overrides:
isReadOnly
in classListTableContentProvider
- Parameters:
propertyKey
- property key of typeString
orInteger
- Returns:
- true if the property is readonly
- Throws:
PropertyNotFoundException
ELException
-
setValue
public void setValue(Object propertyKey, Object value) throws ELException, PropertyNotFoundException Description copied from interface:IUpdateableContentProvider
Sets new value of the given property
- Specified by:
setValue
in interfaceIUpdateableContentProvider
- Overrides:
setValue
in classListTableContentProvider
- Parameters:
propertyKey
- property key of typeString
orInteger
value
- new property value- Throws:
PropertyNotFoundException
- if property is not foundELException
-
getRoot
Root node. -
setRoot
Root node. -
getRowsXpath
Xpath expression to apply to the root node to produce a list of elements to display. If null, the child elements of the root node will be displayed. -
setRowsXpath
Xpath expression to apply to the root node to produce a list of elements to display. If null, the child elements of the root node will be displayed. -
getPropertyDescriptors
Returns map of bean property-names to bean property-descriptors for all of the bean's properties.
-