/** * 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); }
/** * Default constructor. * * @param propertySet the name of the set the property belongs to. * @param name the name of the property. * @throws IllegalArgumentException if {@code propertySet} is blank but not * <code>null</code> or if {@code name} is blank. */ public PropertyKey(final String propertySet, final String name) throws IllegalArgumentException { this.propertySet = Arg.checkNotBlankExceptNull("propertySet", propertySet); this.name = Arg.checkNotBlank("name", name); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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 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); }
/** * 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; }
/** * Default constructor. * * @param prefix the prefix of a group ID that has to be matched by a * dependency to be accepted. * @throws IllegalArgumentException if {@code prefix} is blank. */ public GroupPrefixFilter(final String prefix) throws IllegalArgumentException { this.prefix = Arg.checkNotBlank("prefix", prefix); }
/** * 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 void setNameColumn(final String nameColumn) throws NullPointerException, IllegalArgumentException { this.nameColumn = Arg.checkNotBlank("nameColumn", nameColumn); }
private PropertyMetaDataDefaults(final String space, final String name, final String title) throws NullPointerException { this.space = Arg.checkNotBlank("space", space); this.name = name; this.title = title; }
/** * Default constructor. * * @param name the name identifier of the document. * @throws NullPointerException if {@code name} is <code>null</code>. * @throws IllegalArgumentException if {@code name} is blank. */ public DocumentName(final String name) throws NullPointerException, IllegalArgumentException { this.name = Arg.checkNotBlank("name", name); }
/** * Sets the name of the optional configuration key column. * * @param configColumn the name of the optional configuration key column. * @throws NullPointerException if {@code configColumn} is <code>null</code> * . * @throws IllegalArgumentException if {@code configColumn} is blank. */ public final void setConfigColumn(final String configColumn) throws NullPointerException, IllegalArgumentException { this.configColumn = Arg.checkNotBlank("configColumn", configColumn); }
/** * Sets the name of the optional configuration key column. * * @param configColumn the name of the optional configuration key column. * @throws NullPointerException if {@code configColumn} is <code>null</code> * . * @throws IllegalArgumentException if {@code configColumn} is blank. */ public void setConfigColumn(final String configColumn) throws NullPointerException, IllegalArgumentException { this.configColumn = Arg.checkNotBlank("configColumn", configColumn); }
/** * Default constructor. * * @param applicationId the identifier of the application archive that * contains the property. * @param path the identifier of the property location within the application. * @throws IllegalArgumentException if {@code path} is <code>null</code>. */ public PropertyLocation(final ApplicationId applicationId, final String path) throws IllegalArgumentException { this.applicationId = applicationId; this.path = Arg.checkNotBlank("path", path); }
/** * Default constructor. * * @param elementName the name of the element that defines the exception code. * @param lineNumber the line number where the exception code declaration * begins. * @throws BlankArgumentException if {@code elementName} is blank. */ public SourceInfo(final String elementName, final int lineNumber) throws BlankArgumentException { this.elementName = Arg.checkNotBlank("elementName", elementName); this.lineNumber = lineNumber; }
/** * Sets the URL to the home page of the project. * * @param homePageUrl the URL to the home page of the project. * @return a reference to the builder. * @throws NullPointerException if {@code homePageUrl} is <code>null</code>. * @throws IllegalArgumentException if {@code homePageUrl} is blank. */ public Builder withHomePageUrl(final String homePageUrl) throws NullPointerException, IllegalArgumentException { this.homePageUrl = normalizeUrl(Arg.checkNotBlank("homePageUrl", homePageUrl)); return this; }
/** * Checks if the given alias is registered. * * @param alias the alias to check. * @throws BlankArgumentException if {@code alias} is blank. * @return <code>true</code> if the alias is known to the system, * <code>false</code> otherwise. */ public boolean has(final String alias) throws BlankArgumentException { Arg.checkNotBlank("alias", alias); return aliasMapping.containsKey(alias); }
/** * Default constructor. * * @param properties the properties containing jndiName, dropTable and * createTable. */ DataSourceConfiguration(final Properties properties) { this(Arg.checkNotBlank(CONFIG_SOURCE_ID, properties.getProperty(CONFIG_SOURCE_ID)), Arg.checkNotBlank(JNDI_NAME, properties.getProperty(JNDI_NAME)), Boolean.parseBoolean(Arg .checkNotBlank(DROP_TABLE, properties.getProperty(DROP_TABLE))), Boolean.parseBoolean(Arg.checkNotBlank(CREATE_TABLE, properties.getProperty(CREATE_TABLE)))); }
/** * Default constructor. * * @param outputEncoding the encoding used write. */ public HtmlUtils(final String outputEncoding) { this.outputEncoding = Arg.checkNotBlank("outputEncoding", outputEncoding); cleaner = new HtmlCleaner(); }