com.ibm.xtools.uml.rt.core
Class RTFactory.ProtocolFactory
java.lang.Object
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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RTFactory.ProtocolFactory
public RTFactory.ProtocolFactory()
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