Class DublinCoreMetadata


  • public class DublinCoreMetadata
    extends Object
    Dublin Core Metadata Initiative
    Since:
    3.0.1
    Author:
    osbornb
    • Constructor Detail

      • DublinCoreMetadata

        public DublinCoreMetadata()
    • Method Detail

      • hasColumn

        public static boolean hasColumn​(UserTable<?> table,
                                        DublinCoreType type)
        Check if the table has a column for the Dublin Core Type term
        Parameters:
        table - user table
        type - Dublin Core Type
        Returns:
        true if has column
      • hasColumn

        public static boolean hasColumn​(UserCoreRow<?,​?> row,
                                        DublinCoreType type)
        Check if the row has a column for the Dublin Core Type term
        Parameters:
        row - user row
        type - Dublin Core Type
        Returns:
        true if has column
      • getColumn

        public static <T extends UserColumn> T getColumn​(UserTable<T> table,
                                                         DublinCoreType type)
        Get the column from the table for the Dublin Core Type term
        Type Parameters:
        T - column type
        Parameters:
        table - user table
        type - Dublin Core Type
        Returns:
        column
      • getColumn

        public static <T extends UserColumn> T getColumn​(UserCoreRow<T,​?> row,
                                                         DublinCoreType type)
        Get the column from the row for the Dublin Core Type term
        Type Parameters:
        T - column type
        Parameters:
        row - user row
        type - Dublin Core Type
        Returns:
        column
      • getValue

        public static Object getValue​(UserCoreRow<?,​?> row,
                                      DublinCoreType type)
        Get the value from the row for the Dublin Core Type term
        Parameters:
        row - user row
        type - Dublin Core Type
        Returns:
        value
      • setValue

        public static void setValue​(UserCoreRow<?,​?> row,
                                    DublinCoreType type,
                                    Object value)
        Set the value in the row for the Dublin Core Type term
        Parameters:
        row - user row
        type - Dublin Core Type
        value - value