Class AbstractFoundationComponent

java.lang.Object
com.adobe.cq.testing.client.components.AbstractComponent
com.adobe.cq.testing.client.components.foundation.AbstractFoundationComponent
Direct Known Subclasses:
AdaptiveImage, Carousel, Chart, ColCtrl, Download, External, Flash, Image, LayoutContainer, List, ParSys, Reference, Search, Sitemap, Slideshow, Table, Text, TextImage, Title

public abstract class AbstractFoundationComponent extends AbstractComponent
Base class for all Foundation Component wrapping objects. Foundation components can be found at /libs/foundation/components in the CQ repository.

The subclasses provide methods to manipulate the according component but does not store or cache any component data to avoid inconsistencies. The only information stored with the client is path info.
  • Constructor Details

    • AbstractFoundationComponent

      public AbstractFoundationComponent(ComponentClient client, String pagePath, String location, String nameHint)
      The constructor stores all the component path information like parentPage, name etc.
      Parameters:
      client - The ComponentClient that will be used for sending the requests.
      pagePath - path to the page that will contain the component.
      location - relative location to the parent node inside the page that will contain the component node.
      nameHint - name to be used for the component node. Might get altered by the server if a naming conflict occurs. The AbstractComponent.getName() method will return the correct name after (String,int...) has been called.