Package de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.messagemapping
Class MessageMappingRule.Pattern
java.lang.Object
de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.messagemapping.MessageMappingRule.Pattern
- Enclosing class:
- MessageMappingRule
Matching part = the pattern
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPattern which indicates that rule should apply for any value in this attributeprotected StringMessage class (application area)protected StringMessage number in back endprotected StringSeverity (I, W, E)protected final String[]Message parametersstatic final intMaximum array size -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static final StringagjustField(String value) Adjust the field: maps all forms of string containing one star '*' to null.intprotected final voidCalculates the degree of the patternbooleangetBeV1()getBeV2()getBeV3()getBeV4()inthashCode()protected booleanbooleanmatch(String beClass, String beNumber, String beSeverity, String var1, String var2, String var3, String var4) Does a pattern match a specific message, identified by its attributes?booleanDoes a pattern match a specific message, only considering the static attributes?protected static booleanmatchField(String pattern, String value) Does a part of the pattern match a value?booleanDoes a pattern match a specific message, considering the parameters?toString()
-
Field Details
-
VAR_ARRAY_SIZE
public static final int VAR_ARRAY_SIZEMaximum array size- See Also:
-
ANY_PATTERN
Pattern which indicates that rule should apply for any value in this attribute- See Also:
-
beClass
Message class (application area) -
beNumber
Message number in back end -
beSeverity
Severity (I, W, E) -
beVars
Message parameters
-
-
Constructor Details
-
Pattern
protected Pattern()Standard constructor -
Pattern
Constructor- Parameters:
beClass- Message class (application area)beNumber- Message number in back endbeSeverity-
-
Pattern
public Pattern(String beClass, String beNumber, String beSeverity, String beV1, String beV2, String beV3, String beV4) Constructor- Parameters:
beClass- Message class (application area)beNumber- Message number in back endbeSeverity-beV1-beV2-beV3-beV4-
-
-
Method Details
-
getBeClass
- Returns:
- Message class (application area)
-
getBeNumber
- Returns:
- Message number
-
getBeSeverity
- Returns:
- Message severity
-
getBeV1
- Returns:
- Parameter1
-
getBeV2
- Returns:
- Parameter2
-
getBeV3
- Returns:
- Parameter3
-
getBeV4
- Returns:
- Parameter4
-
agjustField
Adjust the field:- maps all forms of string containing one star '*' to null. Null mean any value.
- But keeps "", because it means (match) an empty string.
- Parameters:
value-- Returns:
- adjusted field
-
equals
-
isEqual
- Parameters:
o-- Returns:
-
hashCode
public int hashCode() -
toString
-
match
public boolean match(String beClass, String beNumber, String beSeverity, String var1, String var2, String var3, String var4) Does a pattern match a specific message, identified by its attributes?- Parameters:
beClass-beNumber-beSeverity-var1-var2-var3-var4-- Returns:
- Match?
-
matchCNS
Does a pattern match a specific message, only considering the static attributes?- Parameters:
beClass-beNumber-beSeverity-- Returns:
- Match?
-
matchVARS
Does a pattern match a specific message, considering the parameters?- Parameters:
var1-var2-var3-var4-- Returns:
- Match?
-
matchField
Does a part of the pattern match a value?- Parameters:
pattern-value-- Returns:
- Match?
-
attrDergee
public int attrDergee()- Returns:
- Attribute degree
-
calculateDegree
protected final void calculateDegree()Calculates the degree of the pattern
-