@Test public void defaultContainerNameGeneration() throws ODataException { @SuppressWarnings({ "unchecked", "rawtypes" }) AnnotationEdmProvider localAep = new AnnotationEdmProvider((Collection) Arrays.asList(GeneratedNamesTestClass.class)); EntityContainerInfo containerInfo = localAep.getEntityContainerInfo(null); assertNotNull(containerInfo); assertEquals("DefaultContainer", containerInfo.getName()); }
@Override public EntityContainerInfo getEntityContainerInfo(final String name) throws ODataException { EntityContainer container = name2Container.get(name); if (container == null) { container = defaultContainer; } if (container != null) { EntityContainerInfo info = new EntityContainerInfo(); info.setName(container.getName()); info.setDefaultEntityContainer(container.isDefaultEntityContainer()); info.setExtendz(container.getExtendz()); info.setAnnotationAttributes(container.getAnnotationAttributes()); info.setAnnotationElements(container.getAnnotationElements()); return info; } return null; }
AnnotationEdmProvider extends EdmProvider { @Override public EntityContainerInfo getEntityContainerInfo(final String name) throws ODataException { EntityContainer container = name2Container.get(name); if (container == null) { container = defaultContainer; } if (container != null) { EntityContainerInfo info = new EntityContainerInfo(); info.setName(container.getName()); info.setDefaultEntityContainer(container.isDefaultEntityContainer()); info.setExtendz(container.getExtendz()); info.setAnnotationAttributes(container.getAnnotationAttributes()); info.setAnnotationElements(container.getAnnotationElements()); return info; } return null; } }
AnnotationEdmProvider extends EdmProvider { @Override public EntityContainerInfo getEntityContainerInfo(final String name) throws ODataException { EntityContainer container = name2Container.get(name); if (container == null) { container = defaultContainer; } if (container != null) { EntityContainerInfo info = new EntityContainerInfo(); info.setName(container.getName()); info.setDefaultEntityContainer(container.isDefaultEntityContainer()); info.setExtendz(container.getExtendz()); info.setAnnotationAttributes(container.getAnnotationAttributes()); info.setAnnotationElements(container.getAnnotationElements()); return info; } return null; } AnnotationEdmProvider(final Collection<Class<?>> annotatedClasses);  AnnotationEdmProvider(final String packageToScan); }
AnnotationEdmProvider extends EdmProvider { @Override public EntityContainerInfo getEntityContainerInfo(final String name) throws ODataException { EntityContainer container = name2Container.get(name); if (container == null) { container = defaultContainer; } if (container != null) { EntityContainerInfo info = new EntityContainerInfo(); info.setName(container.getName()); info.setDefaultEntityContainer(container.isDefaultEntityContainer()); info.setExtendz(container.getExtendz()); info.setAnnotationAttributes(container.getAnnotationAttributes()); info.setAnnotationElements(container.getAnnotationElements()); return info; } return null; } AnnotationEdmProvider(final Collection<Class<?>> annotatedClasses);  AnnotationEdmProvider(final String packageToScan); @Override Association getAssociation(final FullQualifiedName edmFQName); @Override AssociationSet getAssociationSet(final String entityContainer, final FullQualifiedName association,
      final String sourceEntitySetName, final String sourceEntitySetRole); @Override ComplexType getComplexType(final FullQualifiedName edmFQName); @Override EntityContainerInfo getEntityContainerInfo(final String name); @Override EntitySet getEntitySet(final String entityContainer, final String name); @Override EntityType getEntityType(final FullQualifiedName edmFQName); @Override FunctionImport getFunctionImport(final String entityContainer, final String name); @Override List<Schema> getSchemas(); }
AnnotationEdmProvider extends EdmProvider { @Override public EntityContainerInfo getEntityContainerInfo(final String name) throws ODataException { EntityContainer container = name2Container.get(name); if (container == null) { container = defaultContainer; } if (container != null) { EntityContainerInfo info = new EntityContainerInfo(); info.setName(container.getName()); info.setDefaultEntityContainer(container.isDefaultEntityContainer()); info.setExtendz(container.getExtendz()); info.setAnnotationAttributes(container.getAnnotationAttributes()); info.setAnnotationElements(container.getAnnotationElements()); return info; } return null; } AnnotationEdmProvider(final Collection<Class<?>> annotatedClasses);  AnnotationEdmProvider(final String packageToScan); @Override Association getAssociation(final FullQualifiedName edmFQName); @Override AssociationSet getAssociationSet(final String entityContainer, final FullQualifiedName association,
      final String sourceEntitySetName, final String sourceEntitySetRole); @Override ComplexType getComplexType(final FullQualifiedName edmFQName); @Override EntityContainerInfo getEntityContainerInfo(final String name); @Override EntitySet getEntitySet(final String entityContainer, final String name); @Override EntityType getEntityType(final FullQualifiedName edmFQName); @Override FunctionImport getFunctionImport(final String entityContainer, final String name); @Override List<Schema> getSchemas();  }