Class AbstractComponentImpl
- java.lang.Object
-
- com.adobe.cq.wcm.core.components.util.AbstractComponentImpl
-
- All Implemented Interfaces:
ComponentExporter,Component
@ConsumerType public abstract class AbstractComponentImpl extends java.lang.Object implements Component
Abstract class that can be used as a base class forComponentimplementations.
-
-
Constructor Summary
Constructors Constructor Description AbstractComponentImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.lang.StringgetAppliedCssClasses()@Nullable ComponentDatagetData()@NotNull java.lang.StringgetExportedType()Returns the type of the resource for which the export is performed.@NotNull java.lang.StringgetId()Returns the HTML id of the the component's root element
-
-
-
Method Detail
-
getId
@NotNull public @NotNull java.lang.String getId()
Description copied from interface:ComponentReturns the HTML id of the the component's root element
-
getExportedType
@NotNull public @NotNull java.lang.String getExportedType()
Description copied from interface:ComponentExporterReturns the type of the resource for which the export is performed.
NOTE: methods whose JSON serialization would lead to the same JSON property name (":type") will not be serialized.
- Specified by:
getExportedTypein interfaceComponent- Specified by:
getExportedTypein interfaceComponentExporter- Returns:
- the type of the component
- See Also:
ComponentExporter.getExportedType()
-
getData
@Nullable public @Nullable ComponentData getData()
-
getAppliedCssClasses
@Nullable public @Nullable java.lang.String getAppliedCssClasses()
- Specified by:
getAppliedCssClassesin interfaceComponent- Returns:
- The component styles/css class names
-
-