public class ParagraphFragment extends Object implements Fragment
You can add InlineMacroFragment
s to this fragment as well as merge other paragraph fragments into it under certain conditions (see canMerge(ParagraphFragment)
.
Constructor and Description |
---|
ParagraphFragment(XMLEventFactory xmlEventFactory) |
ParagraphFragment(XMLEventReader xmlEventReader) |
Modifier and Type | Method and Description |
---|---|
void |
add(Fragment fragment)
Add a fragment to this paragraph fragment.
|
Set<Attribute> |
attributes() |
List<XMLEvent> |
bodyEvents() |
boolean |
canMerge(ParagraphFragment paragraphFragment)
True if the specified paragraph fragment can be merged into the current paragraph fragment.
|
List<XMLEvent> |
events() |
boolean |
isAutoCursorTarget() |
public ParagraphFragment(XMLEventFactory xmlEventFactory)
public ParagraphFragment(XMLEventReader xmlEventReader) throws XMLStreamException
XMLStreamException
public void add(Fragment fragment)
fragment
- the fragment to add.public boolean canMerge(ParagraphFragment paragraphFragment)
paragraphFragment
- the paragraph fragment to mergepublic List<XMLEvent> bodyEvents()
public boolean isAutoCursorTarget()
Copyright © 2003–2018 Atlassian. All rights reserved.