/**
* Prints C++ constant declarations for xml namespaces.
*/
protected void printNamespaceConstantDecls(PrintStream stream) {
XSNamespaceItemList namespaceItems = getModel().getNamespaceItems();
for (int i = 0; i < namespaceItems.getLength(); i++) {
String namespace = namespaceItems.item(i).getSchemaNamespace();
if (namespace != null) {
String stringName = Util.createNamespaceStringConstantName(namespace, config);
PrinterUtils.printCppStringConstantDecl(stream, stringName);
String hashName = Util.createNamespaceHashConstantName(namespace, config);
PrinterUtils.printCppHashConstant(stream, hashName, namespace);