[New] Implemented NameSelection.contains() and caseInsensitive()
This commit is contained in:
parent
c21f96a5ae
commit
64afcb02a6
|
@ -21,6 +21,8 @@ package li.strolch.model.query;
|
|||
public class NameSelection extends StrolchElementSelection {
|
||||
|
||||
private String name;
|
||||
private boolean contains;
|
||||
private boolean caseInsensitive;
|
||||
|
||||
/**
|
||||
* @param name
|
||||
|
@ -36,6 +38,24 @@ public class NameSelection extends StrolchElementSelection {
|
|||
return this.name;
|
||||
}
|
||||
|
||||
public boolean isContains() {
|
||||
return this.contains;
|
||||
}
|
||||
|
||||
public boolean isCaseInsensitive() {
|
||||
return this.caseInsensitive;
|
||||
}
|
||||
|
||||
public NameSelection contains(boolean contains) {
|
||||
this.contains = contains;
|
||||
return this;
|
||||
}
|
||||
|
||||
public NameSelection caseInsensitive(boolean caseInsensitive) {
|
||||
this.caseInsensitive = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void accept(StrolchElementSelectionVisitor visitor) {
|
||||
visitor.visit(this);
|
||||
|
|
Loading…
Reference in New Issue