return null;
}
public void setSchemaLocation(String schemaLocation)
{
EMap xsiSchemaLocationMap = getSchemaLocationMap();
if (xsiSchemaLocationMap != null)
{
// only remove the entries from xsiSchemaLocationMap that contain a
// non-null key
for (Iterator i = xsiSchemaLocationMap.entrySet().iterator(); i.hasNext();)
{
Map.Entry entry = (Map.Entry) i.next();
if (entry.getKey() != null)
{
i.remove();
}
}
if (xsiSchemaLocationMap.size() == 0)
{
resource.getDefaultSaveOptions().put(
XMLResource.OPTION_SCHEMA_LOCATION, Boolean.FALSE);
}
if (schemaLocation != null)
{
String[] values = schemaLocation.split(WHITESPACE_REGEX);
for (int i = 0; i < values.length; i++) // note: also incremented in
// loop
{
String key = values[i++];
if (i < values.length)
{
xsiSchemaLocationMap.put(key, resolve(values[i]));
}
}
if (xsiSchemaLocationMap.size() != 0)
{
resource.getDefaultSaveOptions().put(
XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
}
}