java.lang.Object
com.genologics.ri.userdefined.UDT
All Implemented Interfaces:
UDFHolder, Serializable

public class UDT extends Object implements UDFHolder, Serializable
Type is the name and user-defined fields of a user-defined type.
See Also:
  • Field Details

    • fields

      protected List<UDF> fields
      The list of user-defined fields in this type.
    • name

      protected String name
      The name of the user-defined type.
  • Constructor Details

    • UDT

      public UDT()
      Default constructor.
    • UDT

      public UDT(String name)
      Constructor with name.
      Parameters:
      name - The name of the user-defined type.
  • Method Details

    • getFields

      public List<UDF> getFields()
      Gets the list of fields in this user-defined type.
      Returns:
      The list of UDF fields.
    • getUserDefinedFields

      public List<UDF> getUserDefinedFields()
      Replicates getFields but allows the UDT to be used by the UDF static helper methods.
      Specified by:
      getUserDefinedFields in interface UDFHolder
      Returns:
      A list of UDFs on this type.
    • addField

      public UDF addField(UDF udf)
      Adds a UDF to this user-defined type.
      Parameters:
      udf - The UDF to add.
      Returns:
      The added UDF.
    • addField

      public UDF addField(String name, FieldType type, String value)
      Adds a UDF to this user-defined type.
      Parameters:
      name - The name of the field.
      type - The type of the field.
      value - The value of the field.
      Returns:
      The added UDF.
    • getName

      public String getName()
      Gets the name of the user-defined type.
      Returns:
      The name of the user-defined type.
    • setName

      public void setName(String value)
      Sets the name of the user-defined type.
      Parameters:
      value - The name to set.