com.ibm.xtools.uml.rt.core
Class RTFactory.ProtocolFactory

java.lang.Object
  extended by com.ibm.xtools.uml.rt.core.RTFactory.ProtocolFactory
Enclosing class:
RTFactory

public static class RTFactory.ProtocolFactory
extends java.lang.Object

Factory for creating Protocol objects


Constructor Summary
RTFactory.ProtocolFactory()
           
 
Method Summary
static RTProtocol createProtocol(java.lang.Package container, java.lang.String name)
           
static RTProtocol getProtocol(Collaboration collaboration)
           
static boolean isProtocol(Collaboration collaboration)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTFactory.ProtocolFactory

public RTFactory.ProtocolFactory()
Method Detail

isProtocol

public static boolean isProtocol(Collaboration collaboration)
Parameters:
collaboration -
Returns:
True if given Collaboration represents an RT Protocol and False otherwise

getProtocol

public static RTProtocol getProtocol(Collaboration collaboration)
Parameters:
collaboration -
Returns:
RTProtocol wrapper for the given UML2 Collaboration object. Guaranteed to succeed if the previous call to isProtocol returned True

createProtocol

public static RTProtocol createProtocol(java.lang.Package container,
                                        java.lang.String name)
Parameters:
container -
name -
Returns:
a newly created RTProtocol object in the given UML2 Package container