|
Oxygen XML Editor 12.2 Author API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectro.sync.ecss.extensions.commons.id.DefaultUniqueAttributesRecognizer
public abstract class DefaultUniqueAttributesRecognizer
Default unique attributes recognizer
| Field Summary | |
|---|---|
protected AuthorAccess |
authorAccess
The author access |
protected java.lang.String |
idAttrQname
The ID attribute qname |
| Constructor Summary | |
|---|---|
DefaultUniqueAttributesRecognizer(java.lang.String idAttrQname)
Constructor. |
|
| Method Summary | |
|---|---|
void |
activated(AuthorAccess authorAccess)
Method called when the Author extension was activated. |
void |
assignUniqueIDs(int startOffset,
int endOffset,
boolean forceGeneration)
Assign unique IDs between a start and an end offset in the document |
boolean |
copyAttributeOnSplit(java.lang.String attrQName,
AuthorElement element)
Check if the attribute specified by QName can be considered as a valid attribute to copy when the element is split. |
void |
deactivated(AuthorAccess authorAccess)
Method called when the Author extension was deactivated. |
protected java.lang.String |
generateUniqueIDFor(java.lang.String idGenerationPattern,
AuthorElement element)
Generate an unique ID for an element |
protected abstract GenerateIDElementsInfo |
getDefaultOptions()
|
protected java.lang.String |
getGenerateIDAttributeQName(AuthorElement element,
java.lang.String[] elemsWithAutoGeneration,
boolean forceGeneration)
|
GenerateIDElementsInfo |
getGenerateIDElementsInfo()
|
boolean |
isAutoIDGenerationActive()
|
void |
process(ClipboardFragmentInformation fragmentInformation)
Process a fragment in the clipboard before inserting it in the document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ro.sync.ecss.extensions.api.Extension |
|---|
getDescription |
| Field Detail |
|---|
protected final java.lang.String idAttrQname
protected AuthorAccess authorAccess
| Constructor Detail |
|---|
public DefaultUniqueAttributesRecognizer(java.lang.String idAttrQname)
idAttrQname - The ID attribute qname| Method Detail |
|---|
public boolean copyAttributeOnSplit(java.lang.String attrQName,
AuthorElement element)
UniqueAttributesRecognizer
copyAttributeOnSplit in interface UniqueAttributesRecognizerattrQName - The attribute qualified nameelement - The element
UniqueAttributesRecognizer.copyAttributeOnSplit(java.lang.String, ro.sync.ecss.extensions.api.node.AuthorElement)public void activated(AuthorAccess authorAccess)
AuthorExtensionStateListenerAuthorMouseListener or AuthorListener
can be added at this point.
activated in interface AuthorExtensionStateListenerauthorAccess - The AuthorAccess of the Author page where the
listener was activated.AuthorExtensionStateListener.activated(ro.sync.ecss.extensions.api.AuthorAccess)public void deactivated(AuthorAccess authorAccess)
AuthorExtensionStateListener
deactivated in interface AuthorExtensionStateListenerauthorAccess - The AuthorAccess of the Author page where the
listener was deactivated.AuthorExtensionStateListener.deactivated(ro.sync.ecss.extensions.api.AuthorAccess)protected abstract GenerateIDElementsInfo getDefaultOptions()
public boolean isAutoIDGenerationActive()
isAutoIDGenerationActive in interface UniqueAttributesRecognizer
protected java.lang.String getGenerateIDAttributeQName(AuthorElement element,
java.lang.String[] elemsWithAutoGeneration,
boolean forceGeneration)
element - The current element.elemsWithAutoGeneration - The array of elements for which generation is activatedforceGeneration - Force ID generation if there is no selection.
protected java.lang.String generateUniqueIDFor(java.lang.String idGenerationPattern,
AuthorElement element)
idGenerationPattern - The pattern for id generation.element - The element
public void assignUniqueIDs(int startOffset,
int endOffset,
boolean forceGeneration)
UniqueAttributesRecognizer
assignUniqueIDs in interface UniqueAttributesRecognizerstartOffset - Start offsetendOffset - End offsetforceGeneration - If true, will generate even if the ID generation pattern list does not matchUniqueAttributesRecognizer.assignUniqueIDs(int, int, boolean)public GenerateIDElementsInfo getGenerateIDElementsInfo()
public void process(ClipboardFragmentInformation fragmentInformation)
ClipboardFragmentProcessor
process in interface ClipboardFragmentProcessorfragmentInformation - Information about a fragment in the clipboard.ClipboardFragmentProcessor.process(ro.sync.ecss.extensions.api.content.ClipboardFragmentInformation)
|
Oxygen XML Editor 12.2 Author API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||