public class SuffixBasedMessagesProvider extends DefaultMessagesProvider
MessagesProvider
interface that is based on suffixes.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_FAULT_SUFFIX
The default suffix used to detect fault elements in the schema.
|
static String |
DEFAULT_REQUEST_SUFFIX
The default suffix used to detect request elements in the schema.
|
static String |
DEFAULT_RESPONSE_SUFFIX
The default suffix used to detect response elements in the schema.
|
Constructor and Description |
---|
SuffixBasedMessagesProvider() |
Modifier and Type | Method and Description |
---|---|
String |
getFaultSuffix()
Returns the suffix used to detect fault elements in the schema.
|
String |
getRequestSuffix()
Returns the suffix used to detect request elements in the schema.
|
String |
getResponseSuffix()
Returns the suffix used to detect response elements in the schema.
|
protected boolean |
isMessageElement(Element element)
Indicates whether the given element should be includes as
Message in the definition. |
void |
setFaultSuffix(String faultSuffix)
Sets the suffix used to detect fault elements in the schema.
|
void |
setRequestSuffix(String requestSuffix)
Sets the suffix used to detect request elements in the schema.
|
void |
setResponseSuffix(String responseSuffix)
Sets the suffix used to detect response elements in the schema.
|
addMessages, getElementName, populateMessage, populatePart
public static final String DEFAULT_REQUEST_SUFFIX
public static final String DEFAULT_RESPONSE_SUFFIX
public static final String DEFAULT_FAULT_SUFFIX
public String getRequestSuffix()
DEFAULT_REQUEST_SUFFIX
public void setRequestSuffix(String requestSuffix)
DEFAULT_REQUEST_SUFFIX
public String getResponseSuffix()
DEFAULT_RESPONSE_SUFFIX
public void setResponseSuffix(String responseSuffix)
DEFAULT_RESPONSE_SUFFIX
public String getFaultSuffix()
DEFAULT_FAULT_SUFFIX
public void setFaultSuffix(String faultSuffix)
DEFAULT_FAULT_SUFFIX
protected boolean isMessageElement(Element element)
DefaultMessagesProvider
Message
in the definition.
Default implementation checks whether the element has the XML Schema namespace, and if it has the local name "element".
isMessageElement
in class DefaultMessagesProvider
element
- the element elligable for being a messagetrue
if to be included as message; false
otherwiseCopyright © 2020 Pivotal Software. All rights reserved.