Oxygen XML Editor 11.2 Author API

ro.sync.ecss.extensions.api
Interface UniqueAttributesRecognizer

All Superinterfaces:
AuthorExtensionStateListener, Extension
All Known Implementing Classes:
DefaultUniqueAttributesRecognizer, DITAUniqueAttributesRecognizer, Docbook4UniqueAttributesRecognizer, Docbook5UniqueAttributesRecognizer, TEIP4UniqueAttributesRecognizer, TEIP5UniqueAttributesRecognizer, XHTMLUniqueAttributesRecognizer

public interface UniqueAttributesRecognizer
extends AuthorExtensionStateListener

Identifies unique attributes like ID's.


Method Summary
 void assignUniqueIDs(int startOffset, int endOffset, boolean forceGeneration)
          Assign unique IDs between a start and an end offset in the document
 boolean copyAttributeOnSplit(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.
 boolean isAutoIDGenerationActive()
           
 
Methods inherited from interface ro.sync.ecss.extensions.api.AuthorExtensionStateListener
activated, deactivated
 
Methods inherited from interface ro.sync.ecss.extensions.api.Extension
getDescription
 

Method Detail

copyAttributeOnSplit

boolean copyAttributeOnSplit(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.

Parameters:
attrQName - The attribute qualified name
element - The element
Returns:
true if the attribute should be copied when Split is performed.

assignUniqueIDs

void assignUniqueIDs(int startOffset,
                     int endOffset,
                     boolean forceGeneration)
Assign unique IDs between a start and an end offset in the document

Parameters:
startOffset - Start offset
endOffset - End offset
forceGeneration - If true, will generate even if the ID generation pattern list does not match

isAutoIDGenerationActive

boolean isAutoIDGenerationActive()
Returns:
true if auto

Oxygen XML Editor 11.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.