/** * Default constructor. * * @param rootDir the root directory within which the resources are stored. */ public DirectoryStreamHandler(final File rootDir) { Arg.checkNotNull("rootDir", rootDir); this.rootDir = rootDir; }
/** * Default constructor. * * @param classLoader the class loader to load the directory listings. * @throws NullPointerException if {@code classLoader} is <code>null</code>. */ public ClassPathDirectoryListing(final ClassLoader classLoader) throws NullPointerException { this(new ClassPathContext(classLoader, null)); }
/** * Sets the name of the configuration table. * * @param table the name of the configuration table. * @throws NullPointerException if {@code table} is <code>null</code>. * @throws IllegalArgumentException if {@code table} is blank. */ public final void setTable(final String table) throws NullPointerException, IllegalArgumentException { this.table = Arg.checkNotBlank("table", table); }
private void checkArguments(final MavenSettings settings, final MavenPom pom) throws NullArgumentException { Arguments.checkNotNull("settings", settings); Arguments.checkNotNull("pom", pom); }
/** * Default constructor. * * @param name the name of the tenant. Must not be blank, but may be * <code>null</code>. * @throws IllegalArgumentException if {@code name} is blank. */ public TenantId(final String name) throws IllegalArgumentException { this.name = Arg.checkNotBlankExceptNull("name", name); }
/** * Default constructor. * * @param element the annotated element whose Javadoc comment is to be parsed. * @throws NullPointerException if {@code element} is <code>null</code>. */ public InlineJavadocTags(final JavaAnnotatedElement element) throws NullPointerException { this.element = Arg.checkNotNull("element", element); }
/** * Sets the name of the property name column. * * @param nameColumn the name of the property name column. * @throws NullPointerException if {@code nameColumn} is <code>null</code>. * @throws IllegalArgumentException if {@code nameColumn} is blank. */ public final void setNameColumn(final String nameColumn) throws NullPointerException, IllegalArgumentException { this.nameColumn = Arg.checkNotBlank("nameColumn", nameColumn); }
/** * Default constructor. * * @param dataSource the data source proxy. * @throws NullPointerException if {@code dataSource} is <code>null</code>. */ public HSqlJndiDataSourceProxy(final JndiDataSourceProxy dataSource) throws NullPointerException { this.dataSource = Arg.checkNotNull("dataSource", dataSource); }
/** * Sets the name of the property value column. * * @param valueColumn the name of the property value column. * @throws NullPointerException if {@code valueColumn} is <code>null</code>. * @throws IllegalArgumentException if {@code valueColumn} is blank. */ public final void setValueColumn(final String valueColumn) throws NullPointerException, IllegalArgumentException { this.valueColumn = Arg.checkNotBlank("valueColumn", valueColumn); }
/** * Default constructor. * * @param context the context to load the directory listings. * @throws NullPointerException if {@code classLoader} is <code>null</code>. */ public ClassPathDirectoryListing(final ClassPathContext context) throws NullPointerException { Arg.checkNotNull("context", context); this.context = context; }
/** * Sets the name of the property value column. * * @param valueColumn the name of the property value column. * @throws NullPointerException if {@code valueColumn} is <code>null</code>. * @throws IllegalArgumentException if {@code valueColumn} is blank. */ public void setValueColumn(final String valueColumn) throws NullPointerException, IllegalArgumentException { this.valueColumn = Arg.checkNotBlank("valueColumn", valueColumn); }
/** * Sets the type of the property value. Must not be <code>null</code>. * * @param type the type of the property value. * @return the builder instance. * @throws NullPointerException if {@code type} is <code>null</code>. */ public Builder with(final PropertyType type) throws NullPointerException { this.type = Arg.checkNotNull("type", type); return this; }
/** * Default constructor. * * @param serviceName the name of the service to log for. * @throws NullPointerException if {@code serviceName} is <code>null</code>. * @throws IllegalArgumentException if {@code serviceName} is blank. */ public Factory(final String serviceName) throws NullPointerException, IllegalArgumentException { this.serviceName = Arg.checkNotBlank("serviceName", serviceName); }
/** * Sets the use type of the property. * * @param useType the use type of the property. * @return the builder instance. * @throws NullPointerException if {@code useType} is <code>null</code>. */ public Builder with(final UseType useType) throws NullPointerException { this.useType = Arg.checkNotNull("useType", useType); return this; }
/** * Sets the name of the configuration table. * * @param table the name of the configuration table. * @throws NullPointerException if {@code table} is <code>null</code>. * @throws IllegalArgumentException if {@code table} is blank. */ public void setTable(final String table) throws NullPointerException, IllegalArgumentException { this.table = Arg.checkNotBlank("table", table); }
/** * Sets the context of the property descriptor. * * @param context the context of the property descriptor. * @return the builder instance. * @throws NullPointerException if {@code context} is <code>null</code>. */ public Builder with(final PropertyContextProvider context) throws NullPointerException { this.context = Arg.checkNotNull("context", context); return this; }
/** * Default constructor. * * @param message the message to prepend to the message if throwables have * been collected. * @throws IllegalArgumentException if message is blank. */ public ArgumentChecker(final String message) throws IllegalArgumentException { Arg.checkNotBlank("message", message); this.message = message; }
/** * Sets the categories the property is associated with. * * @param categories the categories the property is associated with. * @return the builder instance. * @throws NullPointerException if {@code categories} is <code>null</code>. */ public Builder with(final PropertyCategories categories) throws NullPointerException { this.categories = Arg.checkNotNull("categories", categories); return this; }
/** * Sets the proxy to provide access to a data source. * * @param dataSourceProxy the proxy to provide access to a data source. * @throws NullPointerException of {@code dataSourceProxy} is * <code>null</code>. */ public final void setDataSourceProxy(final DataSourceProxy dataSourceProxy) throws NullPointerException { this.dataSourceProxy = Arg.checkNotNull("dataSourceProxy", dataSourceProxy); }
/** * Default constructor. * * @param context the context to load the directory listings. * @throws NullPointerException if {@code classLoader} is <code>null</code>. */ public ClassPathDirectoryListing(final ClassPathContext context) throws NullPointerException { Arg.checkNotNull("context", context); this.context = context; }