Package org.jibx.ws.wsdl.model
Class MessageReference
java.lang.Object
org.jibx.ws.wsdl.model.MessageReference
Reference to a message within an operation. Since messages may be referenced as input, output, or fault messages, the
appropriate type is tracked by this class, along with the actual message.
- Author:
- Dennis M. Sosnoski
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
MessageReference
(int usage) Internal constructor used with JiBX binding.MessageReference
(int usage, Message msg) Constructor from part and element names. -
Method Summary
Modifier and TypeMethodDescriptionprivate static MessageReference
Factory for creating fault message reference templates.Get referenced message.getName()
Get name for this reference.private static MessageReference
Factory for creating input message reference templates.boolean
isFault()
Check if reference is to message as fault.boolean
isInput()
Check if reference is to message as input.boolean
isOutput()
Check if reference is to message as output.private static MessageReference
Factory for creating output message reference templates.void
Set name for this reference.
-
Field Details
-
INPUT_REFERENCE
public static final int INPUT_REFERENCEReference to message as input.- See Also:
-
OUTPUT_REFERENCE
public static final int OUTPUT_REFERENCEReference to message as output.- See Also:
-
FAULT_REFERENCE
public static final int FAULT_REFERENCEReference to message as fault.- See Also:
-
m_usage
private int m_usageType of message reference. -
m_name
Name for this reference. -
m_message
Actual message.
-
-
Constructor Details
-
MessageReference
private MessageReference(int usage) Internal constructor used with JiBX binding.- Parameters:
usage
- reference type code
-
MessageReference
Constructor from part and element names.- Parameters:
usage
- reference type codemsg
- referenced message
-
-
Method Details
-
isInput
public boolean isInput()Check if reference is to message as input.- Returns:
true
if input reference,false
if not
-
isOutput
public boolean isOutput()Check if reference is to message as output.- Returns:
true
if output reference,false
if not
-
isFault
public boolean isFault()Check if reference is to message as fault.- Returns:
true
if fault reference,false
if not
-
getName
Get name for this reference.- Returns:
- reference name
-
setName
Set name for this reference.- Parameters:
name
-
-
getMessage
Get referenced message.- Returns:
- referenced message
-
inputReferenceFactory
Factory for creating input message reference templates. The actual referenced message information needs to be set separately.- Returns:
- created reference
-
outputReferenceFactory
Factory for creating output message reference templates. The actual referenced message information needs to be set separately.- Returns:
- created reference
-
faultReferenceFactory
Factory for creating fault message reference templates. The actual referenced message information needs to be set separately.- Returns:
- created reference
-