Class CBProtocolDeclaration
java.lang.Object
com.io7m.cedarbridge.schema.compiled.internal.CBProtocolDeclaration
- All Implemented Interfaces:
CBProtocolDeclarationType
A protocol declaration.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddVersion(CBProtocolVersionDeclaration version) Add a protocol version.name()owner()voidsetDocumentation(List<String> text) Set the documentation.voidSet the owner of the protocol.versions()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.io7m.cedarbridge.schema.compiled.CBProtocolDeclarationType
id, protocolVersionsForType
-
Method Details
-
owner
- Specified by:
ownerin interfaceCBProtocolDeclarationType- Returns:
- The package that owns this declaration
-
name
- Specified by:
namein interfaceCBProtocolDeclarationType- Returns:
- The package-unique declaration name
-
versions
- Specified by:
versionsin interfaceCBProtocolDeclarationType- Returns:
- The protocols by version
-
documentation
- Specified by:
documentationin interfaceCBProtocolDeclarationType- Returns:
- Documentation for the protocol declaration
-
setOwner
Set the owner of the protocol.- Parameters:
newOwner- The owner package
-
addVersion
Add a protocol version.- Parameters:
version- The version
-
setDocumentation
Set the documentation.- Parameters:
text- The text
-