public OArchitectOClass(String name, List<String> superClasses, List<OArchitectOProperty> properties) { Args.notEmpty(name, "name"); this.name = name; this.superClasses = superClasses; this.properties = properties; }
public OArchitectOProperty(String name, OType type, boolean subClassProperty, String linkedClass) { Args.notEmpty(name, "name"); this.name = name; this.type = type; this.subClassProperty = subClassProperty; this.linkedClass = linkedClass; }
/** * Updates the auth state with a queue of {@link AuthOption}s. * * @param authOptions a queue of auth options. May not be null or empty. * * @since 4.2 */ public void update(final Queue<AuthOption> authOptions) { Args.notEmpty(authOptions, "Queue of auth options"); this.authOptions = authOptions; this.authScheme = null; this.credentials = null; }
/** * Updates the auth state with a queue of {@link AuthOption}s. * * @param authOptions a queue of auth options. May not be null or empty. * * @since 4.2 */ public void update(final Queue<AuthOption> authOptions) { Args.notEmpty(authOptions, "Queue of auth options"); this.authOptions = authOptions; this.authScheme = null; this.credentials = null; }
/** * Updates the auth state with a queue of {@link AuthOption}s. * * @param authOptions a queue of auth options. May not be null or empty. * * @since 4.2 */ public void update(final Queue<AuthOption> authOptions) { Args.notEmpty(authOptions, "Queue of auth options"); this.authOptions = authOptions; this.authScheme = null; this.credentials = null; }
/** * Updates the auth state with a queue of {@link AuthOption}s. * * @param authOptions a queue of auth options. May not be null or empty. * * @since 4.2 */ public void update(final Queue<AuthOption> authOptions) { Args.notEmpty(authOptions, "Queue of auth options"); this.authOptions = authOptions; this.authScheme = null; this.credentials = null; }
/** * Updates the auth state with a queue of {@link AuthOption}s. * * @param authOptions a queue of auth options. May not be null or empty. * * @since 4.2 */ public void update(final Queue<AuthOption> authOptions) { Args.notEmpty(authOptions, "Queue of auth options"); this.authOptions = authOptions; this.authScheme = null; this.credentials = null; }
/** * Updates the auth state with a queue of {@link AuthOption}s. * * @param authOptions a queue of auth options. May not be null or empty. * * @since 4.2 */ public void update(final Queue<AuthOption> authOptions) { Args.notEmpty(authOptions, "Queue of auth options"); this.authOptions = authOptions; this.authScheme = null; this.credentials = null; }
/** * Updates the auth state with a queue of {@link AuthOption}s. * * @param authOptions a queue of auth options. May not be null or empty. * * @since 4.2 */ public void update(final Queue<AuthOption> authOptions) { Args.notEmpty(authOptions, "Queue of auth options"); this.authOptions = authOptions; this.authScheme = null; this.credentials = null; }
/** * @since 4.3 */ public String getParameter(final String name) { Args.notEmpty(name, "Parameter name"); if (this.params == null) { return null; } for (final NameValuePair param: this.params) { if (param.getName().equalsIgnoreCase(name)) { return param.getValue(); } } return null; }
/** * @since 4.3 */ public String getParameter(final String name) { Args.notEmpty(name, "Parameter name"); if (this.params == null) { return null; } for (final NameValuePair param: this.params) { if (param.getName().equalsIgnoreCase(name)) { return param.getValue(); } } return null; }
/** * @since 4.3 */ public String getParameter(final String name) { Args.notEmpty(name, "Parameter name"); if (this.params == null) { return null; } for (final NameValuePair param: this.params) { if (param.getName().equalsIgnoreCase(name)) { return param.getValue(); } } return null; }
public RegistryBuilder<I> register(final String id, final I item) { Args.notEmpty(id, "ID"); Args.notNull(item, "Item"); items.put(id.toLowerCase(Locale.ROOT), item); return this; }
public RegistryBuilder<I> register(final String id, final I item) { Args.notEmpty(id, "ID"); Args.notNull(item, "Item"); items.put(id.toLowerCase(Locale.ROOT), item); return this; }
public RegistryBuilder<I> register(final String id, final I item) { Args.notEmpty(id, "ID"); Args.notNull(item, "Item"); items.put(id.toLowerCase(Locale.US), item); return this; }
public RegistryBuilder<I> register(final String id, final I item) { Args.notEmpty(id, "ID"); Args.notNull(item, "Item"); items.put(id.toLowerCase(Locale.ROOT), item); return this; }
public RegistryBuilder<I> register(final String id, final I item) { Args.notEmpty(id, "ID"); Args.notNull(item, "Item"); items.put(id.toLowerCase(Locale.ROOT), item); return this; }
public GeneratorMode(String name, Class<? extends IGeneratorStrategy> strategyClass) { Args.notEmpty(name, "name"); Args.notNull(strategyClass, "strategyClass"); this.name = name; this.strategyClass = strategyClass; }
public RegistryBuilder<I> register(final String id, final I item) { Args.notEmpty(id, "ID"); Args.notNull(item, "Item"); items.put(id.toLowerCase(Locale.ENGLISH), item); return this; }
/** * Download artifact from repository * @param artifact {@link Artifact} for download * @param repository repository for download artifact * @return {@link Artifact} of downloaded artifact or Optional.absent if can't download artifact * @throws IllegalArgumentException if artifact or repository is null. */ public Artifact downloadArtifact(Artifact artifact, String repository) { Args.notNull(artifact, "artifact"); Args.notEmpty(repository, "repository"); ArtifactRequest artifactRequest = createArtifactRequest(artifact, newUserRemoteRepository(repository)); ArtifactResult result = resolveArtifactRequest(artifactRequest); return result != null ? result.getArtifact() : null; }