Class ContentStyleTemplate


public class ContentStyleTemplate extends ElementTemplate
This template can be used to initialize a content style definition.
Since:
6.0
Author:
O. Kerpershoek
  • Constructor Details

  • Method Details

    • setIsRestricted

      public void setIsRestricted(boolean isRestricted)
      This method sets a boolean indicating if the content style restricts the type of child styles that are allowed.
      Parameters:
      isRestricted - not restricted means the array of valid children is ignored.
    • isRestricted

      protected boolean isRestricted()
    • setIsDefault

      public void setIsDefault(boolean isDefault)
    • isDefaultTemplate

      protected boolean isDefaultTemplate()
    • addChild

      public void addChild(String name)
      This method may be used to add a child style to this content style.
      Parameters:
      name - The name of the child style that is allowed as content of this style.
    • getChildren

      protected List<String> getChildren()
    • toDataSource

      public com.aquima.interactions.composer.ds.IContentStyleDS toDataSource()
      This method converts the template to a data source that can be used to initialize a content style definition.
      Returns:
      a data source that can be used to initialize a content style definition.