Class AFrameLeaf
java.lang.Object
org.apache.vinci.transport.FrameComponent
org.apache.vinci.transport.FrameLeaf
org.apache.vinci.transport.document.AFrameLeaf
This class extends FrameLeaf with ability to set attributes.
-
Field Summary
Fields inherited from class org.apache.vinci.transport.FrameLeaf
NOT_UTF8_ERROR
-
Constructor Summary
ConstructorDescriptionAFrameLeaf
(boolean bool) AFrameLeaf
(byte[] data, boolean encode) AFrameLeaf
(double mydouble) AFrameLeaf
(double[] mydouble) AFrameLeaf
(float myfloat) AFrameLeaf
(float[] myfloat) AFrameLeaf
(int myint) AFrameLeaf
(int[] myint) AFrameLeaf
(long mylong) AFrameLeaf
(long[] mylong) AFrameLeaf
(String mystring) AFrameLeaf
(String[] mystring) -
Method Summary
Modifier and TypeMethodDescriptionGet the attributes associated with this FrameComponent.void
Set the attributes (replacing any previous ones) assocated with this Frame component.Methods inherited from class org.apache.vinci.transport.FrameLeaf
getData, toBoolean, toBytes, toDouble, toDoubleArray, toFloat, toFloatArray, toInt, toIntArray, toLong, toLongArray, toString, toStringArray
-
Constructor Details
-
AFrameLeaf
public AFrameLeaf(byte[] data, boolean encode) -
AFrameLeaf
-
AFrameLeaf
-
AFrameLeaf
public AFrameLeaf(float myfloat) -
AFrameLeaf
public AFrameLeaf(float[] myfloat) -
AFrameLeaf
public AFrameLeaf(double mydouble) -
AFrameLeaf
public AFrameLeaf(double[] mydouble) -
AFrameLeaf
public AFrameLeaf(int myint) -
AFrameLeaf
public AFrameLeaf(int[] myint) -
AFrameLeaf
public AFrameLeaf(long mylong) -
AFrameLeaf
public AFrameLeaf(long[] mylong) -
AFrameLeaf
public AFrameLeaf(boolean bool)
-
-
Method Details
-
setAttributes
Description copied from class:FrameComponent
Set the attributes (replacing any previous ones) assocated with this Frame component. Default implementation does nothing since attributes are not supported by default.- Overrides:
setAttributes
in classFrameComponent
- Parameters:
s
- -
-
getAttributes
Description copied from class:FrameComponent
Get the attributes associated with this FrameComponent.- Overrides:
getAttributes
in classFrameComponent
- Returns:
- The set of attributes associated with this FrameComponent. This method may return "null" to indicate there are no attributes. It could however return an empty Attribute set depending on the implementation.
-
createAttributes
-