| org.libelektra.Key(3elektra) | Elektra | org.libelektra.Key(3elektra) |
NAME¶
org.libelektra.Key - Key is an essential class that encapsulates key name , value and metainfo.
SYNOPSIS¶
Inherits Iterable< String >.
Public Member Functions¶
void release ()
Clean-up method to release key reference. boolean isNull ()
Helper function that does null comparison. String toString ()
Basic java function that represents object as String. java.util.Iterator<
String > iterator ()
Iterable interface function. boolean getBoolean ()
Data type specific accessor function. byte getByte ()
Data type specific accessor function. short getShort ()
Data type specific accessor function. int getInteger ()
Data type specific accessor function. long getLong ()
Data type specific accessor function. float getFloat ()
Data type specific accessor function. double getDouble ()
Data type specific accessor function. void setBoolean (final boolean v)
Data type specific setter function. void setByte (final byte v)
Data type specific setter function. void setShort (final short v)
Data type specific setter function. void setInteger (final int v)
Data type specific setter function. void setLong (final long v)
Data type specific setter function. void setFloat (final float v)
Data type specific setter function. void setDouble (final double v)
Data type specific setter function. void setError (final String text,
final Object... args)
Helper function to set proper error meta for key. void addWarning
(final String text, final Object... args)
Helper function to add warning meta for key. Key dup ()
Duplicates the key. void copy (final Key source)
Copies the information from the source key into this key. int getRef ()
Gets the reference counter for this key. int rewindMeta ()
Tries to rewind the meta information for this key. Key nextMeta
()
Gets the next meta information for this key. Key currentMeta ()
Gets the current meta information for this key. int copyMeta (final
Key source, final String metaName)
Helper function to copy some meta information from a source Key to this
key. int copyAllMeta (final Key source)
Helper function to copy all meta information from a source key to this key.
Key getMeta (final String metaName)
Getter for meta information. int setMeta (final String metaName, final
String newMetaString)
Setter for meta information. int cmp (final Key other)
Helper function to compare two keys. int rel (final Key other)
Helper function to check for relation between keys. int needsSync ()
Helper function to check if synchronization is necessary. boolean
isBelow (final Key other)
Helper function to check if key is sub-key of other key. boolean
isBelowOrSame (final Key other)
Helper function to check if key is other key or sub-key of other key. boolean
isDirectBelow (final Key other)
Helper function to check if key is direct sub-key of other key. boolean
isInactive ()
Helper function to check if key is set to inactive. boolean isBinary ()
Helper function to check if key is binary key. boolean isString ()
Helper function to check if key is string key. String getName ()
Helper function to get key name (key part of 'key-value' pair) int
getNameSize ()
Helper function to get key name size. void setName (final String name)
throws KeyInvalidName
Helper function to set key name. String getBaseName ()
Helper function to get key base name. int getBaseNameSize ()
Helper function to get key base name length. void setBaseName (final
String baseName) throws KeyInvalidName
Helper function to set key base name; will replace current base name with new
base name. void addBaseName (final String baseName) throws
KeyInvalidName
Helper function to add key base name; will add given base name to current key
so that new key is sub key of current key. int getValueSize ()
Helper function to get key value size/length. String getString ()
throws KeyTypeMismatch
Helper function to get representation of key value. int setString
(final String newString)
Helper function to set new key value.
Static Public Member Functions¶
static Key create (final String name, final Object
value, final Key... meta)
Basic constructor of key class. static Key create (final String
name, final Key... meta)
Basic constructor of key class.
Protected Member Functions¶
Key (final long p)
Helper constructor for duplication by pointer in long format. Key
(final Pointer p)
Helper constructor for duplication by pointer. void finalize () throws
Throwable
Clean-up method to inform underlying c-library about the release of the key
reference in jna-binding. void incRef ()
Increments the reference counter for this key. void decRef ()
Decrements the reference counter for this key. Pointer get ()
Native pointer used by JNA.
Static Protected Member Functions¶
static Key create (final String name, final
Object... args)
Basic constructor of key class.
Detailed Description¶
Key is an essential class that encapsulates key name , value and metainfo.
Constructor & Destructor Documentation¶
org.libelektra.Key.Key (final long p) [inline], [protected]¶
Helper constructor for duplication by pointer in long format.
Parameters:
org.libelektra.Key.Key (final Pointer p) [inline], [protected]¶
Helper constructor for duplication by pointer.
Parameters:
Member Function Documentation¶
void org.libelektra.Key.addBaseName (final String baseName) throws KeyInvalidName [inline]¶
Helper function to add key base name; will add given base name to current key so that new key is sub key of current key.
Parameters:
Exceptions:
void org.libelektra.Key.addWarning (final String text, final Object... args) [inline]¶
Helper function to add warning meta for key.
Parameters:
args Custom arguments
int org.libelektra.Key.cmp (final Key other) [inline]¶
Helper function to compare two keys. Compares the key name with normal String comparison.
Parameters:
Returns:
void org.libelektra.Key.copy (final Key source) [inline]¶
Copies the information from the source key into this key. Does nothing if null is provided.
Parameters:
int org.libelektra.Key.copyAllMeta (final Key source) [inline]¶
Helper function to copy all meta information from a source key to this key.
Parameters:
Returns:
int org.libelektra.Key.copyMeta (final Key source, final String metaName) [inline]¶
Helper function to copy some meta information from a source Key to this key.
Parameters:
metaName Key name of the meta to be copied
Returns:
static Key org.libelektra.Key.create (final String name, final Object... args) [inline], [static], [protected]¶
Basic constructor of key class.
Parameters:
args Arguments used for key value. Example:
Key.KEY_VALUE, 'custom key value', Key.KEY_END
Returns:
static Key org.libelektra.Key.create (final String name, final Object value, final Key... meta) [inline], [static]¶
Basic constructor of key class.
Parameters:
value Key value; will be determine from the object by calling Object#toString(), null is supported too
meta Metadata that should be added to this key, null keys will be filtered away
Returns:
static Key org.libelektra.Key.create (final String name, final Key... meta) [inline], [static]¶
Basic constructor of key class.
Parameters:
meta Metadata that should be added to this key. Will filter null values.
Returns:
Key org.libelektra.Key.currentMeta () [inline]¶
Gets the current meta information for this key.
Returns:
Key org.libelektra.Key.dup () [inline]¶
Duplicates the key.
Returns:
Pointer org.libelektra.Key.get () [inline], [protected]¶
Native pointer used by JNA.
Returns:
String org.libelektra.Key.getBaseName () [inline]¶
Helper function to get key base name.
Returns:
int org.libelektra.Key.getBaseNameSize () [inline]¶
Helper function to get key base name length.
Returns:
boolean org.libelektra.Key.getBoolean () [inline]¶
Data type specific accessor function.
Returns:
byte org.libelektra.Key.getByte () [inline]¶
Data type specific accessor function.
Returns:
double org.libelektra.Key.getDouble () [inline]¶
Data type specific accessor function.
Returns:
float org.libelektra.Key.getFloat () [inline]¶
Data type specific accessor function.
Returns:
int org.libelektra.Key.getInteger () [inline]¶
Data type specific accessor function.
Returns:
long org.libelektra.Key.getLong () [inline]¶
Data type specific accessor function.
Returns:
Key org.libelektra.Key.getMeta (final String metaName) [inline]¶
Getter for meta information.
Parameters:
Returns:
String org.libelektra.Key.getName () [inline]¶
Helper function to get key name (key part of 'key-value' pair)
Returns:
int org.libelektra.Key.getNameSize () [inline]¶
Helper function to get key name size.
Returns:
int org.libelektra.Key.getRef () [inline]¶
Gets the reference counter for this key.
Returns:
short org.libelektra.Key.getShort () [inline]¶
Data type specific accessor function.
Returns:
String org.libelektra.Key.getString () throws KeyTypeMismatch [inline]¶
Helper function to get representation of key value.
Returns:
Exceptions:
int org.libelektra.Key.getValueSize () [inline]¶
Helper function to get key value size/length.
Returns:
boolean org.libelektra.Key.isBelow (final Key other) [inline]¶
Helper function to check if key is sub-key of other key.
Parameters:
Returns:
boolean org.libelektra.Key.isBelowOrSame (final Key other) [inline]¶
Helper function to check if key is other key or sub-key of other key.
Parameters:
Returns:
boolean org.libelektra.Key.isBinary () [inline]¶
Helper function to check if key is binary key.
Returns:
boolean org.libelektra.Key.isDirectBelow (final Key other) [inline]¶
Helper function to check if key is direct sub-key of other key.
Parameters:
Returns:
boolean org.libelektra.Key.isInactive () [inline]¶
Helper function to check if key is set to inactive.
Returns:
boolean org.libelektra.Key.isNull () [inline]¶
Helper function that does null comparison.
Returns:
boolean org.libelektra.Key.isString () [inline]¶
Helper function to check if key is string key.
Returns:
java.util.Iterator<String> org.libelektra.Key.iterator () [inline]¶
Iterable interface function.
Returns:
int org.libelektra.Key.needsSync () [inline]¶
Helper function to check if synchronization is necessary.
Returns:
Key org.libelektra.Key.nextMeta () [inline]¶
Gets the next meta information for this key.
Returns:
int org.libelektra.Key.rel (final Key other) [inline]¶
Helper function to check for relation between keys.
Parameters:
Returns:
int org.libelektra.Key.rewindMeta () [inline]¶
Tries to rewind the meta information for this key.
Returns:
void org.libelektra.Key.setBaseName (final String baseName) throws KeyInvalidName [inline]¶
Helper function to set key base name; will replace current base name with new base name.
Parameters:
Exceptions:
void org.libelektra.Key.setBoolean (final boolean v) [inline]¶
Data type specific setter function.
Parameters:
void org.libelektra.Key.setByte (final byte v) [inline]¶
Data type specific setter function.
Parameters:
void org.libelektra.Key.setDouble (final double v) [inline]¶
Data type specific setter function.
Parameters:
void org.libelektra.Key.setError (final String text, final Object... args) [inline]¶
Helper function to set proper error meta for key.
Parameters:
args Custom arguments
void org.libelektra.Key.setFloat (final float v) [inline]¶
Data type specific setter function.
Parameters:
void org.libelektra.Key.setInteger (final int v) [inline]¶
Data type specific setter function.
Parameters:
void org.libelektra.Key.setLong (final long v) [inline]¶
Data type specific setter function.
Parameters:
int org.libelektra.Key.setMeta (final String metaName, final String newMetaString) [inline]¶
Setter for meta information.
Parameters:
newMetaString Meta value to be set
Returns:
void org.libelektra.Key.setName (final String name) throws KeyInvalidName [inline]¶
Helper function to set key name.
Parameters:
Exceptions:
void org.libelektra.Key.setShort (final short v) [inline]¶
Data type specific setter function.
Parameters:
int org.libelektra.Key.setString (final String newString) [inline]¶
Helper function to set new key value.
Parameters:
Returns:
String org.libelektra.Key.toString () [inline]¶
Basic java function that represents object as String.
Returns:
Author¶
Generated automatically by Doxygen for Elektra from the source code.
| Mon Jan 15 2018 | Version 0.8.20 |