String token = (String)tokenList.get(i);
if (processType) {
type = MonitoredObjectType.getMonitoredObjectTypeOrNull(token);
if (type == null) {
String msg = localStrings.getString( "admin.monitor.invalid_entry", dottedName, token );
throw new MalformedNameException( msg );
}
String typeName = type.getTypeName();
if (type.isSingleton()) {
swapNameType(props, typeName, typeName);
processType = true;
type = null;
} else {
processType = false;
}
} else {
swapNameType(props, type.getTypeName(), token);
processType = true;
type = null;
}
}
ParsedDottedName result = new ParsedDottedName();
try {
result.objectName = new ObjectName(ObjectNames.kDefaultIASDomainName,
props);
} catch (MalformedObjectNameException ione) {
throw new MalformedNameException(ione.getMessage());
}
// type != null -- Means that a name was expected in parsing. For
// LIST command implies list of objects of this type. For GET command
// implies all specified attribute(or wildcard) of on specified type of
// objects.