Class MetadataElement.MetadataType

java.lang.Object
io.goobi.viewer.model.metadata.MetadataElement.MetadataType
All Implemented Interfaces:
Serializable, Comparable<MetadataElement.MetadataType>
Enclosing class:
MetadataElement

public class MetadataElement.MetadataType extends Object implements Comparable<MetadataElement.MetadataType>, Serializable
Wrapper class for the metadata type numerical value. Needed only for retrieving the proper message key for each type...
See Also:
  • Constructor Details

    • MetadataType

      public MetadataType()
    • MetadataType

      public MetadataType(int type)
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(MetadataElement.MetadataType o)
      Specified by:
      compareTo in interface Comparable<MetadataElement.MetadataType>
    • getTabName

      public String getTabName(int viewIndex)
      Parameters:
      viewIndex - Metadata view index
      Returns:
      Message key for this tab
    • setTabName

      public void setTabName(String tabName)
    • getType

      public int getType()
      Returns:
      the type
    • setType

      public void setType(int type)
      Parameters:
      type - the type to set