Class ContractSchema.Builder

  • Enclosing class:
    ContractSchema

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

      • Builder

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

      • build

        public ContractSchema build()
        Builds a ContractSchema.
        Returns:
        the new ContractSchema instance
      • addXProperties

        public ContractSchema.Builder addXProperties​(ContractSchemaProperty xProperties)
        Adds a new element to xProperties.
        Parameters:
        xProperties - the new element to be added
        Returns:
        the ContractSchema builder
      • name

        public ContractSchema.Builder name​(java.lang.String name)
        Set the name.
        Parameters:
        name - the name
        Returns:
        the ContractSchema builder
      • description

        public ContractSchema.Builder description​(java.lang.String description)
        Set the description.
        Parameters:
        description - the description
        Returns:
        the ContractSchema builder
      • physicalType

        public ContractSchema.Builder physicalType​(java.lang.String physicalType)
        Set the physicalType.
        Parameters:
        physicalType - the physicalType
        Returns:
        the ContractSchema builder
      • xProperties

        public ContractSchema.Builder xProperties​(java.util.List<ContractSchemaProperty> xProperties)
        Set the xProperties. Existing xProperties will be replaced.
        Parameters:
        xProperties - the xProperties
        Returns:
        the ContractSchema builder