Class ContentPolicy

    • Constructor Detail

      • ContentPolicy

        public ContentPolicy()
    • Method Detail

      • addContentChild

        public void addContentChild​(java.lang.Object contentChild,
                                    int index)
        Creates and records operations to add the given contentChild to the host of this ContentPolicy at the specified index.
        Parameters:
        contentChild - The content Object that is to be added to the host of this ContentPolicy.
        index - The index of the new content child.
      • attachToContentAnchorage

        public void attachToContentAnchorage​(java.lang.Object contentAnchorage,
                                             java.lang.String role)
        Creates and records operations to attach the host of this ContentPolicy to the specified contentAnchorage under the specified role.
        Parameters:
        contentAnchorage - The content Object to which the host of this ContentPolicy is to be attached.
        role - The role for the attachment.
      • detachFromContentAnchorage

        public void detachFromContentAnchorage​(java.lang.Object contentAnchorage,
                                               java.lang.String role)
        Creates and records operations to detach the host of this ContentPolicy from the specified contentAnchorage under the specified role.
        Parameters:
        contentAnchorage - The content Object from which the getHost() of this ContentPolicy is detached.
        role - The role under which the anchorage is detached.
      • removeContentChild

        public void removeContentChild​(java.lang.Object contentChild)
        Creates and records operations to remove the given contentChild from the content children of the host of this ContentPolicy.
        Parameters:
        contentChild - The content Object that is removed from content children of the host of this ContentPolicy.