public static class TagConflictResolutionUtil.AutomaticCombine extends java.lang.Object implements TagConflictResolutionUtil.AutomaticTagConflictResolver
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
description
A free description
|
boolean |
isRegex
If regular expression must be used to match the Tag key or the value.
|
java.lang.String |
key
The Tag key to match
|
java.lang.String |
separator
The separator to use to combine the values.
|
java.lang.String |
sort
If the combined values must be sorted.
|
| Constructor and Description |
|---|
AutomaticCombine()
Default constructor.
|
AutomaticCombine(java.lang.String key,
java.lang.String description,
boolean isRegex,
java.lang.String separator,
java.lang.String sort)
Instantiate an automatic tag-conflict resolver which combining the values using a separator.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) java.util.Set<java.lang.String> |
instantiateSortedSet() |
boolean |
matchesKey(java.lang.String k)
Check if this resolution apply to the given Tag key.
|
java.lang.String |
resolve(java.util.Set<java.lang.String> values)
Try to resolve a conflict between a set of values for a Tag
|
java.lang.String |
toString() |
public java.lang.String key
public java.lang.String description
public boolean isRegex
public java.lang.String separator
public java.lang.String sort
public AutomaticCombine()
public AutomaticCombine(java.lang.String key, java.lang.String description, boolean isRegex, java.lang.String separator, java.lang.String sort)
key - The Tag key to match.description - A free description.isRegex - If regular expression must be used to match the Tag key or the value.separator - The separator to use to combine the values.sort - If the combined values must be sorted.public boolean matchesKey(java.lang.String k)
TagConflictResolutionUtil.AutomaticTagConflictResolvermatchesKey in interface TagConflictResolutionUtil.AutomaticTagConflictResolverk - The Tag key to match.java.util.Set<java.lang.String> instantiateSortedSet()
public java.lang.String resolve(java.util.Set<java.lang.String> values)
TagConflictResolutionUtil.AutomaticTagConflictResolverresolve in interface TagConflictResolutionUtil.AutomaticTagConflictResolvervalues - the set of conflicting values for the Tag.public java.lang.String toString()
toString in class java.lang.Object