Interface UniqueAttributesProcessor

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

@API(type=EXTENDABLE, src=PUBLIC) public interface UniqueAttributesProcessor
Identifies unique attributes like ID's.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    assignUniqueIDs(int startOffset, int endOffset, boolean forceGeneration)
    Assigns unique IDs between a start and an end offset in the document.
    boolean
    Checks if the attribute specified by QName can be considered as a valid attribute to copy when the element is split.
  • Method Details

    • copyAttributeOnSplit

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