Class ConfigurationStandaloneContentUtil


  • public final class ConfigurationStandaloneContentUtil
    extends Object
    Helper methods for configuration standalone content.
    • Method Detail

      • getAllowedChildren

        public static List<MdObject> getAllowedChildren​(MdObject mdObject)
        Gets allowed children metadata objects that's actually for the specified metadata object.
        Parameters:
        mdObject - the metadata object, cannot be null
        Returns:
        the list of allowed metadata objects, never null
      • canSetPriority

        public static boolean canSetPriority​(MdObject mdObject)
        Gets a value that indicates whether the priority can be set for the specified mdObject metadata object.
        Parameters:
        mdObject - the metadata object, cannot be null
        Returns:
        true if can set priority; otherwise, false
      • hasStandaloneContent

        public static boolean hasStandaloneContent​(Configuration configuration)
        Checks an existence of configuration standalone content.
        Parameters:
        configuration - the configuration, cannot be null
        Returns:
        true if standalone content exist, false otherwise.
      • getStandaloneContent

        public static StandaloneContent getStandaloneContent​(Configuration configuration)
        Gets a configuration standalone content.
        Parameters:
        configuration - the configuration, cannot be null
        Returns:
        the standalone content of the specified configuration, never null