Package yarp
Class Value
- java.lang.Object
-
- yarp.PortReader
-
- yarp.Portable
-
- yarp.Value
-
public class Value extends Portable
-
-
Field Summary
-
Fields inherited from class yarp.PortReader
swigCMemOwn
-
-
Constructor Summary
Constructors Modifier Constructor Description Value()
Value(double x)
Value(int x)
Value(int x, boolean isVocab)
protected
Value(long cPtr, boolean cMemoryOwn)
Value(java.lang.String str)
Value(java.lang.String str, boolean isVocab)
Value(SWIGTYPE_p_void data, int length)
Value(Value alt)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
asBlob()
long
asBlobLength()
boolean
asBool()
Property
asDict()
double
asDouble()
int
asInt()
SWIGTYPE_p_YARP_INT64
asInt64()
Bottle
asList()
Searchable
asSearchable()
java.lang.String
asString()
int
asVocab()
boolean
check(java.lang.String key)
boolean
check(java.lang.String key, java.lang.String comment)
Value
check(java.lang.String key, Value fallback)
Value
check(java.lang.String key, Value fallback, java.lang.String comment)
Value
clone_c()
Value
create()
void
delete()
protected void
finalize()
Value
find(java.lang.String key)
Bottle
findGroup(java.lang.String key)
Bottle
findGroup(java.lang.String key, java.lang.String comment)
void
fromString(java.lang.String str)
int
getCode()
protected static long
getCPtr(Value obj)
static Value
getNullValue()
boolean
isBlob()
boolean
isBool()
boolean
isDict()
boolean
isDouble()
boolean
isEqual(java.lang.String alt)
boolean
isEqual(Value alt)
boolean
isInt()
boolean
isInt64()
boolean
isLeaf()
boolean
isList()
boolean
isNull()
boolean
isString()
boolean
isVocab()
static Value
makeBlob(SWIGTYPE_p_void data, int length)
static Value
makeDouble(double x)
static Value
makeInt(int x)
static Value
makeList()
static Value
makeList(java.lang.String txt)
static Value
makeString(java.lang.String str)
static Value
makeValue(java.lang.String txt)
static Value
makeVocab(int v)
static Value
makeVocab(java.lang.String str)
boolean
notEqual(java.lang.String alt)
boolean
notEqual(Value alt)
boolean
read(ConnectionReader connection)
java.lang.String
toString()
java.lang.String
toString_c()
boolean
write(ConnectionWriter connection)
-
Methods inherited from class yarp.Portable
copyPortable, getCPtr, getType
-
Methods inherited from class yarp.PortReader
getCPtr, getReadType, swigDirectorDisconnect, swigReleaseOwnership, swigTakeOwnership
-
-
-
-
Constructor Detail
-
Value
protected Value(long cPtr, boolean cMemoryOwn)
-
Value
public Value()
-
Value
public Value(int x, boolean isVocab)
-
Value
public Value(int x)
-
Value
public Value(double x)
-
Value
public Value(java.lang.String str, boolean isVocab)
-
Value
public Value(java.lang.String str)
-
Value
public Value(SWIGTYPE_p_void data, int length)
-
Value
public Value(Value alt)
-
-
Method Detail
-
getCPtr
protected static long getCPtr(Value obj)
-
check
public boolean check(java.lang.String key)
-
check
public boolean check(java.lang.String key, java.lang.String comment)
-
findGroup
public Bottle findGroup(java.lang.String key)
-
findGroup
public Bottle findGroup(java.lang.String key, java.lang.String comment)
-
isBool
public boolean isBool()
-
isInt
public boolean isInt()
-
isInt64
public boolean isInt64()
-
isString
public boolean isString()
-
isDouble
public boolean isDouble()
-
isList
public boolean isList()
-
isDict
public boolean isDict()
-
isVocab
public boolean isVocab()
-
isBlob
public boolean isBlob()
-
asBool
public boolean asBool()
-
asInt
public int asInt()
-
asInt64
public SWIGTYPE_p_YARP_INT64 asInt64()
-
asVocab
public int asVocab()
-
asDouble
public double asDouble()
-
asString
public java.lang.String asString()
-
asList
public Bottle asList()
-
asDict
public Property asDict()
-
asSearchable
public Searchable asSearchable()
-
asBlob
public java.lang.String asBlob()
-
asBlobLength
public long asBlobLength()
-
read
public boolean read(ConnectionReader connection)
-
write
public boolean write(ConnectionWriter connection)
-
find
public Value find(java.lang.String key)
-
isEqual
public boolean isEqual(Value alt)
-
notEqual
public boolean notEqual(Value alt)
-
isEqual
public boolean isEqual(java.lang.String alt)
-
notEqual
public boolean notEqual(java.lang.String alt)
-
fromString
public void fromString(java.lang.String str)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
create
public Value create()
-
clone_c
public Value clone_c()
-
getCode
public int getCode()
-
isNull
public boolean isNull()
-
isLeaf
public boolean isLeaf()
-
makeInt
public static Value makeInt(int x)
-
makeDouble
public static Value makeDouble(double x)
-
makeString
public static Value makeString(java.lang.String str)
-
makeVocab
public static Value makeVocab(int v)
-
makeVocab
public static Value makeVocab(java.lang.String str)
-
makeBlob
public static Value makeBlob(SWIGTYPE_p_void data, int length)
-
makeList
public static Value makeList()
-
makeList
public static Value makeList(java.lang.String txt)
-
makeValue
public static Value makeValue(java.lang.String txt)
-
getNullValue
public static Value getNullValue()
-
toString_c
public java.lang.String toString_c()
-
-