|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.voytechs.jnetstream.protocol.LegacyProtocol
public class LegacyProtocol
| Constructor Summary | |
|---|---|
LegacyProtocol(java.lang.String name,
java.net.URL url,
ProtocolLoader loader)
|
|
| Method Summary | |
|---|---|
java.util.Set |
getAvailableProtocolImplementationTypes()
Returns a set of available types (ProtocolType) for this specific protocol. |
StatementContainer |
getCode()
|
java.lang.String |
getName()
Returns the name of this protocol. |
ProtocolImplementationType |
getProtocolImplementationType()
Returns the current implementation type of this specific protocol. |
ProtocolLoader |
getProtocolLoader()
|
java.util.List |
getSinkBindings()
Returns a list of Bindings that are bound to this protocol. |
java.util.List |
getSourceBindings()
Returns a list of Bindings that are defined for this protocol. |
java.net.URL |
getURL()
Get the URL which points to the defininition of this protocol. |
boolean |
hasCode()
|
boolean |
isLinked()
|
boolean |
isLoaded()
Checks if the current protocol has been loaded. |
void |
load()
Loads the protocol into memory from source definition. |
void |
setCode(StatementContainer stat)
|
void |
setLinked(boolean linked)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LegacyProtocol(java.lang.String name,
java.net.URL url,
ProtocolLoader loader)
name - | Method Detail |
|---|
public java.lang.String getName()
Protocol
getName in interface Protocolpublic java.util.List getSourceBindings()
Protocol
getSourceBindings in interface Protocolpublic java.util.List getSinkBindings()
Protocol
getSinkBindings in interface Protocolpublic boolean hasCode()
public void setCode(StatementContainer stat)
stat - public StatementContainer getCode()
public boolean isLoaded()
Protocol
isLoaded in interface Protocolpublic java.net.URL getURL()
Protocol
getURL in interface Protocolpublic ProtocolLoader getProtocolLoader()
public boolean isLinked()
public void setLinked(boolean linked)
linked - The linked to set.
public void load()
throws ProtocolDeclarationException,
ProtocolNotFoundException,
java.io.IOException
Protocol
load in interface ProtocolProtocolDeclarationException - declaration or syntax errors. Declaration error is the one that does not
technically generate a NPL syntax error in the source, but declares an
invalid object that can not be used as a protocol. Only Headers and Family
object can be used as protocol declarations.
ProtocolNotFoundException - protocol definition was not found at the specified url
java.io.IOException - any protocols while trying to physically access the protocol definitionpublic ProtocolImplementationType getProtocolImplementationType()
Protocol
getProtocolImplementationType in interface Protocolpublic java.util.Set getAvailableProtocolImplementationTypes()
Protocol
getAvailableProtocolImplementationTypes in interface Protocol
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||