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

      • getPath

        public String getPath()
      • getComponentName

        public String getComponentName()
      • getComponentTitle

        public String getComponentTitle()
      • getOriginalCopyDiffsHTML

        public String getOriginalCopyDiffsHTML()
      • getOriginalCopyInsertionsMarked

        public String getOriginalCopyInsertionsMarked()
      • getNewOriginalCopyInsertionsMarked

        public String getNewOriginalCopyInsertionsMarked()
      • 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.