Class TypedObjectRuleUtils


  • public final class TypedObjectRuleUtils
    extends Object
    The abstract implementation of IRule for metadata objects with type.
    • Constructor Detail

      • TypedObjectRuleUtils

        public TypedObjectRuleUtils()
    • Method Detail

      • isCompositeType

        public static boolean isCompositeType​(TypeDescription typeDescription)
        Check the type is composite.
        Parameters:
        typeDescription - the type description
        Returns:
        true if type is composite, false otherwise.
      • containsAnyType

        public static boolean containsAnyType​(TypeDescription typeDescription,
                                              String... types)
        Checks type description contains one of the types.
        Parameters:
        typeDescription - the type description
        types - сollection verifiable type names
        Returns:
        true if type contains one of the types, false otherwise.
      • containsAnyCategory

        public static boolean containsAnyCategory​(TypeDescription typeDescription,
                                                  String... categories)
        Checks type description contains type from one of categories.
        Parameters:
        typeDescription - the type description
        categories - verifiable category names
        Returns:
        true if type contains one of the categories, false otherwise.
      • containsRefType

        public static boolean containsRefType​(TypeDescription typeDescription)
        Check type is ref.
        Parameters:
        typeDescription - the type description
        Returns:
        true if type is ref, false otherwise.