static private Version forNamespaceURI(String namespaceURI){ if(("").equals(namespaceURI)){ return ImportFilter.version; } return Version.forNamespaceURI(namespaceURI); }
private void updateSource(String namespaceURI){ if(("").equals(namespaceURI)){ return; } // End if if(this.sourceNamespaceURI != null && (this.sourceNamespaceURI).equals(namespaceURI)){ return; } Version version = Version.forNamespaceURI(namespaceURI); Version source = getSource(); if(source != null && !(source).equals(version)){ throw new IllegalStateException(); } // Keep the String reference of the namespaceURI argument, as opposed to getting one using Version#getNamespaceURI(). // If the same String instance is reused, which is typical, // then String#equals(String) will be able to return quickly by performing an identity comparison this.sourceNamespaceURI = namespaceURI; setSource(version); }
private void updateSource(String namespaceURI){ if(("").equals(namespaceURI)){ return; } // End if if(this.sourceNamespaceURI != null && (this.sourceNamespaceURI).equals(namespaceURI)){ return; } Version version = Version.forNamespaceURI(namespaceURI); Version source = getSource(); if(source != null && !(source).equals(version)){ throw new IllegalStateException(); } // Keep the String reference of the namespaceURI argument, as opposed to getting one using Version#getNamespaceURI(). // If the same String instance is reused, which is typical, // then String#equals(String) will be able to return quickly by performing an identity comparison this.sourceNamespaceURI = namespaceURI; setSource(version); }
Version.forNamespaceURI("http://www.dmg.org/PMML-2_0"); Version.forNamespaceURI("http://www.dmg.org/PMML-3_0"); Version.forNamespaceURI("http://www.dmg.org/PMML-3_2"); Version.forNamespaceURI("http://www.dmg.org/PMML-4_0"); Version.forNamespaceURI("http://www.dmg.org/PMML-4_3"); Version.forNamespaceURI("http://www.dmg.org/PMML-4_4"); Version.forNamespaceURI("http://www.dmg.org/PMML-5_0");