|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.infoway.messagebuilder.xml.service.BaseMessageDefinitionService
public abstract class BaseMessageDefinitionService
A base class for the message defintion service.
Field Summary | |
---|---|
protected List<MessageSet> |
messageSets
|
Constructor Summary | |
---|---|
BaseMessageDefinitionService()
|
Method Summary | |
---|---|
protected void |
addMessagePartsFromSupertype(Map<String,MessagePart> allParts,
String superTypeName,
VersionNumber version)
|
List<Interaction> |
getAllInteractions(boolean includeDuplicateInteractionsWithChangedBusinessNames)
Get all interactions across all versions. |
List<Interaction> |
getAllInteractions(VersionNumber version)
Get all interactions for a particular version of the specification. |
Map<String,MessagePart> |
getAllMessageParts(Interaction interaction,
VersionNumber version)
Get all the message parts for a particular interaction and version. |
Map<String,MessagePart> |
getAllRelatedMessageParts(MessagePart messagePart,
VersionNumber version)
Get all the message parts that a particular root message part references. |
List<MessagePart> |
getAllRootMessageParts()
Get all the root message parts for all message sets. |
List<MessagePart> |
getAllRootMessageParts(VersionNumber version)
Get all the root message parts for a specific message set. |
Interaction |
getInteraction(VersionNumber version,
String type)
Get an interaction by name and version. |
MessagePart |
getMessagePart(VersionNumber version,
String type)
Get a message part by name and version. |
protected List<MessageSet> |
getMessageSets()
Get the list of message sets. |
protected abstract List<String> |
getNames()
Get the names. |
Set<String> |
getSupportedVersions()
Get the supported versions. |
Set<String> |
getSupportedVersionsForInteraction(String type)
Get all the versions known by this service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected List<MessageSet> messageSets
Constructor Detail |
---|
public BaseMessageDefinitionService()
Method Detail |
---|
public Interaction getInteraction(VersionNumber version, String type)
Get an interaction by name and version.
getInteraction
in interface MessageDefinitionService
version
- - the versiontype
- - the type name
protected List<MessageSet> getMessageSets()
Get the list of message sets.
protected abstract List<String> getNames()
Get the names.
public MessagePart getMessagePart(VersionNumber version, String type)
Get a message part by name and version.
getMessagePart
in interface MessageDefinitionService
version
- - the versiontype
- - the type name
public List<Interaction> getAllInteractions(boolean includeDuplicateInteractionsWithChangedBusinessNames)
Get all interactions across all versions.
getAllInteractions
in interface MessageDefinitionService
includeDuplicateInteractionsWithChangedBusinessNames
- - a flag indicating whether or not to include duplicates
public List<Interaction> getAllInteractions(VersionNumber version)
Get all interactions for a particular version of the specification.
getAllInteractions
in interface MessageDefinitionService
version
- - the version
public Set<String> getSupportedVersions()
Get the supported versions.
getSupportedVersions
in interface MessageDefinitionService
public Set<String> getSupportedVersionsForInteraction(String type)
Get all the versions known by this service.
getSupportedVersionsForInteraction
in interface MessageDefinitionService
type
- - the interaction type name
public Map<String,MessagePart> getAllMessageParts(Interaction interaction, VersionNumber version)
Get all the message parts for a particular interaction and version.
getAllMessageParts
in interface MessageDefinitionService
interaction
- - the interactionversion
- - the version
public List<MessagePart> getAllRootMessageParts()
Get all the root message parts for all message sets.
getAllRootMessageParts
in interface MessageDefinitionService
public List<MessagePart> getAllRootMessageParts(VersionNumber version)
Get all the root message parts for a specific message set.
getAllRootMessageParts
in interface MessageDefinitionService
version
-
public Map<String,MessagePart> getAllRelatedMessageParts(MessagePart messagePart, VersionNumber version)
Get all the message parts that a particular root message part references.
getAllRelatedMessageParts
in interface MessageDefinitionService
messagePart
- - the messagePartversion
- - the version
protected void addMessagePartsFromSupertype(Map<String,MessagePart> allParts, String superTypeName, VersionNumber version)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |