Class CXMLElementBrowser
java.lang.Object
de.hybris.platform.b2b.punchout.services.CXMLElementBrowser
Allows for browsing and finding elements part of a
CXML instance.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> TfindElementInList(List<?> list, Class<T> clazz) <T> TfindRequestByType(Class<T> clazz) <T> TfindResponseByType(Class<T> clazz) Finds a response by type.booleanChecks whether there isResponseinstance.
-
Constructor Details
-
CXMLElementBrowser
Constructor.- Parameters:
cxml- theCXMLinstance
-
-
Method Details
-
findHeader
- Returns:
- the header as a child of
CXMLor null if not found
-
findRequestByType
- Parameters:
clazz- the request type class- Returns:
- the instance of the request type or null if not found
-
findRequest
- Returns:
- the request element or null if not found
-
findResponseByType
Finds a response by type.- Parameters:
clazz- the element type class- Returns:
- the response element type or null if not found
-
findResponse
- Returns:
- the response instance of a
CXMLor null if not found
-
findElementInList
-
hasResponse
public boolean hasResponse()Checks whether there isResponseinstance.
-