Class AutoTranslateMergeService.AutoTranslateProperty
- java.lang.Object
-
- com.composum.ai.aem.core.impl.autotranslate.AutoTranslateMergeService.AutoTranslateProperty
-
- Enclosing interface:
- AutoTranslateMergeService
public static class AutoTranslateMergeService.AutoTranslateProperty extends Object
Represents a translated property associated with a resource.
-
-
Field Summary
Fields Modifier and Type Field Description protected static Pattern
HTML_TAG_PATTERN
Matches an opening or closing HTML tag.protected static Pattern
HTML_WHITESPACE_PATTERN
Several kinds of whitespace in HTML.
-
Constructor Summary
Constructors Constructor Description AutoTranslateProperty(String path, AITranslatePropertyWrapper wrapper, String componentName, String componentTitle)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getComponentName()
String
getComponentTitle()
String
getNewOriginalCopyInsertionsMarked()
String
getOriginalCopyDiffsHTML()
String
getOriginalCopyInsertionsMarked()
String
getPath()
String
getPathInPage()
Returns the path to the resource within the page - that is, after the jcr:content node.AITranslatePropertyWrapper
getWrapper()
String
toString()
protected static String
wrapExcludingHTMLTags(String text, String wrapstart, String wrapstop)
We wrap the text into wrapstart and wrapstop.
-
-
-
Constructor Detail
-
AutoTranslateProperty
public AutoTranslateProperty(String path, AITranslatePropertyWrapper wrapper, String componentName, String componentTitle)
-
-
Method Detail
-
getPath
public String getPath()
-
getComponentName
public String getComponentName()
-
getComponentTitle
public String getComponentTitle()
-
getWrapper
public AITranslatePropertyWrapper getWrapper()
-
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.
-
-