Enum ContentsDataType

    • Method Detail

      • values

        public static ContentsDataType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ContentsDataType c : ContentsDataType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ContentsDataType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getName

        public String getName()
        Get the name
        Returns:
        name
      • fromName

        public static ContentsDataType fromName​(String name)
        Get the Data Type from the name
        Parameters:
        name - contents data type name
        Returns:
        contents data type or null
      • isType

        public static boolean isType​(String name)
        Determine if the type name is a registered data type
        Parameters:
        name - type name
        Returns:
        true if a core contents data type
        Since:
        4.0.0
      • fromCoreName

        public static ContentsDataType fromCoreName​(String name)
        Get the contents data type from a core type name
        Parameters:
        name - type name
        Returns:
        contents data type if core, null if not
        Since:
        4.0.0
      • isCoreType

        public static boolean isCoreType​(String name)
        Determine if the type name is a core contents data type
        Parameters:
        name - type name
        Returns:
        true if a core contents data type
        Since:
        4.0.0
      • setType

        public static void setType​(String name,
                                   ContentsDataType type)
        Set the type for the contents data type name
        Parameters:
        name - contents data type name
        type - contents data type
        Since:
        4.0.0
      • isType

        public static boolean isType​(String name,
                                     ContentsDataType type)
        Determine if the contents data type name is the type
        Parameters:
        name - contents data type name
        type - comparison contents data type
        Returns:
        true if matching core types
        Since:
        4.0.0
      • isType

        public static boolean isType​(String name,
                                     ContentsDataType type,
                                     boolean matchUnknown)
        Determine if the contents data type name is the type
        Parameters:
        name - contents data type name
        type - comparison contents data type
        matchUnknown - true to match unknown data types
        Returns:
        true if matching core types or matched unknown
        Since:
        4.0.0
      • isFeaturesType

        public static boolean isFeaturesType​(String name)
        Determine if the contents data type name is a features type
        Parameters:
        name - contents data type name
        Returns:
        true if a features type
        Since:
        4.0.0
      • isFeaturesType

        public static boolean isFeaturesType​(String name,
                                             boolean matchUnknown)
        Determine if the contents data type name is a features type
        Parameters:
        name - contents data type name
        matchUnknown - true to match unknown data types
        Returns:
        true if a features type or matched unknown
        Since:
        4.0.0
      • isTilesType

        public static boolean isTilesType​(String name)
        Determine if the contents data type name is a tiles type
        Parameters:
        name - contents data type name
        Returns:
        true if a tiles type
        Since:
        4.0.0
      • isTilesType

        public static boolean isTilesType​(String name,
                                          boolean matchUnknown)
        Determine if the contents data type name is a tiles type
        Parameters:
        name - contents data type name
        matchUnknown - true to match unknown data types
        Returns:
        true if a tiles type or matched unknown
        Since:
        4.0.0
      • isAttributesType

        public static boolean isAttributesType​(String name)
        Determine if the contents data type name is an attributes type
        Parameters:
        name - contents data type name
        Returns:
        true if an attributes type
        Since:
        4.0.0
      • isAttributesType

        public static boolean isAttributesType​(String name,
                                               boolean matchUnknown)
        Determine if the contents data type name is an attributes type
        Parameters:
        name - contents data type name
        matchUnknown - true to match unknown data types
        Returns:
        true if an attributes type or matched unknown
        Since:
        4.0.0