com.daon.identityx.rest.model.pojo.RegularExpression Maven / Gradle / Ivy
/*
* Copyright Daon.
*
* 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.
*/
package com.daon.identityx.rest.model.pojo;
/**
* Holds information associated with a regular expression
*
* @author pryan
*
*/
public class RegularExpression {
/**
* The regular expression pattern.
*/
private String regularExpression;
/**
* The tag associated with a regular expression can be an identifier for a
* message to display when the regular expression matches or does not match.
* It may be any identifier associated with the regular expression.
*/
private String tag;
public RegularExpression() {
super();
}
public RegularExpression(String regularExpression, String tag) {
super();
this.regularExpression = regularExpression;
this.tag = tag;
}
@Override
public String toString() {
return getClass().getName() + "@" + hashCode()
+ "[regularExpression=" + regularExpression + ", tag=" + tag + "]";
}
public String getRegularExpression() {
return regularExpression;
}
public void setRegularExpression(String regularExpression) {
this.regularExpression = regularExpression;
}
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy