ca.infoway.messagebuilder.xml
Class MessageSet

Package class diagram package MessageSet
java.lang.Object
  extended by ca.infoway.messagebuilder.xml.MessageSet
All Implemented Interfaces:
MessagePartResolver

public class MessageSet
extends Object
implements MessagePartResolver

A representation of an entire message set.

Author:
Intelliware Development

Constructor Summary
MessageSet()
           
 
Method Summary
 void addMessagePart(MessagePart part)
          Add a message part.
 Collection<MessagePart> getAllMessageParts()
          Get a collection of all message parts defined by the message set.
 String getComponent()
          Get the component.
 Map<String,Interaction> getInteractions()
          Get a map of all the interactions defined in the message set, keyed by interaction id.
 MessagePart getMessagePart(String type)
          Get a part by part type name.
 String getPackageLocationRootType(String packageLocation)
          Get a package location root type.
 Map<String,PackageLocation> getPackageLocations()
          Get a map of all package locations, keyed by package location id.
 List<MessageSetHistory> getRemixHistory()
          Get the remixHistory.
 String getSchemaVersion()
           
 String getVersion()
          Get the version code that this message set represents.
 Vocabulary getVocabulary()
           
 boolean isVocabularyDataPresent()
           
 void setComponent(String component)
          Set the component.
 void setInteractions(Map<String,Interaction> interactions)
          Set the interactions.
 void setPackageLocations(Map<String,PackageLocation> packageLocations)
          Set the package locations.
 void setRemixHistory(List<MessageSetHistory> remixHistory)
          Set the remixHistory.
 void setSchemaVersion(String schemaVersion)
           
 void setVersion(String version)
          Set the version code.
 void setVocabulary(Vocabulary vocabulary)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageSet

public MessageSet()
Method Detail

getVersion

public String getVersion()

Get the version code that this message set represents.

Returns:
- the version code.

setVersion

public void setVersion(String version)

Set the version code.

Parameters:
version - - the new version code.

getInteractions

public Map<String,Interaction> getInteractions()

Get a map of all the interactions defined in the message set, keyed by interaction id.

Returns:
- the map of all interactions.

setInteractions

public void setInteractions(Map<String,Interaction> interactions)

Set the interactions.

Parameters:
interactions - - the new value

getPackageLocations

public Map<String,PackageLocation> getPackageLocations()

Get a map of all package locations, keyed by package location id.

Returns:
- the map

setPackageLocations

public void setPackageLocations(Map<String,PackageLocation> packageLocations)

Set the package locations.

Parameters:
packageLocations - - the new value.

getMessagePart

public MessagePart getMessagePart(String type)

Get a part by part type name.

Specified by:
getMessagePart in interface MessagePartResolver
Parameters:
type - - the message part type name
Returns:
- the message part

addMessagePart

public void addMessagePart(MessagePart part)

Add a message part.

Parameters:
part - - the message part to add

getAllMessageParts

public Collection<MessagePart> getAllMessageParts()

Get a collection of all message parts defined by the message set.

Returns:
the message parts

getPackageLocationRootType

public String getPackageLocationRootType(String packageLocation)

Get a package location root type.

Specified by:
getPackageLocationRootType in interface MessagePartResolver
Parameters:
packageLocation - - the package location key
Returns:
the package location

getComponent

public String getComponent()

Get the component.

Returns:
the component

setComponent

public void setComponent(String component)

Set the component.

Parameters:
component - - the new value

getRemixHistory

public List<MessageSetHistory> getRemixHistory()

Get the remixHistory.

Returns:
the remixHistory

setRemixHistory

public void setRemixHistory(List<MessageSetHistory> remixHistory)

Set the remixHistory.

Parameters:
remixHistory - - the new value

getVocabulary

public Vocabulary getVocabulary()

getSchemaVersion

public String getSchemaVersion()

setSchemaVersion

public void setSchemaVersion(String schemaVersion)

setVocabulary

public void setVocabulary(Vocabulary vocabulary)

isVocabularyDataPresent

public boolean isVocabularyDataPresent()


Copyright © 2013. All Rights Reserved.