Oxygen XML Editor 14.2 Author API

ro.sync.ecss.extensions.api
Interface UniqueAttributesProcessor

All Known Subinterfaces:
UniqueAttributesRecognizer
All Known Implementing Classes:
DefaultUniqueAttributesRecognizer, DITAUniqueAttributesRecognizer, Docbook4UniqueAttributesRecognizer, Docbook5UniqueAttributesRecognizer, TEIP4UniqueAttributesRecognizer, TEIP5UniqueAttributesRecognizer, XHTMLUniqueAttributesRecognizer

@API(type=EXTENDABLE,
     src=PUBLIC)
public interface UniqueAttributesProcessor

Identifies unique attributes like ID's.


Method Summary
 void assignUniqueIDs(int startOffset, int endOffset, boolean forceGeneration)
          Assigns unique IDs between a start and an end offset in the document.
 boolean copyAttributeOnSplit(java.lang.String attrQName, AuthorElement element)
          Checks if the attribute specified by QName can be considered as a valid attribute to copy when the element is split.
 

Method Detail

copyAttributeOnSplit

boolean copyAttributeOnSplit(java.lang.String attrQName,
                             AuthorElement element)
Checks 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)
Assigns unique IDs between a start and an end offset in the document.

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

Oxygen XML Editor 14.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2013. All rights reserved.