Schnittstelle ProtocolHelpers
- Alle Superschnittstellen:
org.apache.plc4x.plugins.codegenerator.protocol.Protocol
public interface ProtocolHelpers
extends org.apache.plc4x.plugins.codegenerator.protocol.Protocol
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdefault InputStreamReturns a mspec stream by usingProtocol.getName()default InputStreamgetMspecStream(String mspecName) Returns a mspec stream for a give namedefault Stringdefault StringVon Schnittstelle geerbte Methoden org.apache.plc4x.plugins.codegenerator.protocol.Protocol
getName, getTypeContext, getVersion
-
Methodendetails
-
getMspecStream
default InputStream getMspecStream() throws org.apache.plc4x.plugins.codegenerator.types.exceptions.GenerationExceptionReturns a mspec stream by usingProtocol.getName()- Gibt zurück:
- the
InputStreamof the referencedmspecName - Löst aus:
org.apache.plc4x.plugins.codegenerator.types.exceptions.GenerationException- if the mspec can't be found.
-
getMspecStream
default InputStream getMspecStream(String mspecName) throws org.apache.plc4x.plugins.codegenerator.types.exceptions.GenerationException Returns a mspec stream for a give name- Parameter:
mspecName- the name without the .mspec extension- Gibt zurück:
- the
InputStreamof the referencedmspecName - Löst aus:
org.apache.plc4x.plugins.codegenerator.types.exceptions.GenerationException- if the mspec can't be found.
-
getSanitizedName
- Gibt zurück:
Protocol.getName()in sanitized form
-
getPackageName
- Gibt zurück:
- the package name
-