public class AFrame extends VinciFrame
Modifier and Type | Method and Description |
---|---|
Attributes |
aadd(String key)
Decorator method for adding a valueless tag.
|
Attributes |
aadd(String key,
AFrame val)
Decorator method for adding Frame-valued tags.
|
Attributes |
aadd(String key,
boolean val)
Decorator method for adding boolean valued tags.
|
Attributes |
aadd(String key,
byte[] val)
Decorator method for adding binary valued tags.
|
Attributes |
aadd(String key,
double val)
Decorator method for adding double valued tags.
|
Attributes |
aadd(String key,
double[] val)
Decorator method for adding double-array valued tags.
|
Attributes |
aadd(String key,
float val)
Decorator method for adding float-valued tags.
|
Attributes |
aadd(String key,
float[] val)
Decorator method for adding float-array valued tags.
|
Attributes |
aadd(String key,
int val)
Decorator method for adding int valued tags.
|
Attributes |
aadd(String key,
int[] val)
Decorator method for adding int-array valued tags.
|
Attributes |
aadd(String key,
long val)
Decorator method for adding long valued tags.
|
Attributes |
aadd(String key,
long[] val)
Decorator method for adding long-array valued tags.
|
Attributes |
aadd(String key,
String val)
Decorator method for adding String valued tags.
|
Attributes |
aaddTrueBinary(String key,
byte[] val)
This is a hack method which allows you to add binary-valued tags to Frames in a manner such
that there is no textual encoding overhead of that binary data.
|
Attributes |
aget(String key)
Get the attributes associated with a particular key.
|
Attributes |
createAttributes() |
FrameLeaf |
createFrameLeaf(byte[] array)
Override the createFrameLeaf to create an AFrameLeaf so that leaf values can have attributes.
|
Frame |
createSubFrame(String tag_name,
int initialCapacity)
Override the createSubFrame to create an AFrame of precise capacity.
|
AFrame |
fgetAFrame(String key)
Convenience method for fetching sub-frames when their type is known to be AFrame
|
static TransportableFactory |
getAFrameFactory()
Get a TransportableFactory that creates new AFrames.
|
Attributes |
getAttributes()
Get the attributes associated with this FrameComponent.
|
static AFrame |
rpc(Transportable in,
String service_name) |
static AFrame |
rpc(Transportable in,
String service_name,
int socket_timeout) |
static AFrame |
rpc(Transportable in,
String service_name,
int socket_timeout,
int connect_timeout) |
void |
setAttributes(Attributes s)
Set the attributes (replacing any previous ones) assocated with this Frame component.
|
static AFrame |
toAFrame(Transportable t)
Create an AFrame that is a (deep) copy of the given transportable.
|
add, ensureCapacity, fdrop, fdropFirst, fget, fgetFirst, fgetVinciFrame, fkeys, freset, fset, fset, fset, fset, fset, fset, fset, fset, fsetTrueBinary, getKeyValuePair, getKeyValuePairCount, getVinciFrameFactory, set, stripWhitespace, toVinciFrame
fgetBoolean, fgetBytes, fgetDouble, fgetDoubleArray, fgetFloat, fgetFloatArray, fgetFrame, fgetInt, fgetIntArray, fgetLong, fgetLongArray, fgetString, fgetStringArray, fgetTrueBinary
public AFrame()
public AFrame(int capacity)
capacity
- -public void setAttributes(Attributes s)
FrameComponent
setAttributes
in class FrameComponent
s
- -public Attributes getAttributes()
FrameComponent
getAttributes
in class FrameComponent
public Attributes createAttributes()
public static TransportableFactory getAFrameFactory()
public static AFrame toAFrame(Transportable t)
t
- -public Frame createSubFrame(String tag_name, int initialCapacity)
createSubFrame
in class VinciFrame
tag_name
- -initialCapacity
- -public FrameLeaf createFrameLeaf(byte[] array)
createFrameLeaf
in class Frame
array
- -public AFrame fgetAFrame(String key)
key
- The key identifying the value to retrieve.ClassCastException
- if the value was not of type AFrame.public Attributes aget(String key)
key
- The key whose attributes to fetch.public Attributes aadd(String key, float val)
key
- The key to be associated with the value.val
- -public Attributes aadd(String key, float[] val)
key
- The key to be associated with the value.val
- -public Attributes aadd(String key, double val)
key
- The key to be associated with the value.val
- -public Attributes aadd(String key, double[] val)
key
- The key to be associated with the value.val
- The array to add. The array is immediately converted to string representation.public Attributes aadd(String key, int val)
key
- The key to be associated with the value.val
- The int to add.public Attributes aadd(String key, int[] val)
key
- The key to be associated with the value.val
- The array to add. The array is immediately converted to string representation.public Attributes aadd(String key, long val)
key
- The key to be associated with the value.val
- The long value to add.public Attributes aadd(String key, long[] val)
key
- The key to be associated with the value.val
- The array to add. The array is immediately converted to string representation.public Attributes aadd(String key, String val)
key
- The key to be associated with the value.val
- The string to add.public Attributes aadd(String key, byte[] val)
key
- The key to be associated with the value.val
- The data to be encoded and added to this frame.public Attributes aadd(String key, boolean val)
key
- The key to be associated with the value.val
- The boolean value to add.public Attributes aadd(String key, AFrame val)
key
- The key to be associated with the value.val
- The sub-frame to add. Note this frame is not copied.public Attributes aadd(String key)
key
- The key name.public Attributes aaddTrueBinary(String key, byte[] val)
key
- The key to be associated with the value.val
- The byte array to be added to the frame. Note the array is NOT copied or converted in
any way.public static AFrame rpc(Transportable in, String service_name) throws IOException, ServiceException, ServiceDownException, VNSException
in
- -service_name
- -IOException
- -ServiceException
- -ServiceDownException
- -VNSException
- -IllegalStateException
- if VNS_HOST is not specified.public static AFrame rpc(Transportable in, String service_name, int socket_timeout) throws IOException, ServiceException, ServiceDownException, VNSException
in
- -service_name
- -socket_timeout
- -IOException
- -ServiceException
- -ServiceDownException
- -VNSException
- -IllegalStateException
- if VNS_HOST is not specified.public static AFrame rpc(Transportable in, String service_name, int socket_timeout, int connect_timeout) throws IOException, ServiceException, ServiceDownException, VNSException
in
- -service_name
- -socket_timeout
- -connect_timeout
- -IOException
- -ServiceException
- -ServiceDownException
- -VNSException
- -IllegalStateException
- if VNS_HOST is not specified.Copyright © 2017. All rights reserved.