property lookups are not switched to lower case anymore.
This commit is contained in:
parent
57b09f6228
commit
7922cad8e4
1 changed files with 14 additions and 11 deletions
|
@ -864,10 +864,13 @@ public final class Node implements INode, Serializable {
|
||||||
|
|
||||||
public INode getSubnode (String subid) {
|
public INode getSubnode (String subid) {
|
||||||
// System.err.println ("GETSUBNODE : "+this+" > "+subid);
|
// System.err.println ("GETSUBNODE : "+this+" > "+subid);
|
||||||
Node retval = null;
|
|
||||||
if ("".equals (subid)) {
|
if ("".equals (subid)) {
|
||||||
return this;
|
return this;
|
||||||
} else if (subid != null) {
|
}
|
||||||
|
|
||||||
|
Node retval = null;
|
||||||
|
|
||||||
|
if (subid != null) {
|
||||||
|
|
||||||
loadNodes ();
|
loadNodes ();
|
||||||
if (subnodes == null || subnodes.size() == 0)
|
if (subnodes == null || subnodes.size() == 0)
|
||||||
|
@ -1274,13 +1277,13 @@ public final class Node implements INode, Serializable {
|
||||||
return prop;
|
return prop;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getString (String propname, String defaultValue, boolean inherit) {
|
/* public String getString (String propname, String defaultValue, boolean inherit) {
|
||||||
String propValue = getString (propname, inherit);
|
String propValue = getString (propname, inherit);
|
||||||
return propValue == null ? defaultValue : propValue;
|
return propValue == null ? defaultValue : propValue;
|
||||||
}
|
} */
|
||||||
|
|
||||||
public String getString (String propname, boolean inherit) {
|
public String getString (String propname, boolean inherit) {
|
||||||
propname = propname.toLowerCase ();
|
// propname = propname.toLowerCase ();
|
||||||
Property prop = getProperty (propname, inherit);
|
Property prop = getProperty (propname, inherit);
|
||||||
try {
|
try {
|
||||||
return prop.getStringValue ();
|
return prop.getStringValue ();
|
||||||
|
@ -1289,7 +1292,7 @@ public final class Node implements INode, Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getInteger (String propname, boolean inherit) {
|
public long getInteger (String propname, boolean inherit) {
|
||||||
propname = propname.toLowerCase ();
|
// propname = propname.toLowerCase ();
|
||||||
Property prop = getProperty (propname, inherit);
|
Property prop = getProperty (propname, inherit);
|
||||||
try {
|
try {
|
||||||
return prop.getIntegerValue ();
|
return prop.getIntegerValue ();
|
||||||
|
@ -1298,7 +1301,7 @@ public final class Node implements INode, Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getFloat (String propname, boolean inherit) {
|
public double getFloat (String propname, boolean inherit) {
|
||||||
propname = propname.toLowerCase ();
|
// propname = propname.toLowerCase ();
|
||||||
Property prop = getProperty (propname, inherit);
|
Property prop = getProperty (propname, inherit);
|
||||||
try {
|
try {
|
||||||
return prop.getFloatValue ();
|
return prop.getFloatValue ();
|
||||||
|
@ -1307,7 +1310,7 @@ public final class Node implements INode, Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getDate (String propname, boolean inherit) {
|
public Date getDate (String propname, boolean inherit) {
|
||||||
propname = propname.toLowerCase ();
|
// propname = propname.toLowerCase ();
|
||||||
Property prop = getProperty (propname, inherit);
|
Property prop = getProperty (propname, inherit);
|
||||||
try {
|
try {
|
||||||
return prop.getDateValue ();
|
return prop.getDateValue ();
|
||||||
|
@ -1317,7 +1320,7 @@ public final class Node implements INode, Serializable {
|
||||||
|
|
||||||
|
|
||||||
public boolean getBoolean (String propname, boolean inherit) {
|
public boolean getBoolean (String propname, boolean inherit) {
|
||||||
propname = propname.toLowerCase ();
|
// propname = propname.toLowerCase ();
|
||||||
Property prop = getProperty (propname, inherit);
|
Property prop = getProperty (propname, inherit);
|
||||||
try {
|
try {
|
||||||
return prop.getBooleanValue ();
|
return prop.getBooleanValue ();
|
||||||
|
@ -1326,7 +1329,7 @@ public final class Node implements INode, Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public INode getNode (String propname, boolean inherit) {
|
public INode getNode (String propname, boolean inherit) {
|
||||||
propname = propname.toLowerCase ();
|
// propname = propname.toLowerCase ();
|
||||||
Property prop = getProperty (propname, inherit);
|
Property prop = getProperty (propname, inherit);
|
||||||
try {
|
try {
|
||||||
return prop.getNodeValue ();
|
return prop.getNodeValue ();
|
||||||
|
@ -1335,7 +1338,7 @@ public final class Node implements INode, Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Object getJavaObject (String propname, boolean inherit) {
|
public Object getJavaObject (String propname, boolean inherit) {
|
||||||
propname = propname.toLowerCase ();
|
// propname = propname.toLowerCase ();
|
||||||
Property prop = getProperty (propname, inherit);
|
Property prop = getProperty (propname, inherit);
|
||||||
try {
|
try {
|
||||||
return prop.getJavaObjectValue ();
|
return prop.getJavaObjectValue ();
|
||||||
|
|
Loading…
Add table
Reference in a new issue