Package ro.sync.ecss.extensions.api
Class TEIAuthorActionEventHandler
java.lang.Object
ro.sync.ecss.extensions.api.AuthorActionEventHandlerBase
ro.sync.ecss.extensions.api.DefaultAuthorActionEventHandler
ro.sync.ecss.extensions.api.TEIAuthorActionEventHandler
- All Implemented Interfaces:
AuthorActionEventHandler,Extension
@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public class TEIAuthorActionEventHandler
extends DefaultAuthorActionEventHandler
Author action event handler for TEI.
IMPORTANT, THIS CLASS SHOULD HAVE BEEN CREATED IN THE FRAMEWORK SPECIFIC PACKAGE.
BUT IT WAS NOT, TOO LATE, WE KEEP IT HERE FOR BACKWARD COMPATIBILITY
-
Nested Class Summary
Nested classes/interfaces inherited from interface ro.sync.ecss.extensions.api.AuthorActionEventHandler
AuthorActionEventHandler.AuthorActionEventType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanareCompatibleLists(AuthorNode node1, AuthorNode node2) Check if two given nodes are compatible lists (i.e.protected StringgetParagraphElement(AuthorAccess authorAccess) Get the preferred XML element content to be inserted.protected booleanisList(AuthorNode node) Check if the given node is a list.Methods inherited from class ro.sync.ecss.extensions.api.DefaultAuthorActionEventHandler
canHandleEvent, getContentCompletionActions, getDescription, getPreferredXMLElementContent, handleEvent, isMovableListItem, promote, promoteSubListItemsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ro.sync.ecss.extensions.api.AuthorActionEventHandler
canHandleEvent, getListItemAncestorToSplit
-
Constructor Details
-
TEIAuthorActionEventHandler
public TEIAuthorActionEventHandler()
-
-
Method Details
-
isList
Description copied from class:DefaultAuthorActionEventHandlerCheck if the given node is a list.- Overrides:
isListin classDefaultAuthorActionEventHandler- Parameters:
node- The node.- Returns:
trueif the node is a list.- See Also:
-
areCompatibleLists
Description copied from class:DefaultAuthorActionEventHandlerCheck if two given nodes are compatible lists (i.e. if we accept items from one list to migrate into the other one).- Overrides:
areCompatibleListsin classDefaultAuthorActionEventHandler- Returns:
trueif the two given nodes are compatible lists.- See Also:
-
getParagraphElement
Description copied from class:DefaultAuthorActionEventHandlerGet the preferred XML element content to be inserted. Can benull.- Overrides:
getParagraphElementin classDefaultAuthorActionEventHandler- Parameters:
authorAccess- The author access.- Returns:
- the preferred XML element content to be inserted.
-