Class Description.Builder

  • Enclosing class:
    Description

    public static class Description.Builder
    extends java.lang.Object
    Builder.
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
    • Method Detail

      • build

        public Description build()
        Builds a Description.
        Returns:
        the new Description instance
      • addAuthoritativeDefinitions

        public Description.Builder addAuthoritativeDefinitions​(ContractAuthoritativeDefinition authoritativeDefinitions)
        Adds a new element to authoritativeDefinitions.
        Parameters:
        authoritativeDefinitions - the new element to be added
        Returns:
        the Description builder
      • addCustomProperties

        public Description.Builder addCustomProperties​(ContractTemplateCustomProperty customProperties)
        Adds a new element to customProperties.
        Parameters:
        customProperties - the new element to be added
        Returns:
        the Description builder
      • purpose

        public Description.Builder purpose​(java.lang.String purpose)
        Set the purpose.
        Parameters:
        purpose - the purpose
        Returns:
        the Description builder
      • limitations

        public Description.Builder limitations​(java.lang.String limitations)
        Set the limitations.
        Parameters:
        limitations - the limitations
        Returns:
        the Description builder
      • usage

        public Description.Builder usage​(java.lang.String usage)
        Set the usage.
        Parameters:
        usage - the usage
        Returns:
        the Description builder
      • authoritativeDefinitions

        public Description.Builder authoritativeDefinitions​(java.util.List<ContractAuthoritativeDefinition> authoritativeDefinitions)
        Set the authoritativeDefinitions. Existing authoritativeDefinitions will be replaced.
        Parameters:
        authoritativeDefinitions - the authoritativeDefinitions
        Returns:
        the Description builder
      • customProperties

        public Description.Builder customProperties​(java.util.List<ContractTemplateCustomProperty> customProperties)
        Set the customProperties. Existing customProperties will be replaced.
        Parameters:
        customProperties - the customProperties
        Returns:
        the Description builder