Package de.xima.fc.form.common.graph
Class TreeAccessorXItem
- java.lang.Object
-
- de.xima.fc.form.common.graph.TreeAccessorXItem
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<XItem>getChildren(XItem xItem)StringgetId(XItem xItem)static de.xima.cmn.graph.ITreeAccessor<XItem,String>ofChildMap(Map<String,? extends List<XItem>> childMap)Creates a new tree accessor for XItems using the given precomputed child map.static de.xima.cmn.graph.ITreeAccessor<XItem,String>ofXForm(IXForm xForm)Creates a new tree accessor for the XItems of the given form.static de.xima.cmn.graph.ITreeAccessor<XItem,String>ofXItems(Iterable<XItem> xItems)Creates a new tree accessor for the given XItems.
-
-
-
Method Detail
-
ofChildMap
public static de.xima.cmn.graph.ITreeAccessor<XItem,String> ofChildMap(Map<String,? extends List<XItem>> childMap)
Creates a new tree accessor for XItems using the given precomputed child map.- Parameters:
childMap- A map from theIDof an item to its children.- Returns:
- A tree accessor for XItems.
-
ofXForm
public static de.xima.cmn.graph.ITreeAccessor<XItem,String> ofXForm(IXForm xForm)
Creates a new tree accessor for the XItems of the given form.- Parameters:
xForm- A form with XItems.- Returns:
- A tree accessor for XItems.
-
-