public abstract class QueryableFrame extends Frame
Constructor and Description |
---|
QueryableFrame() |
Modifier and Type | Method and Description |
---|---|
abstract ArrayList |
fget(String key)
This method must be implemented so that it returns ALL values paired with the specified key in
ArrayList format.
|
boolean |
fgetBoolean(String key)
Retrieve the value of the specified key as a boolean.
|
byte[] |
fgetBytes(String key)
Presuming the data identified by this key is Base64 data, returns the binary array result of
Base64 decoding that data.
|
double |
fgetDouble(String key)
Retrieve the value of the specified key as a double.
|
double[] |
fgetDoubleArray(String key)
Retrieve the value of the specified key as an array of doubles.
|
abstract FrameComponent |
fgetFirst(String key)
This method must be implemented so that it returns only the FIRST value paired with the
specified key.
|
float |
fgetFloat(String key)
Retrieve the value of the specified key as a float.
|
float[] |
fgetFloatArray(String key)
Retrieve the value of the specified key as an array of floats.
|
QueryableFrame |
fgetFrame(String key)
Retrieve the value of the specified key as a QueryableFrame.
|
int |
fgetInt(String key)
Retrieve the value of the specified key as a int.
|
int[] |
fgetIntArray(String key)
Retrieve the value of the specified key as an array of ints.
|
long |
fgetLong(String key)
Retrieve the value of the specified key as a long.
|
long[] |
fgetLongArray(String key)
Retrieve the value of the specified key as an array of longs.
|
String |
fgetString(String key)
Retrieve the value of the specified key as a String.
|
String[] |
fgetStringArray(String key)
Retrieve the value of the specified key as a String array.
|
byte[] |
fgetTrueBinary(String key)
This is a "non-XTalk-1.0" hack to allow retrieving any data that was transported as "true
binary" (non Base64 encoded), for example via Frame.faddTrueBinary(String, byte[]) instead of
Frame.fadd(String, byte[]).
|
add, createFrameLeaf, createSubFrame, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, faddTrueBinary, fromStream, getFrameTransporter, getKeyValuePair, getKeyValuePairCount, setFrameTransporter, toRawXML, toRawXML, toRawXMLWork, toStream, toString, toXML, toXML, toXML
getAttributes, setAttributes
public abstract ArrayList fget(String key)
key
- The key identifying the values to retrieve.public abstract FrameComponent fgetFirst(String key)
key
- The key identifying the value to retrieve.public byte[] fgetBytes(String key)
key
- The key identifying the value to retrieve.LeafCastException
- (unchecked) thrown if the requested data is not B64.ClassCastException
- thrown if the specified frame component is not a leaf.public byte[] fgetTrueBinary(String key)
key
- The key identifying the value to retrieve.ClassCastException
- thrown if the specified frame component is not a leaf.public boolean fgetBoolean(String key)
key
- The key identifying the value to be retrieved.ClassCastException
- if the specified value is not a leaf.public float fgetFloat(String key) throws LeafCastException
key
- The key identifying the value to retrieve.LeafCastException
- (unchecked) thrown if the requested value could not be converted to a float.ClassCastException
- if the specified value is not a leaf.public float[] fgetFloatArray(String key)
key
- The key identifying the value to retrieve.LeafCastException
- (unchecked) thrown if *any* of the space-separated tokens cannot be converted to
float.ClassCastException
- if the specified value is not a leaf.public double fgetDouble(String key)
key
- The key identifying the value to retrieve.LeafCastException
- (unchecked) thrown if the requested value could not be converted to a double.ClassCastException
- if the specified value is not a leaf.public double[] fgetDoubleArray(String key)
key
- The key identifying the value to retrieve.LeafCastException
- (unchecked) thrown if *any* of the space-separated tokens cannot be converted to
double.ClassCastException
- if the specified value is not a leaf.public int fgetInt(String key)
key
- The key identifying the value to retrieve.LeafCastException
- (unchecked) thrown if the requested value could not be converted to a int.ClassCastException
- if the specified value is not a leaf.public int[] fgetIntArray(String key)
key
- The key identifying the value to retrieve.LeafCastException
- (unchecked) thrown if *any* of the space-separated tokens cannot be converted to
int.ClassCastException
- if the specified value is not a leaf.public long fgetLong(String key)
key
- The key identifying the value to retrieve.LeafCastException
- (unchecked) thrown if the requested value could not be converted to a long.ClassCastException
- if the specified value is not a leaf.public long[] fgetLongArray(String key)
key
- The key identifying the value to retrieve.LeafCastException
- (unchecked) thrown if *any* of the space-separated tokens cannot be converted to
long.ClassCastException
- if the specified value is not a leaf.public String fgetString(String key)
key
- The key identifying the value to retrieve.public String[] fgetStringArray(String key)
key
- The key identifying the value to retrieve.LeafCastException
- (unchecked) thrown if the requested value is not a properly encoded string array.ClassCastException
- if the specified value is not a leaf.public QueryableFrame fgetFrame(String key)
key
- The key identifying the value to retrieve.ClassCastException
- (unchecked) if the value was not of type QueryableFrame.Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.