|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttigase.conf.ConfigItem
public class ConfigItem
Created: Dec 10, 2009 2:40:26 PM
Nested Class Summary | |
---|---|
static class |
ConfigItem.FLAGS
Enum description |
Field Summary | |
---|---|
static String |
CLUSTER_NODE_ATTR
Field description |
static String |
COMPONENT_NAME_ATTR
Field description |
static String |
COMPONENT_NAME_LABEL
Field description |
static String |
FLAG_ATTR
Field description |
static String |
KEY_NAME_ATTR
Field description |
static String |
KEY_NAME_LABEL
Field description |
static String |
NODE_NAME_ATTR
Field description |
static String |
NODE_NAME_LABEL
Field description |
static String |
REPO_ITEM_ELEM_NAME
Field description |
static String |
VALUE_ATTR
Field description |
static String |
VALUE_LABEL
Field description |
static String |
VALUE_TYPE_ATTR
Field description |
Constructor Summary | |
---|---|
ConfigItem()
|
Method Summary | |
---|---|
void |
addCommandFields(Packet packet)
Method description |
String |
getClusterNode()
Method description |
String |
getCompName()
Method description |
String |
getConfigKey()
Returns a configuration property key which is constructed in a following way:
nodeName + "/" + keyName
|
Object |
getConfigVal()
Returns a configuration property value. |
String |
getConfigValToString()
Method description |
ConfigItem.FLAGS |
getFlag()
Method description |
String |
getKey()
Returns ConfigItem key which is constructed in a following way:
compName + "/" + nodeName + "/" + keyName
|
String |
getKeyName()
Returns a property key which is constructed in a following way:
keyName
|
String |
getNodeName()
Method description |
void |
initFromCommand(Packet packet)
Method description |
void |
initFromElement(tigase.xml.Element elem)
Method description |
void |
initFromPropertyString(String propString)
Method description |
boolean |
isCompNodeKey(String comp,
String node,
String key)
Method description |
boolean |
isComponent(String comp)
Checks if the given component name is equal to this item compName. |
boolean |
isKey(String key)
Checks if the given key is equal to this item keyName. |
boolean |
isNode(String node)
Checks if the given node is equal to this item nodeName |
boolean |
isNodeKey(String node,
String key)
Checks if the given node and key are equal to this item nodeName and keyName. |
void |
set(String compName,
String nodeName,
String key,
Object value)
Method description |
void |
set(String compName_m,
String nodeName_m,
String key_m,
String value_str_m,
char val_type_m,
String flag_str_m)
Method description |
void |
set(String clusterNode,
String compName,
String nodeName,
String key,
Object value)
Method description |
void |
set(String clusterNode_m,
String compName_m,
String nodeName_m,
String key_m,
Object value_m,
ConfigItem.FLAGS flag_m)
Method description |
void |
set(String clusterNode_m,
String compName_m,
String nodeName_m,
String key_m,
String value_str_m,
char val_type_m,
String flag_str_m)
Method description |
void |
setNodeKey(String clusterNode,
String compName,
String nodeKey,
Object value)
Method description |
tigase.xml.Element |
toElement()
Method description |
String |
toPropertyString()
Method description |
String |
toString()
Method description |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String REPO_ITEM_ELEM_NAME
public static final String CLUSTER_NODE_ATTR
public static final String COMPONENT_NAME_ATTR
public static final String NODE_NAME_ATTR
public static final String KEY_NAME_ATTR
public static final String VALUE_ATTR
public static final String FLAG_ATTR
public static final String VALUE_TYPE_ATTR
public static final String COMPONENT_NAME_LABEL
public static final String NODE_NAME_LABEL
public static final String KEY_NAME_LABEL
public static final String VALUE_LABEL
Constructor Detail |
---|
public ConfigItem()
Method Detail |
---|
public void addCommandFields(Packet packet)
addCommandFields
in interface RepositoryItem
packet
- public String getClusterNode()
public String getCompName()
public String getConfigKey()
nodeName + "/" + keyName
public Object getConfigVal()
public String getConfigValToString()
public ConfigItem.FLAGS getFlag()
public String getKey()
compName + "/" + nodeName + "/" + keyName
getKey
in interface RepositoryItem
public String getKeyName()
keyName
public String getNodeName()
public void initFromCommand(Packet packet)
initFromCommand
in interface RepositoryItem
packet
- public void initFromElement(tigase.xml.Element elem)
initFromElement
in interface RepositoryItem
elem
- public void initFromPropertyString(String propString)
initFromPropertyString
in interface RepositoryItem
propString
- public boolean isCompNodeKey(String comp, String node, String key)
comp
- node
- key
-
public boolean isComponent(String comp)
comp
-
public boolean isKey(String key)
key
-
public boolean isNode(String node)
node
-
public boolean isNodeKey(String node, String key)
isNode(node) && isKey(key)
node
- key
-
public void set(String clusterNode_m, String compName_m, String nodeName_m, String key_m, String value_str_m, char val_type_m, String flag_str_m)
clusterNode_m
- compName_m
- nodeName_m
- key_m
- value_str_m
- val_type_m
- flag_str_m
- public void set(String clusterNode_m, String compName_m, String nodeName_m, String key_m, Object value_m, ConfigItem.FLAGS flag_m)
clusterNode_m
- compName_m
- nodeName_m
- key_m
- value_m
- flag_m
- public void set(String compName_m, String nodeName_m, String key_m, String value_str_m, char val_type_m, String flag_str_m)
compName_m
- nodeName_m
- key_m
- value_str_m
- val_type_m
- flag_str_m
- public void set(String compName, String nodeName, String key, Object value)
compName
- nodeName
- key
- value
- public void set(String clusterNode, String compName, String nodeName, String key, Object value)
clusterNode
- compName
- nodeName
- key
- value
- public void setNodeKey(String clusterNode, String compName, String nodeKey, Object value)
clusterNode
- compName
- nodeKey
- value
- public tigase.xml.Element toElement()
toElement
in interface RepositoryItem
public String toPropertyString()
toPropertyString
in interface RepositoryItem
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |