public class ConfigTemplate
extends java.lang.Object
Constructor and Description |
---|
ConfigTemplate(java.util.Map props) |
Modifier and Type | Method and Description |
---|---|
void |
clearPrivateReport() |
void |
close() |
boolean |
containsItem(java.lang.String item) |
boolean |
containsKey(java.lang.String key) |
java.util.List<java.lang.String> |
diff(java.util.List a)
It diffs the list with the internal data and returns an List with
details of differences.
|
java.util.Map<java.lang.String,java.lang.Object> |
diff(java.util.Map props)
It diffs the props with the internal data and returns a Map with
details of differences, excluding the property template if it is
included in the props.
|
protected void |
finalize() |
java.lang.String |
getItem(int i)
returns the i-th item
|
java.util.List<java.lang.String> |
getItemList()
It returns the list of items generated by the reporter or null if it is
static or skipped
|
java.lang.String |
getKey(int i)
returns the name of the i-th config
|
java.lang.String |
getName() |
java.util.Map |
getProps(java.lang.String item)
returns the property map for a given item
|
java.util.Map |
getSharedReport()
returns the shared report with the list of items
|
int |
getSize()
returns the total number of items or keys
|
boolean |
isDynamic() |
boolean |
isPropertyChanged(java.util.Map props)
returns true if the property template differs from the internal cache
|
java.lang.String |
remove(java.lang.String item)
removes an item from the list and returns its key or null otherwise
|
java.util.Map |
removePrivateReport(java.lang.String item)
returns the removed private report for the item
|
void |
resetReporter(java.util.Map props)
initializes or reloads the reporter
|
boolean |
resetTemplate(java.lang.String text)
it resets the name template and keys and returns true on success
|
int |
updateItems(java.util.List list)
updates the internal item list and returns number of items
|
boolean |
withPrivateReport() |
boolean |
withSharedReport() |
public void resetReporter(java.util.Map props)
public boolean resetTemplate(java.lang.String text)
public java.util.List<java.lang.String> getItemList() throws java.lang.Exception
java.lang.Exception
public int updateItems(java.util.List list)
public java.util.Map getProps(java.lang.String item)
public boolean isPropertyChanged(java.util.Map props)
public java.lang.String getName()
public boolean isDynamic()
public boolean withSharedReport()
public java.util.Map getSharedReport()
public boolean withPrivateReport()
public java.util.Map removePrivateReport(java.lang.String item)
public void clearPrivateReport()
public int getSize()
public java.lang.String getKey(int i)
public java.lang.String getItem(int i)
public boolean containsKey(java.lang.String key)
public boolean containsItem(java.lang.String item)
public java.lang.String remove(java.lang.String item)
public java.util.Map<java.lang.String,java.lang.Object> diff(java.util.Map props)
public java.util.List<java.lang.String> diff(java.util.List a)
public void close()
protected void finalize()
finalize
in class java.lang.Object