public String getShortMessage() { String namespace = name.getNamespaceURI(); if (DeprecatedNamespaceHelper.isDeprecatedNamespace(namespace)) { return "The element uses the deprecated namespace " + namespace + ". Please change it to " + org.fabric3.api.Namespaces.F3; } else { return "The element " + name + " was not recognized"; } }
public String getMessage() { String namespace = name.getNamespaceURI(); if (DeprecatedNamespaceHelper.isDeprecatedNamespace(namespace)) { if (getLine() == -1) { return "The element specified in " + getResourceURI() + " uses the deprecated namespace " + namespace + ". Please change it to " + org.fabric3.api.Namespaces.F3; } return "The element specified in " + getResourceURI() + " at " + getLine() + "," + getColumn() + " uses the deprecated namespace " + namespace + ". Please change it to " + org.fabric3.api.Namespaces.F3; } else { if (getLine() == -1) { return "The element " + name + " specified in " + getResourceURI() + " was not recognized. " + "If this is not a typo, check to ensure extensions are configured properly."; } return "The element " + name + " specified in " + getResourceURI() + " at " + getLine() + "," + getColumn() + " was not recognized. " + "If this is not a typo, check to ensure extensions are configured properly."; } }