Class OpenMetadataCollectionDef


public class OpenMetadataCollectionDef extends OpenMetadataAttributeTypeDef
OpenMetadataCollectionDef supports the definition of a collection type. This information about the generic collection type is managed in the OpenMetadataCollectionDefCategory. It is instantiated with specific primitive types when it is linked to a specific OpenMetadataTypeDefAttribute.
  • Constructor Details

    • OpenMetadataCollectionDef

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

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

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

    • cloneFromSubclass

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

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

      public void setCollectionDefCategory(OpenMetadataCollectionDefCategory 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<OpenMetadataPrimitiveDefCategory> getArgumentTypes()
      Return the list of argument types set up for this collection.
      Returns:
      list of argument type
    • setArgumentTypes

      public void setArgumentTypes(List<OpenMetadataPrimitiveDefCategory> 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 OpenMetadataAttributeTypeDef
      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 OpenMetadataAttributeTypeDef
      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 OpenMetadataAttributeTypeDef
      Returns:
      in hash code