Package de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.messagemapping
Class MessageMappingRulesParserImpl
java.lang.Object
org.xml.sax.helpers.DefaultHandler
de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.messagemapping.MessageMappingRulesParserImpl
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
Parser for the file registered in the metadata file under the type rfc_messages
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents an attributestatic final classRepresents a tag -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringError message ID: tag inside a tagbooleanHide info or warning messages?protected booleanAre we processing a message?protected MessageMappingRule.PatternSearch patternprotected MessageMappingRule.ResultResult of mapping processList of rules as result of the parse process -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MessageMappingRule.ResultCreate a mapping rule result which states that message is hiddenprotected MessageMappingRule.ResultbuildMapResult(Attributes attrs) Create a mapping result expressionprotected MessageMappingRule.PatternbuildPattern(Attributes attrs) Create a patternprotected MessageMappingRuleCreate a mapping rulevoidendElement(String uri, String localName, String qName) voidstartElement(String nsURI, String stripName, String tagName, Attributes attrs) toString()Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
inMessage
protected boolean inMessageAre we processing a message? -
hideNonErrorMsg
public boolean hideNonErrorMsgHide info or warning messages? -
rulesList
List of rules as result of the parse process -
pattern
Search pattern -
result
Result of mapping process -
ERROR_TAG_OUTSIDE_MESAGE_TAG
Error message ID: tag inside a tag- See Also:
-
-
Constructor Details
-
MessageMappingRulesParserImpl
public MessageMappingRulesParserImpl()
-
-
Method Details
-
startElement
public void startElement(String nsURI, String stripName, String tagName, Attributes attrs) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
buildPattern
Create a pattern- Parameters:
attrs-- Returns:
- Search pattern
-
buildMapResult
Create a mapping result expression- Parameters:
attrs-- Returns:
- Mapping result expression
-
buildRule
Create a mapping rule- Returns:
- Mapping rule (pattern, result expression)
-
buildHideResult
Create a mapping rule result which states that message is hidden- Returns:
- Result expression
-
toString
-