public final class NFCollection extends java.lang.Object implements ISerializable, IExtension
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ABBREVIATION
The abbreviation used for this class during serialization.
|
static short |
TYPE_ASYNCHRONOUS
A type that can be used to create the default collection for an
invocation that is a asynchronous.
|
static short |
TYPE_EXCHANGE
A type that can be used to create the default collection for
an invocation that establishes a session key using Diffie
Hellmann over an authenticated 3-way handshake.
|
static short |
TYPE_STREAM
A type that can be used to create the default collection for
an invocation that opens a stream.
|
static short |
TYPE_SYNCHRONOUS
A type that can be used to create the default collection for an
invocation that is asynchronous.
|
EXTENSION_COMPRESSION, EXTENSION_DISCOVERY, EXTENSION_ENCRYPTION, EXTENSION_ROUTING, EXTENSION_SEMANTIC, EXTENSION_SERIALIZATION, EXTENSION_TRANSCEIVER
Constructor and Description |
---|
NFCollection()
Creates a new collection with no properties set.
|
Modifier and Type | Method and Description |
---|---|
NFDimension |
addDimension(short extension,
NFDimension dimension)
Adds a dimension to the specified extension.
|
NFCollection |
copy(boolean deep)
Creates a copy of this collection of parameters.
|
static NFCollection |
getDefault(short type,
boolean gateway)
A factory method that creates the default non-functional
collections for invocations delivered with statically generated
proxies.
|
NFDimension |
getDimension(short extension,
short dimension)
Returns the dimension from the specified extension with the specified
dimension identifier.
|
NFDimension[] |
getDimensions(short extension)
Returns all dimensions that have been specified for the specified
extension.
|
void |
readObject(IObjectInput input)
Deserializes the object from the stream.
|
void |
removeDimension(short extension,
short dimension)
Removes the specified dimension from the specified extension requirement.
|
java.lang.String |
toString()
Returns a string representation of the collection.
|
void |
writeObject(IObjectOutput output)
Serializes the object to the stream.
|
public static final java.lang.String ABBREVIATION
public static final short TYPE_EXCHANGE
public static final short TYPE_STREAM
public static final short TYPE_ASYNCHRONOUS
public static final short TYPE_SYNCHRONOUS
public NFCollection()
public static NFCollection getDefault(short type, boolean gateway)
gateway
- The type that indicates whether routing should
use remote gateways to connect.type
- The type of collection to create. This can be
one of the type constants specified in this class.public NFDimension addDimension(short extension, NFDimension dimension)
extension
- The extension to add the dimension.dimension
- The dimension that is added to the extension.public NFDimension getDimension(short extension, short dimension)
extension
- The extension to search for.dimension
- The identifier of the dimension to lookuppublic NFDimension[] getDimensions(short extension)
extension
- The extension to lookup.public void removeDimension(short extension, short dimension)
extension
- The extension point to consider during removal.dimension
- The dimension to remove from the specified extension.public void readObject(IObjectInput input) throws java.io.IOException
readObject
in interface ISerializable
input
- The input to read from.java.io.IOException
- Thrown if the deserialization failed.public void writeObject(IObjectOutput output) throws java.io.IOException
writeObject
in interface ISerializable
output
- The output to write to.java.io.IOException
- Thrown if the serialization failed.public NFCollection copy(boolean deep)
deep
- Set to true to create a deep copy, set to false to create
a shallow copy.public java.lang.String toString()
toString
in class java.lang.Object