public class Module extends ModelObject
END_COLUMN, END_LINE, END_POSITION, RESOURCE_URL, START_COLUMN, START_LINE, START_POSITION| Constructor and Description |
|---|
Module()
The default constructor for the model.
|
| Modifier and Type | Method and Description |
|---|---|
List<ImportDecl> |
getImports()
This method returns the list of import definitions.
|
String |
getLocalName()
This method returns the last component of the fully
qualified name.
|
Role |
getLocatedRole()
This method returns the role associated with a local module.
|
String |
getName()
This method returns the fully qualified name.
|
List<PayloadTypeDecl> |
getPayloadTypeDeclarations()
This method returns the list of payload types.
|
ProtocolDecl |
getProtocol(String name)
This method returns the protocol associated
with the supplied name.
|
List<ProtocolDecl> |
getProtocols()
This method returns the list of protocols.
|
PayloadTypeDecl |
getTypeDeclaration(String name)
This method returns the payload type associated
with the supplied name.
|
void |
setName(String fqn)
This method sets the fully qualified name.
|
String |
toString() |
void |
toText(StringBuffer buf,
int level)
This method generates a text representation of the protocol component.
|
void |
visit(Visitor visitor)
This method visits the model object using the supplied
visitor.
|
derivedFrom, getModule, getParent, getParent, getProperties, indent, setParentpublic String getName()
public void setName(String fqn)
fqn - The fully qualified namepublic String getLocalName()
public Role getLocatedRole()
public List<ImportDecl> getImports()
public List<PayloadTypeDecl> getPayloadTypeDeclarations()
public PayloadTypeDecl getTypeDeclaration(String name)
name - The namepublic List<ProtocolDecl> getProtocols()
public ProtocolDecl getProtocol(String name)
name - The namepublic void visit(Visitor visitor)
visit in class ModelObjectvisitor - The visitorpublic void toText(StringBuffer buf, int level)
toText in class ModelObjectbuf - The text bufferlevel - The indentation level, if relevantCopyright © 2014. All Rights Reserved.