@Override public Map<String, Object> getParameters() { return ParamsMap.of( "format", formatPattern, "decimalSeparator", decimalSeparator, "groupingSeparator", groupingSeparator); }
ByQuery(FluentLoader<E, K> loader, String queryString) { Preconditions.checkNotEmptyString(queryString, "queryString is empty"); this.loader = loader; this.queryString = queryString; }
/** * Use this method to build map with unlimited count of pairs. * * @see #pair(String, Object) */ public static ParamsMap of() { return new ParamsMap(); }
@Override public void setDatatype(Datatype<V> datatype) { Preconditions.checkNotNullArgument(datatype); this.datatype = datatype; }
public Document parseDescriptor(String template) { checkNotNullArgument(template, "template is null"); Document document = Dom4j.readDocument(template); replaceAssignParameters(document); return document; }
public OptionWrapper(String caption, V value) { Preconditions.checkNotNullArgument(caption, "Caption should not be null"); Preconditions.checkNotNullArgument(value, "Value should not be null"); this.caption = caption; this.value = value; }
@Override public Map<String, Object> getParameters() { return ParamsMap.of("format", formatPattern); }
/** * Sets {@link Screens.LaunchMode} for the editor screen and returns the builder for chaining. * <p>For example: {@code builder.withLaunchMode(OpenMode.DIALOG).build();} */ public EditorBuilder<E> withLaunchMode(Screens.LaunchMode launchMode) { checkNotNullArgument(launchMode); this.launchMode = launchMode; return this; }
/** * Sets {@link Screens.LaunchMode} for the lookup screen and returns the builder for chaining. * <p>For example: {@code builder.withLaunchMode(OpenMode.DIALOG).build();} */ public LookupBuilder<E> withLaunchMode(Screens.LaunchMode launchMode) { checkNotNullArgument(launchMode); this.launchMode = launchMode; return this; }
/** * Creates an instance of ComponentGenerationContext. * * @param metaClass the entity for which the component is created * @param property the entity attribute for which the component is created */ public ComponentGenerationContext(MetaClass metaClass, String property) { checkNotNullArgument(metaClass); checkNotNullArgument(property); this.metaClass = metaClass; this.property = property; }
public WindowInfo(String id, WindowAttributesProvider windowAttributesProvider, Element descriptor, RouteDefinition routeDefinition) { checkNotNullArgument(id); checkNotNullArgument(descriptor); this.id = id; this.windowAttributesProvider = windowAttributesProvider; this.descriptor = descriptor; this.screenClassName = null; this.routeDefinition = routeDefinition; }
public WindowInfo(String id, WindowAttributesProvider windowAttributesProvider, String screenClassName, RouteDefinition routeDefinition) { checkNotNullArgument(id); checkNotNullArgument(screenClassName); this.id = id; this.windowAttributesProvider = windowAttributesProvider; this.screenClassName = screenClassName; this.descriptor = null; this.routeDefinition = routeDefinition; }
public HeaderEntry(String id, String caption, String type) { Preconditions.checkNotNullArgument(id); Preconditions.checkNotNullArgument(type); this.id = id; this.caption = caption; this.type = type; }
@Override public String getNextValueSql(String sequenceName) { Preconditions.checkNotNullArgument(sequenceName, "sequenceName is null"); return "update SYS_SEQUENCE set CURR_VALUE = last_insert_id(CURR_VALUE + INCREMENT) where NAME = '" + sequenceName + "' ^ select last_insert_id() - INCREMENT from SYS_SEQUENCE where NAME = '" + sequenceName +"'"; }
/** * Sets {@link OpenMode} for the lookup screen and returns the builder for chaining. * <p>For example: {@code builder.withOpenMode(OpenMode.DIALOG).build();} */ public LookupBuilder<E> withOpenMode(OpenMode openMode) { checkNotNullArgument(openMode); this.launchMode = openMode; return this; }
public void setBasePackages(List<String> basePackages) { Preconditions.checkNotNullArgument(basePackages); this.basePackages = basePackages; }
public LegacyCollectionDsValueSource(CollectionDatasource datasource) { checkNotNullArgument(datasource); this.datasource = datasource; }
public MapOptions(Map<String, I> options) { checkNotNullArgument(options); this.options = options; }
public Column(String id) { checkNotNullArgument(id); this.id = id; }
public FileDataProvider(FileDescriptor fileDescriptor) { checkNotNullArgument(fileDescriptor, "Null file descriptor"); this.fileDescriptor = fileDescriptor; }