}
else if (localName.equals("persistence-unit"))
{
// New "persistence-unit"
PersistenceFileMetaData filemd = (PersistenceFileMetaData)getStack();
PersistenceUnitMetaData pumd = new PersistenceUnitMetaData(filemd,
getAttr(attrs, "name"), getAttr(attrs, "transaction-type"));
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("exclude-unlisted-classes"))
{
PersistenceUnitMetaData pumd = (PersistenceUnitMetaData)getStack();
pumd.setExcludeUnlistedClasses();
}
else
{
String message = LOCALISER.msg("044037",qName);
JPOXLogger.METADATA.error(message);