Class WeightedSetDataType

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

    public class WeightedSetDataType
    extends CollectionDataType
    Author:
    Einar M R Rosenvinge
    See Also:
    Serialized Form
    • Field Detail

      • classId

        public static int classId
    • Constructor Detail

      • WeightedSetDataType

        public WeightedSetDataType​(DataType nestedType,
                                   boolean createIfNonExistent,
                                   boolean removeIfZero)
      • WeightedSetDataType

        public WeightedSetDataType​(DataType nestedType,
                                   boolean createIfNonExistent,
                                   boolean removeIfZero,
                                   int id)
      • WeightedSetDataType

        public WeightedSetDataType​(java.lang.String typeName,
                                   int code,
                                   DataType nestedType,
                                   boolean createIfNonExistent,
                                   boolean removeIfZero)
    • Method Detail

      • setTag

        public void setTag​(boolean tag)
        Called by SD parser if a data type is explicitly tag.
        Parameters:
        tag - true if this is a tag set.
      • isTag

        public boolean isTag()
        Returns whether or not this is a tag type weighted set.
        Returns:
        true if this is a tag set.
      • createIfNonExistent

        public boolean createIfNonExistent()
        Returns true if this has the property createIfNonExistent (only relevant for weighted sets)
        Returns:
        createIfNonExistent property
      • removeIfZero

        public boolean removeIfZero()
        Returns true if this has the property removeIfZero (only relevant for weighted sets)
        Returns:
        removeIfZero property
      • 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