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 booleanisAlreadyCorrectlyTranslatedTrue 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 booleanisCancelledWhether the inheritance is cancelled for that property.protected StringpropertyNameprotected org.apache.sling.api.resource.ResourcesourceResourceThe resource where we take the translation source from.protected org.apache.sling.api.resource.ResourcetargetResourceThe resource where we write the translation.
-
Constructor Summary
Constructors Modifier Constructor Description protectedPropertyToTranslate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSourceValue()StringgetTargetValue()StringtoString()
-
-
-
Field Detail
-
sourceResource
protected org.apache.sling.api.resource.Resource sourceResource
The resource where we take the translation source from. Can be thetargetResourcebut 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.
-
-