Class AutoTranslateMergeService.AutoTranslateProperty

  • Enclosing interface:
    AutoTranslateMergeService

    public static class AutoTranslateMergeService.AutoTranslateProperty
    extends Object
    Represents a translated property associated with a resource.
    • Field Detail

      • HTML_TAG_PATTERN

        protected static final Pattern HTML_TAG_PATTERN
        Matches an opening or closing HTML tag.
      • HTML_WHITESPACE_PATTERN

        protected static final Pattern HTML_WHITESPACE_PATTERN
        Several kinds of whitespace in HTML.
    • Method Detail

      • getPropertyPathInComponent

        public String getPropertyPathInComponent()
      • getPath

        public String getPath()
      • getComponentName

        public String getComponentName()
      • getComponentPath

        public String getComponentPath()
      • getComponentTitle

        public String getComponentTitle()
      • isCancelled

        public boolean isCancelled()
      • cancelledClass

        public String cancelledClass()
      • isProcessingNeeded

        public boolean isProcessingNeeded()
      • processingNeededClass

        public String processingNeededClass()
      • getDiffsHTML

        public String getDiffsHTML()
      • getDiffsSrcInsertionsMarked

        public String getDiffsSrcInsertionsMarked()
      • getDiffsDstInsertionsMarked

        public String getDiffsDstInsertionsMarked()
      • normalizeForDiff

        protected String normalizeForDiff​(String text)
        Remove stuff that makes trouble with diffs. Currently rel="noopener noreferrer"
      • wrapExcludingHTMLTags

        protected static String wrapExcludingHTMLTags​(@Nonnull
                                                      String text,
                                                      @Nonnull
                                                      String wrapstart,
                                                      @Nonnull
                                                      String wrapstop)
        We wrap the text into wrapstart and wrapstop. If there is an opening or closing HTML tag we do not wrap that but only the texts in between.
      • getPathInPage

        public String getPathInPage()
        Returns the path to the resource within the page - that is, after the jcr:content node.