All Implemented Interfaces:
Serializable

public class CollectionDef extends AttributeTypeDef
CollectionDef supports the definition of a collection type. This information about the generic collection type is managed in the CollectionDefCategory. It is instantiated with specific primitive types when it is linked to a specific TypeDefAttribute.
See Also:
  • Constructor Details

    • CollectionDef

      public CollectionDef()
      Default constructor for Jackson (JSON parsing)
    • CollectionDef

      public CollectionDef(CollectionDefCategory collectionDefCategory)
      Typical constructor initializes the CollectionDef based on the supplied category.
      Parameters:
      collectionDefCategory - CollectionDefCategory Enum
    • CollectionDef

      public CollectionDef(CollectionDef template)
      Copy/clone constructor creates a copy of the supplied template.
      Parameters:
      template - CollectionDef to copy
  • Method Details

    • cloneFromSubclass

      public AttributeTypeDef cloneFromSubclass()
      Delegate the process of cloning to the subclass.
      Specified by:
      cloneFromSubclass in class AttributeTypeDef
      Returns:
      subclass of AttributeTypeDef
    • getCollectionDefCategory

      public CollectionDefCategory getCollectionDefCategory()
      Return the type category for this collection type.
      Returns:
      CollectionDefCategory Enum
    • setCollectionDefCategory

      public void setCollectionDefCategory(CollectionDefCategory collectionDefCategory)
      Set up the elements category.
      Parameters:
      collectionDefCategory - value to use
    • getArgumentCount

      public int getArgumentCount()
      Return the number of arguments needed to set up the collection type name.
      Returns:
      int count
    • setArgumentCount

      public void setArgumentCount(int argumentCount)
      Set upi the number of arguments needed to set upi the collection type name.
      Parameters:
      argumentCount - int count
    • getArgumentTypes

      public List<PrimitiveDefCategory> getArgumentTypes()
      Return the list of argument types set up for this collection.
      Returns:
      list of argument type
    • setArgumentTypes

      public void setArgumentTypes(List<PrimitiveDefCategory> argumentTypes)
      Set up the list of argument types.
      Parameters:
      argumentTypes - list of argument types
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class AttributeTypeDef
      Returns:
      JSON style description of variables.
    • equals

      public boolean equals(Object objectToCompare)
      Validate that an object is equal depending on their stored values.
      Overrides:
      equals in class AttributeTypeDef
      Parameters:
      objectToCompare - object
      Returns:
      boolean result
    • hashCode

      public int hashCode()
      Return a hash code based on the values of this object.
      Overrides:
      hashCode in class AttributeTypeDef
      Returns:
      in hash code