Package com.atlassian.adf.model.node
Class AbstractListNode<L extends AbstractListNode<L>>
- java.lang.Object
-
- com.atlassian.adf.model.node.AbstractNode<C>
-
- com.atlassian.adf.model.node.AbstractContentNode<L,ListItem>
-
- com.atlassian.adf.model.node.AbstractListNode<L>
-
- Type Parameters:
L- the actual list type
- All Implemented Interfaces:
Element,Node,ContentNode<L,ListItem>,DocContent,LayoutColumnContent,ListItemContent,ListNode<L>,NonNestableBlockContent,PanelContent,TableCellContent
- Direct Known Subclasses:
BulletList,OrderedList
@Internal public abstract class AbstractListNode<L extends AbstractListNode<L>> extends AbstractContentNode<L,ListItem> implements ListNode<L>, DocContent, LayoutColumnContent, ListItemContent, NonNestableBlockContent, PanelContent, TableCellContent
Common parent of thebulletListandorderedListnode types.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.atlassian.adf.model.node.AbstractNode
AbstractNode.ToStringHelper
-
-
Field Summary
-
Fields inherited from class com.atlassian.adf.model.node.AbstractContentNode
content
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<ListItem>contentClass()ReturnsClass<N>, the class representing the type of items held by this node.protected voidcontentNodeValidate()Lli(ListItemContent content)Lli(ListItemContent... content)Lli(Iterable<? extends ListItemContent> content)Lli(String content)Lli(String... content)Lli(Stream<? extends ListItemContent> content)-
Methods inherited from class com.atlassian.adf.model.node.AbstractContentNode
addContent, addContentIfPresent, allNodes, appendContentNodeFields, appendNodeFields, appendPlainText, appendPlainTextContentJoinedWith, appendPlainTextInlineContent, clear, content, content, content, content, content, contentFieldMaps, contentNodeEquals, contentNodeHashCode, isEmpty, nodeEquals, nodeHashCode, parseContentItem, parseContentItems, parseOptionalContent, parseRequiredContent, parseRequiredContentAllowEmpty, removeIf, replaceContent, requireNotEmpty, transformContent, transformDescendants, trim, validate, validateContentItems, validateContentNodeForAppend
-
Methods inherited from class com.atlassian.adf.model.node.AbstractNode
doubleEq, doubleHash, equals, hashCode, isSupported, mapWithType, numberEq, numberHash, self, toPlainText, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.adf.model.node.type.ContentNode
allNodes, allNodesOfType, allNodesOfTypeAsList, clear, content, content, content, content, content, copy, isEmpty, removeIf, replaceContent, transformContent, transformDescendants
-
Methods inherited from interface com.atlassian.adf.model.Element
elementType, isSupported, toMap, validate
-
Methods inherited from interface com.atlassian.adf.model.node.Node
appendPlainText, toPlainText
-
-
-
-
Method Detail
-
contentClass
public Class<ListItem> contentClass()
Description copied from interface:ContentNodeReturnsClass<N>, the class representing the type of items held by this node.- Specified by:
contentClassin interfaceContentNode<L extends AbstractListNode<L>,ListItem>
-
li
public L li(String content)
- Specified by:
liin interfaceListNode<L extends AbstractListNode<L>>- Parameters:
content- the content to add as a single list item within the list- Returns:
this
-
li
public L li(String... content)
- Specified by:
liin interfaceListNode<L extends AbstractListNode<L>>- Parameters:
content- the content to add as a single list item within the list- Returns:
this
-
li
public L li(ListItemContent content)
- Specified by:
liin interfaceListNode<L extends AbstractListNode<L>>- Parameters:
content- the content to add as a single list item within the list- Returns:
this
-
li
public L li(ListItemContent... content)
- Specified by:
liin interfaceListNode<L extends AbstractListNode<L>>- Parameters:
content- the content to add as a single list item within the list- Returns:
this
-
li
public L li(Iterable<? extends ListItemContent> content)
- Specified by:
liin interfaceListNode<L extends AbstractListNode<L>>- Parameters:
content- the content to add as a single list item within the list- Returns:
this
-
li
public L li(Stream<? extends ListItemContent> content)
- Specified by:
liin interfaceListNode<L extends AbstractListNode<L>>- Parameters:
content- the content to add as a single list item within the list- Returns:
this
-
contentNodeValidate
protected void contentNodeValidate()
- Overrides:
contentNodeValidatein classAbstractContentNode<L extends AbstractListNode<L>,ListItem>
-
-