Package com._1c.g5.v8.dt.compare.model
Class MergeRuleUtils
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.model.MergeRuleUtils
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getOrderSideTitle(ComparisonSide orderSide)
Returns the title of the order side for pretty printing.static String
getShortRepresentation(MergeRule rule)
Returns a short (4 character) representation of the merge rule.static String
getTitle(MergeRule rule)
Returns the title of the rule for pretty printing.static ComparisonSide
mergeRuleToOrderSide(MergeRule mergeRule)
Converts merge rule into order side.static MergeRule
orderSideToMergeRule(ComparisonSide orderSide)
Converts order side into merge rule.
-
-
-
Method Detail
-
getShortRepresentation
public static String getShortRepresentation(MergeRule rule)
Returns a short (4 character) representation of the merge rule.- Parameters:
rule
- the merge rule to get short representation for, cannot benull
- Returns:
- a short string with representation, never
null
-
getTitle
public static String getTitle(MergeRule rule)
Returns the title of the rule for pretty printing.- Parameters:
rule
- the merge rule to get title for, cannot benull
- Returns:
- the merge rule title, never
null
-
getOrderSideTitle
public static String getOrderSideTitle(ComparisonSide orderSide)
Returns the title of the order side for pretty printing.- Parameters:
orderSide
- the order side to get title for, cannot benull
- Returns:
- the title, never
null
-
mergeRuleToOrderSide
public static ComparisonSide mergeRuleToOrderSide(MergeRule mergeRule)
Converts merge rule into order side.- Parameters:
mergeRule
- the merge rule to convert, cannot benull
- Returns:
- the order side, never
null
-
orderSideToMergeRule
public static MergeRule orderSideToMergeRule(ComparisonSide orderSide)
Converts order side into merge rule.- Parameters:
orderSide
- the side to convert, cannot benull
- Returns:
- the merge rule, never
null
-
-