summaryrefslogtreecommitdiff
path: root/src/com
diff options
context:
space:
mode:
authorStef <stef@ws.local>2004-06-15 03:23:27 +0000
committerStef <stef@ws.local>2004-06-15 03:23:27 +0000
commit74b5cef9682f131cfda45b2ede0eb2f2ab033d5e (patch)
tree7021b1ab0daf809e9fbd8d4d3a6ebf28f89ea4ce /src/com
parent33de0919d98e7a202ce6cbd9572adc26842652f0 (diff)
Name mapping and language mapping fixes.
Diffstat (limited to 'src/com')
-rw-r--r--src/com/memberwebs/ldapxml/LXReader.java6
-rw-r--r--src/com/memberwebs/ldapxml/map/LXSAXHandler.java8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/com/memberwebs/ldapxml/LXReader.java b/src/com/memberwebs/ldapxml/LXReader.java
index 4f62c01..5323e8e 100644
--- a/src/com/memberwebs/ldapxml/LXReader.java
+++ b/src/com/memberwebs/ldapxml/LXReader.java
@@ -509,7 +509,7 @@ public class LXReader
{
// Get the syntax for conversion functions
- LDAPAttributeSchema schattr = m_schema.getAttributeSchema(ldapattr.getName());
+ LDAPAttributeSchema schattr = m_schema.getAttributeSchema(ldapattr.getBaseName());
String syntax = "";
if(schattr != null)
@@ -524,7 +524,7 @@ public class LXReader
// for each value.
while(values.hasMoreElements())
{
- String val = m_convert.parse(ldapattr.getName(),
+ String val = m_convert.parse(ldapattr.getBaseName(),
syntax, (String)values.nextElement());
if(val == null)
continue;
@@ -544,7 +544,7 @@ public class LXReader
while(values.hasMoreElements())
{
- String val = m_convert.parse(ldapattr.getName(),
+ String val = m_convert.parse(ldapattr.getBaseName(),
syntax, (String)values.nextElement());
if(val == null)
continue;
diff --git a/src/com/memberwebs/ldapxml/map/LXSAXHandler.java b/src/com/memberwebs/ldapxml/map/LXSAXHandler.java
index 8ede4bb..84a54e8 100644
--- a/src/com/memberwebs/ldapxml/map/LXSAXHandler.java
+++ b/src/com/memberwebs/ldapxml/map/LXSAXHandler.java
@@ -475,12 +475,12 @@ class LXSAXHandler
private void addName(LXBase base)
{
String name = base.getName();
- if(base.m_xmlName != null && !m_nameMap.contains(base.m_xmlName))
- m_nameMap.put(base.m_xmlName, name);
+ if(base.m_xmlName != null && !m_nameMap.containsKey(base.m_xmlName))
+ m_nameMap.put(base.m_xmlName, name);
String xmlName = base.getXmlName();
- if(xmlName != null && !m_nameMap.contains(xmlName))
- m_nameMap.put(xmlName, name);
+ if(xmlName != null && !m_nameMap.containsKey(xmlName))
+ m_nameMap.put(xmlName, name);
if(m_nameSet != null)
m_nameSet.add(name);