Class MapDataType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<DataType>

    public class MapDataType
    extends DataType
    Represents a map type.
    Author:
    vegardh
    See Also:
    Serialized Form
    • Constructor Detail

      • MapDataType

        public MapDataType​(DataType keyType,
                           DataType valueType,
                           int id)
    • Method Detail

      • createByReflection

        protected FieldValue createByReflection​(java.lang.Object arg)
        Description copied from class: DataType
        Creates a field value by reflection
        Overrides:
        createByReflection in class DataType
        Parameters:
        arg - the value of the newly created field value
        Returns:
        a fully constructed value
      • getKeyType

        public DataType getKeyType()
      • getValueType

        public DataType getValueType()
      • setKeyType

        public void setKeyType​(DataType keyType)
        Sets the key type of this MapDataType. WARNING! Do not use! Only to be used by config system!
      • setValueType

        public void setValueType​(DataType valueType)
        Sets the key type of this MapDataType. WARNING! Do not use! Only to be used by config system!
      • buildFieldPath

        public static FieldPath buildFieldPath​(java.lang.String remainFieldName,
                                               DataType keyType,
                                               DataType valueType)
      • buildFieldPath

        public FieldPath buildFieldPath​(java.lang.String remainFieldName)
        Description copied from class: DataType
        Creates a field path from the given field path string.
        Overrides:
        buildFieldPath in class DataType
        Parameters:
        remainFieldName - a string containing the field path
        Returns:
        Returns a valid field path, parsed from the string
      • isMultivalue

        public boolean isMultivalue()
        Description copied from class: DataType
        Returns whether this is a multivalue type, i.e either a CollectionDataType or a MapDataType
        Overrides:
        isMultivalue in class DataType