io.konig.maven.IriTemplateConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of konig-maven-common Show documentation
Show all versions of konig-maven-common Show documentation
A library of common classes used across Maven Plugins offered by the Konig platform
The newest version!
package io.konig.maven;
/*
* #%L
* Konig Maven Common
* %%
* Copyright (C) 2015 - 2018 Gregory McFall
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
public class IriTemplateConfig {
private String iriPattern;
private String iriReplacement;
public IriTemplateConfig() {
}
public String getIriPattern() {
return iriPattern;
}
public void setIriPattern(String iriPattern) {
this.iriPattern = iriPattern;
}
public String getIriReplacement() {
return iriReplacement;
}
public void setIriReplacement(String iriReplacement) {
this.iriReplacement = iriReplacement;
}
public String generateIri(String entityName) {
return entityName.replaceAll(iriPattern, iriReplacement);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy