}
else if (localName.equals("persistence-unit"))
{
// New "persistence-unit"
PersistenceFileMetaData filemd = (PersistenceFileMetaData)getStack();
PersistenceUnitMetaData pumd = new PersistenceUnitMetaData(getAttr(attrs, "name"),
getAttr(attrs, "transaction-type"), rootURI);
filemd.addPersistenceUnit(pumd);
pushStack(pumd);
}
else if (localName.equals("properties"))
{
// Do nothing
}
else if (localName.equals("property"))
{
// New "property" for the current persistence unit
PersistenceUnitMetaData pumd = (PersistenceUnitMetaData)getStack();
pumd.addProperty(getAttr(attrs, "name"), getAttr(attrs, "value"));
}
else if (localName.equals("mapping-file"))
{
// Processed elsewhere
}
else if (localName.equals("class"))
{
// Processed elsewhere
}
else if (localName.equals("jar-file"))
{
// Processed elsewhere
}
else if (localName.equals("jta-data-source"))
{
// Processed elsewhere
}
else if (localName.equals("non-jta-data-source"))
{
// Processed elsewhere
}
else if (localName.equals("description"))
{
// Processed elsewhere
}
else if (localName.equals("provider"))
{
// Processed elsewhere
}
else if (localName.equals("shared-cache-mode"))
{
// Processed elsewhere
}
else if (localName.equals("validation-mode"))
{
// Processed elsewhere
}
else if (localName.equals("exclude-unlisted-classes"))
{
PersistenceUnitMetaData pumd = (PersistenceUnitMetaData)getStack();
pumd.setExcludeUnlistedClasses();
}
else
{
String message = LOCALISER.msg("044037",qName);
NucleusLogger.METADATA.error(message);