|
xmlBlaster 1.6.2 contributions API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xmlBlaster.contrib.InfoHelper
InfoHelper offers helper methods for operations on I_Info objects.
| Constructor Summary | |
InfoHelper(I_Info info)
|
|
| Method Summary | |
static void |
fillInfoWithEntriesFromInfo(I_Info dest,
I_Info source)
Fills the I_Info with the entries of the map. |
static void |
fillInfoWithEntriesFromMap(I_Info info,
java.util.Map map)
Fills the I_Info with the entries of the map. |
static java.lang.String |
getIteratorAsString(java.util.Iterator iter)
|
static java.lang.String |
getIteratorAsString(java.util.Iterator iter,
java.lang.String separator)
Returns a string containing all entries found. |
static java.util.Map |
getObjectsWithKeyStartingWith(java.lang.String prefix,
I_Info info,
DbMetaHelper dbHelper)
Returns the subset of objects (not normal properties) found in the I_Info object starting with the specified prefix. |
static java.util.Map |
getPropertiesEndingWith(java.lang.String postfix,
I_Info info,
DbMetaHelper dbHelper,
java.lang.String newPostfix)
Returns the subset of properties found in the I_Info object ending with the specified postfix. |
static java.util.Map |
getPropertiesStartingWith(java.lang.String prefix,
I_Info info,
DbMetaHelper dbHelper)
|
static java.util.Map |
getPropertiesStartingWith(java.lang.String prefix,
I_Info info,
DbMetaHelper dbHelper,
java.lang.String newPrefix)
Returns the subset of properties found in the I_Info object starting with the specified prefix. |
static java.lang.String |
getStackTraceAsString(java.lang.Throwable ex)
Prints the stack trace as a String so it can be put on the normal logs. |
java.lang.String |
replace(java.lang.String txt)
|
void |
replaceAllEntries(I_Info info,
java.util.Set keysToIgnore)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InfoHelper(I_Info info)
| Method Detail |
public final java.lang.String replace(java.lang.String txt)
public void replaceAllEntries(I_Info info,
java.util.Set keysToIgnore)
public static java.util.Map getPropertiesStartingWith(java.lang.String prefix,
I_Info info,
DbMetaHelper dbHelper)
public static java.util.Map getPropertiesStartingWith(java.lang.String prefix,
I_Info info,
DbMetaHelper dbHelper,
java.lang.String newPrefix)
prefix - The prefix to use. If null is passed, then all properties
are returnedinfo - The I_Info object on which to operatedbHelper - the DbMetaHelper used to determine if the key and value have
to be moved to uppercase/lowcase or left untouched. Can be null, in which case it
is ignored.newPrefix - if not null, the map returned has the properties starting with the new prefix. So for
example if you specify prefix='db.' and have a property called 'db.url', and the newPrefix is called 'dbinfo.'
you will get 'dbinfo.url' in the return map as key.
public static java.util.Map getPropertiesEndingWith(java.lang.String postfix,
I_Info info,
DbMetaHelper dbHelper,
java.lang.String newPostfix)
postfix - The postfix to use. If null is passed, then all properties
are returnedinfo - The I_Info object on which to operatedbHelper - the DbMetaHelper used to determine if the key and value have
to be moved to uppercase/lowcase or left untouched. Can be null, in which case it
is ignored.newPostfix - if not null, the map returned has the properties ending with the new postfix. So for
example if you specify prefix='.class' and have a property called 'db.class', and the newPrefix is called '.java'
you will get 'db.java' in the return map as key.
public static java.util.Map getObjectsWithKeyStartingWith(java.lang.String prefix,
I_Info info,
DbMetaHelper dbHelper)
prefix - The prefix to use. If null is passed, then all objects are returnedinfo - The I_Info object on which to operatedbHelper - the DbMetaHelper used to determine if the keys have
to be moved to uppercase/lowcase or left untouched. Can be null, in which case it
is ignored.
public static void fillInfoWithEntriesFromMap(I_Info info,
java.util.Map map)
public static void fillInfoWithEntriesFromInfo(I_Info dest,
I_Info source)
public static java.lang.String getIteratorAsString(java.util.Iterator iter,
java.lang.String separator)
iter -
public static java.lang.String getIteratorAsString(java.util.Iterator iter)
public static java.lang.String getStackTraceAsString(java.lang.Throwable ex)
ex - The exception for which to write out the stack trace. If you pass null it will print the Stack trace of
a newly created exception.
|
xmlBlaster 1.6.2 contributions API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||