public final void addDeclaration(Model model, boolean topLevel)
{
if (!inheritedPropertyUsageError(model.getId(), model.getType(), model.getXmlLineNumber()))
{
if (model instanceof DesignLayer)
layerDeclarations.add(new InitializedPropertyDeclaration(model, topLevel, model.getXmlLineNumber()));
declarations.put(model.getId(), new InitializedPropertyDeclaration(model, topLevel, model.getXmlLineNumber()));
}
}