OLINGO-1318: incresing the method scope for the load core vocabularies

This commit is contained in:
Ramesh Reddy 2018-11-20 11:30:00 -06:00
parent c37d40f154
commit b1640c596c
1 changed files with 3 additions and 1 deletions

View File

@ -288,7 +288,7 @@ public class MetadataParser {
}
}
private void loadCoreVocabulary(SchemaBasedEdmProvider provider,
public void loadCoreVocabulary(SchemaBasedEdmProvider provider,
String namespace) throws XMLStreamException {
if("Org.OData.Core.V1".equalsIgnoreCase(namespace)) {
loadLocalVocabularySchema(provider, "Org.OData.Core.V1", "Org.OData.Core.V1.xml");
@ -296,6 +296,8 @@ public class MetadataParser {
loadLocalVocabularySchema(provider, "Org.OData.Capabilities.V1", "Org.OData.Capabilities.V1.xml");
} else if ("Org.OData.Measures.V1".equalsIgnoreCase(namespace)) {
loadLocalVocabularySchema(provider, "Org.OData.Measures.V1", "Org.OData.Measures.V1.xml");
} else {
throw new XMLStreamException("Unknown namespace to load vocabulary");
}
}