odata.test.trip.pin.schema.SchemaInfo Maven / Gradle / Ivy
package odata.test.trip.pin.schema;
import com.github.davidmoten.odata.client.ODataType;
import java.util.HashMap;
import java.util.Map;
import odata.test.trip.pin.complex.AirportLocation;
import odata.test.trip.pin.complex.City;
import odata.test.trip.pin.complex.EventLocation;
import odata.test.trip.pin.complex.Location;
import odata.test.trip.pin.entity.Airline;
import odata.test.trip.pin.entity.Airport;
import odata.test.trip.pin.entity.Event;
import odata.test.trip.pin.entity.Flight;
import odata.test.trip.pin.entity.Person;
import odata.test.trip.pin.entity.Photo;
import odata.test.trip.pin.entity.PlanItem;
import odata.test.trip.pin.entity.PublicTransportation;
import odata.test.trip.pin.entity.Trip;
public enum SchemaInfo implements com.github.davidmoten.odata.client.SchemaInfo {
INSTANCE;
private final Map> classes = new HashMap<>();
private SchemaInfo() {
classes.put("Microsoft.OData.SampleService.Models.TripPin.Photo", Photo.class);
classes.put("Microsoft.OData.SampleService.Models.TripPin.Person", Person.class);
classes.put("Microsoft.OData.SampleService.Models.TripPin.Airline", Airline.class);
classes.put("Microsoft.OData.SampleService.Models.TripPin.Airport", Airport.class);
classes.put("Microsoft.OData.SampleService.Models.TripPin.PlanItem", PlanItem.class);
classes.put("Microsoft.OData.SampleService.Models.TripPin.PublicTransportation", PublicTransportation.class);
classes.put("Microsoft.OData.SampleService.Models.TripPin.Flight", Flight.class);
classes.put("Microsoft.OData.SampleService.Models.TripPin.Event", Event.class);
classes.put("Microsoft.OData.SampleService.Models.TripPin.Trip", Trip.class);
classes.put("Microsoft.OData.SampleService.Models.TripPin.City", City.class);
classes.put("Microsoft.OData.SampleService.Models.TripPin.Location", Location.class);
classes.put("Microsoft.OData.SampleService.Models.TripPin.EventLocation", EventLocation.class);
classes.put("Microsoft.OData.SampleService.Models.TripPin.AirportLocation", AirportLocation.class);
}
@Override
public Class extends ODataType> getClassFromTypeWithNamespace(String name) {
return classes.get(name);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy