Class AutoPageTranslateServiceImpl.PropertyToTranslate
- java.lang.Object
-
- com.composum.ai.aem.core.impl.autotranslate.AutoPageTranslateServiceImpl.PropertyToTranslate
-
- Enclosing class:
- AutoPageTranslateServiceImpl
protected static class AutoPageTranslateServiceImpl.PropertyToTranslate extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isAlreadyCorrectlyTranslated
True if the source value wasn't changed since the last translation - that is, the target value still has a correct translation and should not be modified.protected boolean
isCancelled
Whether the inheritance is cancelled for that property.protected String
propertyName
protected org.apache.sling.api.resource.Resource
sourceResource
The resource where we take the translation source from.protected org.apache.sling.api.resource.Resource
targetResource
The resource where we write the translation.
-
Constructor Summary
Constructors Modifier Constructor Description protected
PropertyToTranslate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSourceValue()
String
getTargetValue()
String
toString()
-
-
-
Field Detail
-
sourceResource
protected org.apache.sling.api.resource.Resource sourceResource
The resource where we take the translation source from. Can be thetargetResource
but also the source of a live copy.
-
targetResource
protected org.apache.sling.api.resource.Resource targetResource
The resource where we write the translation.
-
propertyName
protected String propertyName
-
isAlreadyCorrectlyTranslated
protected boolean isAlreadyCorrectlyTranslated
True if the source value wasn't changed since the last translation - that is, the target value still has a correct translation and should not be modified.
-
isCancelled
protected boolean isCancelled
Whether the inheritance is cancelled for that property. If it is it won't be changed, but might be used as context for the translation and the properties for the merge tool are set.
-
-