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
ConstructorsModifierConstructorDescriptionprivateMessageReference(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 MessageReferenceFactory for creating fault message reference templates.Get referenced message.getName()Get name for this reference.private static MessageReferenceFactory for creating input message reference templates.booleanisFault()Check if reference is to message as fault.booleanisInput()Check if reference is to message as input.booleanisOutput()Check if reference is to message as output.private static MessageReferenceFactory for creating output message reference templates.voidSet 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:
trueif input reference,falseif not
-
isOutput
public boolean isOutput()Check if reference is to message as output.- Returns:
trueif output reference,falseif not
-
isFault
public boolean isFault()Check if reference is to message as fault.- Returns:
trueif fault reference,falseif 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
-