/** * Creates a builder for {@link PropertyAttributeDefinition}. * * @param name the name of the attribute * @param type the attribute type * @param allowNull {@code true} if {@code null} is allowed, otherwise {@code false} * * @return a builder */ public static Builder of(final String name, final ModelType type, final boolean allowNull) { return new Builder(name, type).setRequired(!allowNull); }
/** * Creates a builder for {@link PropertyAttributeDefinition}. * * @param name the name of the attribute * @param type the attribute type * * @return a builder */ public static Builder of(final String name, final ModelType type) { return new Builder(name, type); }
/** * Creates a builder for {@link PropertyAttributeDefinition}. * * @param name the name of the attribute * @param type the attribute type * @param allowNull {@code true} if {@code null} is allowed, otherwise {@code false} * * @return a builder */ public static Builder of(final String name, final ModelType type, final boolean allowNull) { return new Builder(name, type).setRequired(!allowNull); }
/** * Creates a builder for {@link PropertyAttributeDefinition}. * * @param name the name of the attribute * @param type the attribute type * * @return a builder */ public static Builder of(final String name, final ModelType type) { return new Builder(name, type); }
/** * Creates a builder for {@link PropertyAttributeDefinition}. * * @param name the name of the attribute * @param type the attribute type * @param allowNull {@code true} if {@code null} is allowed, otherwise {@code false} * * @return a builder */ public static Builder of(final String name, final ModelType type, final boolean allowNull) { return new Builder(name, type).setAllowNull(allowNull); }
/** * Creates a builder for {@link PropertyAttributeDefinition}. * * @param name the name of the attribute * @param type the attribute type * * @return a builder */ public static Builder of(final String name, final ModelType type) { return new Builder(name, type); }