Interface ContentObjectChildAccessor


public interface ContentObjectChildAccessor
Accessory to children of a content object.
Since:
9.4
API:
This is a public API.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    exists(String name)
    Checks if the content object with the given name exists.
    file(String name, String fileExtension)
    Returns a file content object with the given name and file extension.
    folder(String name)
    Returns a folder content object with the given name.
    get(String name)
    Returns the content object with the given name or empty if it does not exists.
    string(String name)
    Returns a string content object with the given name.
  • Method Details

    • get

      Returns the content object with the given name or empty if it does not exists.
      Parameters:
      name - content object name
      Returns:
      content object
      API:
      This public API is available in IvyScript and Java. It has the visibility NOVICE.
    • exists

      boolean exists(String name)
      Checks if the content object with the given name exists.
      Parameters:
      name - content object name
      Returns:
      true if it exists otherwise false
      API:
      This public API is available in IvyScript and Java. It has the visibility NOVICE.
    • string

      ContentObject string(String name)
      Returns a string content object with the given name. Creates a new content object if it does not exist.
      Parameters:
      name - content object name
      Returns:
      content object
      API:
      This public API is available in IvyScript and Java. It has the visibility NOVICE.
    • folder

      ContentObject folder(String name)
      Returns a folder content object with the given name. Creates a new content object if it does not exist.
      Parameters:
      name - content object name
      Returns:
      content object
      API:
      This public API is available in IvyScript and Java. It has the visibility NOVICE.
    • file

      ContentObject file(String name, String fileExtension)
      Returns a file content object with the given name and file extension. Creates a new content object if it does not exist.
      Parameters:
      name - content object name
      fileExtension - file extension
      Returns:
      content object
      API:
      This public API is available in IvyScript and Java. It has the visibility NOVICE.