@API(type=INTERNAL,
src=PUBLIC)
public class TEIInsertListOperation
extends InsertListOperation
authorAccess, LIST_TYPE_ARGUMENT, listType, SCHEMA_AWARE_ARGUMENT_DESCRIPTORNAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT| Constructor and Description |
|---|
TEIInsertListOperation() |
| 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 |
getNamespace()
Get namespace.
|
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.
|
doOperationprotected java.lang.StringBuilder getListXMLFragment(java.lang.String listType,
int numberOfListItems,
AuthorAccess authorAccess)
InsertListOperationgetListXMLFragment in class InsertListOperationlistType - The list type.numberOfListItems - The number of list items.authorAccess - The author access.protected java.lang.String getXMLFragment(AuthorAccess authorAccess, java.lang.String listType, java.lang.String parentListType)
InsertListOperationgetXMLFragment in class InsertListOperationauthorAccess - The author access.listType - The type of the list to be inserted.parentListType - The type of the parent list, can be nullInsertListOperation.getXMLFragment(ro.sync.ecss.extensions.api.AuthorAccess, java.lang.String, java.lang.String)protected java.lang.String getNamespace()
InsertListOperationgetNamespace in class InsertListOperationInsertListOperation.getNamespace()public ArgumentDescriptor[] getArguments()
ArgumentDescriptor representing
the arguments this operation uses.AuthorOperation.getArguments()protected void insertContent(AuthorAccess authorAccess, AuthorNode listNode, java.util.List<CommonsOperationsUtil.SelectedFragmentInfo> selectedFragmentsInfos)
InsertListOperationinsertContent in class InsertListOperationauthorAccess - 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)public java.lang.String getDescription()
Extension.getDescription()protected CommonsOperationsUtil.ConversionElementHelper getConversionElementsChecker()
InsertListOperationgetConversionElementsChecker in class InsertListOperationInsertListOperation.getConversionElementsChecker()protected java.lang.String getParentListType(AuthorNode nodeAtOffset)
InsertListOperationnull.getParentListType in class InsertListOperationnodeAtOffset - The node at offset.null.InsertListOperation.getParentListType(ro.sync.ecss.extensions.api.node.AuthorNode)protected boolean isEmptyListElement(AuthorNode node)
InsertListOperationisEmptyListElement in class InsertListOperationnode - 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)
InsertListOperationgetListTypeDescription in class InsertListOperationlistType - The list type.InsertListOperation.getListTypeDescription(java.lang.String)© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.