@API(type=INTERNAL, src=PUBLIC) public abstract class DocbookInsertListOperation extends InsertListOperation
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ITEMIZED_LIST
Itemized list constant.
|
static java.lang.String |
LIST_TYPE_ARGUMENT
Argument that controls the type of the list that will be inserted.
|
protected static java.lang.String |
ORDERED_LIST
Ordered list constant.
|
protected static java.lang.String |
PROCEDURE
Procedure constant.
|
protected static java.lang.String |
VARIABLE_LIST
Variable list constant.
|
authorAccess, listType, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT
Constructor and Description |
---|
DocbookInsertListOperation() |
Modifier and Type | Method and Description |
---|---|
ArgumentDescriptor[] |
getArguments() |
protected CommonsOperationsUtil.ConversionElementHelper |
getConversionElementsChecker()
Get the conversion element checker.
|
java.lang.String |
getDescription() |
protected java.lang.String |
getListTypeDescription(java.lang.String listType)
Obtain the name of every list type.
|
protected java.lang.StringBuilder |
getListXMLFragment(java.lang.String listType,
int numberOfListItems,
AuthorAccess authorAccess)
Get list XML fragment.
|
protected java.lang.String |
getParentListType(AuthorNode nodeAtOffset)
Get the type of the list in which the new list will be inserted.
|
protected java.lang.String |
getXMLFragment(AuthorAccess authorAccess,
java.lang.String listType,
java.lang.String parentListType)
Get XML fragment to be inserted when nothing is selected.
|
protected void |
insertContent(AuthorAccess authorAccess,
AuthorNode listNode,
java.util.List<CommonsOperationsUtil.SelectedFragmentInfo> selectedFragmentsInfos)
Insert content.
|
protected boolean |
isEmptyListElement(AuthorNode node)
Checks if the given node is an empty list element.
|
doOperation, getNamespace
protected static final java.lang.String ORDERED_LIST
protected static final java.lang.String ITEMIZED_LIST
protected static final java.lang.String VARIABLE_LIST
protected static final java.lang.String PROCEDURE
public static final java.lang.String LIST_TYPE_ARGUMENT
protected java.lang.StringBuilder getListXMLFragment(java.lang.String listType, int numberOfListItems, AuthorAccess authorAccess)
InsertListOperation
getListXMLFragment
in class InsertListOperation
listType
- The list type.numberOfListItems
- The number of list items.authorAccess
- The author access.InsertListOperation.getListXMLFragment(java.lang.String, int, ro.sync.ecss.extensions.api.AuthorAccess)
protected java.lang.String getXMLFragment(AuthorAccess authorAccess, java.lang.String listType, java.lang.String parentListType)
InsertListOperation
getXMLFragment
in class InsertListOperation
authorAccess
- The author access.listType
- The type of the list to be inserted.parentListType
- The type of the parent list, can be null
public ArgumentDescriptor[] getArguments()
ArgumentDescriptor
representing
the arguments this operation uses.AuthorOperation.getArguments()
public java.lang.String getDescription()
Extension.getDescription()
protected void insertContent(AuthorAccess authorAccess, AuthorNode listNode, java.util.List<CommonsOperationsUtil.SelectedFragmentInfo> selectedFragmentsInfos)
InsertListOperation
insertContent
in class InsertListOperation
authorAccess
- The author access.listNode
- The list node.selectedFragmentsInfos
- The fragments to be inserted.InsertListOperation.insertContent(ro.sync.ecss.extensions.api.AuthorAccess, ro.sync.ecss.extensions.api.node.AuthorNode, java.util.List)
protected CommonsOperationsUtil.ConversionElementHelper getConversionElementsChecker()
InsertListOperation
getConversionElementsChecker
in class InsertListOperation
InsertListOperation.getConversionElementsChecker()
protected java.lang.String getParentListType(AuthorNode nodeAtOffset)
InsertListOperation
null
.getParentListType
in class InsertListOperation
nodeAtOffset
- The node at offset.null
.InsertListOperation.getParentListType(ro.sync.ecss.extensions.api.node.AuthorNode)
protected boolean isEmptyListElement(AuthorNode node)
InsertListOperation
isEmptyListElement
in class InsertListOperation
node
- The node to check.true
if the given node is an empty list element, false
otherwise.InsertListOperation.isEmptyListElement(ro.sync.ecss.extensions.api.node.AuthorNode)
protected java.lang.String getListTypeDescription(java.lang.String listType)
InsertListOperation
getListTypeDescription
in class InsertListOperation
listType
- The list type.InsertListOperation.getListTypeDescription(java.lang.String)
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.