summaryrefslogtreecommitdiff
path: root/src/traffic-incidents-service/org.genivi.locref-model/src
diff options
context:
space:
mode:
Diffstat (limited to 'src/traffic-incidents-service/org.genivi.locref-model/src')
-rwxr-xr-xsrc/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/LocationReference.java138
-rwxr-xr-xsrc/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/LocationReferenceDecodingService.java49
-rwxr-xr-xsrc/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/LocationReferenceDecodingServiceListener.java43
-rwxr-xr-xsrc/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/LocationReferenceType.java215
-rwxr-xr-xsrc/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/LocationReferenceTypes.java16
-rwxr-xr-xsrc/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/impl/LocationReferenceDecodingServiceImpl.java83
-rwxr-xr-xsrc/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/impl/LocationReferenceDecodingServiceListenerImpl.java73
-rwxr-xr-xsrc/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/impl/LocationReferenceImpl.java292
-rwxr-xr-xsrc/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/impl/locrefFactoryImpl.java175
-rwxr-xr-xsrc/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/impl/locrefPackageImpl.java314
-rwxr-xr-xsrc/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/locrefFactory.java67
-rwxr-xr-xsrc/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/locrefPackage.java295
-rwxr-xr-xsrc/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/util/locrefAdapterFactory.java163
-rwxr-xr-xsrc/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/util/locrefSwitch.java159
14 files changed, 2082 insertions, 0 deletions
diff --git a/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/LocationReference.java b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/LocationReference.java
new file mode 100755
index 0000000..54e0240
--- /dev/null
+++ b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/LocationReference.java
@@ -0,0 +1,138 @@
+/**
+ *
+ * Copyright (C) 2013 TomTom International B.V.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ */
+package org.genivi.locref;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Location Reference</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.genivi.locref.LocationReference#getData <em>Data</em>}</li>
+ * <li>{@link org.genivi.locref.LocationReference#getLocationReferenceType <em>Location Reference Type</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.genivi.locref.locrefPackage#getLocationReference()
+ * @model
+ * @generated
+ */
+public interface LocationReference extends EObject {
+ /**
+ * Returns the value of the '<em><b>Location Reference Type</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Location Reference Type</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Location Reference Type</em>' attribute.
+ * @see #isSetLocationReferenceType()
+ * @see #unsetLocationReferenceType()
+ * @see #setLocationReferenceType(byte)
+ * @see org.genivi.locref.locrefPackage#getLocationReference_LocationReferenceType()
+ * @model unsettable="true" required="true"
+ * @generated
+ */
+ byte getLocationReferenceType();
+
+ /**
+ * Sets the value of the '{@link org.genivi.locref.LocationReference#getLocationReferenceType <em>Location Reference Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Location Reference Type</em>' attribute.
+ * @see #isSetLocationReferenceType()
+ * @see #unsetLocationReferenceType()
+ * @see #getLocationReferenceType()
+ * @generated
+ */
+ void setLocationReferenceType(byte value);
+
+ /**
+ * Unsets the value of the '{@link org.genivi.locref.LocationReference#getLocationReferenceType <em>Location Reference Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetLocationReferenceType()
+ * @see #getLocationReferenceType()
+ * @see #setLocationReferenceType(byte)
+ * @generated
+ */
+ void unsetLocationReferenceType();
+
+ /**
+ * Returns whether the value of the '{@link org.genivi.locref.LocationReference#getLocationReferenceType <em>Location Reference Type</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Location Reference Type</em>' attribute is set.
+ * @see #unsetLocationReferenceType()
+ * @see #getLocationReferenceType()
+ * @see #setLocationReferenceType(byte)
+ * @generated
+ */
+ boolean isSetLocationReferenceType();
+
+ /**
+ * Returns the value of the '<em><b>Data</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Data</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Data</em>' attribute.
+ * @see #isSetData()
+ * @see #unsetData()
+ * @see #setData(Object)
+ * @see org.genivi.locref.locrefPackage#getLocationReference_Data()
+ * @model unsettable="true" required="true"
+ * @generated
+ */
+ Object getData();
+
+ /**
+ * Sets the value of the '{@link org.genivi.locref.LocationReference#getData <em>Data</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Data</em>' attribute.
+ * @see #isSetData()
+ * @see #unsetData()
+ * @see #getData()
+ * @generated
+ */
+ void setData(Object value);
+
+ /**
+ * Unsets the value of the '{@link org.genivi.locref.LocationReference#getData <em>Data</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetData()
+ * @see #getData()
+ * @see #setData(Object)
+ * @generated
+ */
+ void unsetData();
+
+ /**
+ * Returns whether the value of the '{@link org.genivi.locref.LocationReference#getData <em>Data</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Data</em>' attribute is set.
+ * @see #unsetData()
+ * @see #getData()
+ * @see #setData(Object)
+ * @generated
+ */
+ boolean isSetData();
+
+} // LocationReference
diff --git a/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/LocationReferenceDecodingService.java b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/LocationReferenceDecodingService.java
new file mode 100755
index 0000000..4d65cb5
--- /dev/null
+++ b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/LocationReferenceDecodingService.java
@@ -0,0 +1,49 @@
+/**
+ *
+ * Copyright (C) 2013 TomTom International B.V.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ */
+package org.genivi.locref;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Location Reference Decoding Service</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ *
+ * @see org.genivi.locref.locrefPackage#getLocationReferenceDecodingService()
+ * @model
+ * @generated
+ */
+public interface LocationReferenceDecodingService extends EObject {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @model listenerRequired="true" locationReferenceRequired="true"
+ * @generated
+ */
+ void decode(LocationReferenceDecodingServiceListener listener, LocationReference locationReference);
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @model
+ * @generated
+ */
+ void setLanguage(String languageCode, String countryCode);
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @model
+ * @generated
+ */
+ void getLanguage(LocationReferenceDecodingServiceListener listener);
+
+} // LocationReferenceDecodingService
diff --git a/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/LocationReferenceDecodingServiceListener.java b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/LocationReferenceDecodingServiceListener.java
new file mode 100755
index 0000000..ccb8967
--- /dev/null
+++ b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/LocationReferenceDecodingServiceListener.java
@@ -0,0 +1,43 @@
+/**
+ *
+ * Copyright (C) 2013 TomTom International B.V.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ */
+package org.genivi.locref;
+
+import org.eclipse.emf.ecore.EObject;
+import org.genivi.location.Location;
+import org.genivi.location.LocationInfo;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Location Reference Decoding Service Listener</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ *
+ * @see org.genivi.locref.locrefPackage#getLocationReferenceDecodingServiceListener()
+ * @model
+ * @generated
+ */
+public interface LocationReferenceDecodingServiceListener extends EObject {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @model locationRequired="true"
+ * @generated
+ */
+ void decodeReply(Location location, LocationInfo locationInfo);
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @model
+ * @generated
+ */
+ void getLanguageReply(String languageCode, String countryCode);
+
+} // LocationReferenceDecodingServiceListener
diff --git a/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/LocationReferenceType.java b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/LocationReferenceType.java
new file mode 100755
index 0000000..418f2a0
--- /dev/null
+++ b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/LocationReferenceType.java
@@ -0,0 +1,215 @@
+/**
+ *
+ * Copyright (C) 2013 TomTom International B.V.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ */
+package org.genivi.locref;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration '<em><b>Location Reference Type</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see org.genivi.locref.locrefPackage#getLocationReferenceType()
+ * @model
+ * @generated
+ */
+public enum LocationReferenceType implements Enumerator {
+ /**
+ * The '<em><b>TMC LOC</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #TMC_LOC_VALUE
+ * @generated
+ * @ordered
+ */
+ TMC_LOC(1, "TMC_LOC", "TMC_LOC"),
+
+ /**
+ * The '<em><b>OPEN LR</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #OPEN_LR_VALUE
+ * @generated
+ * @ordered
+ */
+ OPEN_LR(2, "OPEN_LR", "OPEN_LR");
+
+ /**
+ * The '<em><b>TMC LOC</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>TMC LOC</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #TMC_LOC
+ * @model
+ * @generated
+ * @ordered
+ */
+ public static final int TMC_LOC_VALUE = 1;
+
+ /**
+ * The '<em><b>OPEN LR</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>OPEN LR</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #OPEN_LR
+ * @model
+ * @generated
+ * @ordered
+ */
+ public static final int OPEN_LR_VALUE = 2;
+
+ /**
+ * An array of all the '<em><b>Location Reference Type</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final LocationReferenceType[] VALUES_ARRAY =
+ new LocationReferenceType[] {
+ TMC_LOC,
+ OPEN_LR,
+ };
+
+ /**
+ * A public read-only list of all the '<em><b>Location Reference Type</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<LocationReferenceType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Location Reference Type</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static LocationReferenceType get(String literal) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ LocationReferenceType result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Location Reference Type</b></em>' literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static LocationReferenceType getByName(String name) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ LocationReferenceType result = VALUES_ARRAY[i];
+ if (result.getName().equals(name)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Location Reference Type</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static LocationReferenceType get(int value) {
+ switch (value) {
+ case TMC_LOC_VALUE: return TMC_LOC;
+ case OPEN_LR_VALUE: return OPEN_LR;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final int value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String name;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private LocationReferenceType(int value, String name, String literal) {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getValue() {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteral() {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ return literal;
+ }
+
+} //LocationReferenceType
diff --git a/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/LocationReferenceTypes.java b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/LocationReferenceTypes.java
new file mode 100755
index 0000000..aca9b50
--- /dev/null
+++ b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/LocationReferenceTypes.java
@@ -0,0 +1,16 @@
+/**
+ *
+ * Copyright (C) 2013 TomTom International B.V.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ */
+package org.genivi.locref;
+
+public interface LocationReferenceTypes {
+
+ public static final String OPEN_LR = "OpenLR";
+
+}
diff --git a/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/impl/LocationReferenceDecodingServiceImpl.java b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/impl/LocationReferenceDecodingServiceImpl.java
new file mode 100755
index 0000000..6b9f986
--- /dev/null
+++ b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/impl/LocationReferenceDecodingServiceImpl.java
@@ -0,0 +1,83 @@
+/**
+ *
+ * Copyright (C) 2013 TomTom International B.V.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ */
+package org.genivi.locref.impl;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.genivi.locref.LocationReference;
+import org.genivi.locref.LocationReferenceDecodingService;
+import org.genivi.locref.LocationReferenceDecodingServiceListener;
+import org.genivi.locref.locrefPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Location Reference Decoding Service</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class LocationReferenceDecodingServiceImpl extends EObjectImpl implements LocationReferenceDecodingService {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected LocationReferenceDecodingServiceImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return locrefPackage.Literals.LOCATION_REFERENCE_DECODING_SERVICE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void decode(LocationReferenceDecodingServiceListener listener, LocationReference locationReference) {
+ // TODO: implement this method
+ // Ensure that you remove @generated or mark it @generated NOT
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setLanguage(String languageCode, String countryCode) {
+ // TODO: implement this method
+ // Ensure that you remove @generated or mark it @generated NOT
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void getLanguage(LocationReferenceDecodingServiceListener listener) {
+ // TODO: implement this method
+ // Ensure that you remove @generated or mark it @generated NOT
+ throw new UnsupportedOperationException();
+ }
+
+} //LocationReferenceDecodingServiceImpl
diff --git a/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/impl/LocationReferenceDecodingServiceListenerImpl.java b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/impl/LocationReferenceDecodingServiceListenerImpl.java
new file mode 100755
index 0000000..eeb31f3
--- /dev/null
+++ b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/impl/LocationReferenceDecodingServiceListenerImpl.java
@@ -0,0 +1,73 @@
+/**
+ *
+ * Copyright (C) 2013 TomTom International B.V.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ */
+package org.genivi.locref.impl;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.genivi.location.Location;
+
+import org.genivi.location.LocationInfo;
+import org.genivi.locref.LocationReferenceDecodingServiceListener;
+import org.genivi.locref.locrefPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Location Reference Decoding Service Listener</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class LocationReferenceDecodingServiceListenerImpl extends EObjectImpl implements LocationReferenceDecodingServiceListener {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected LocationReferenceDecodingServiceListenerImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return locrefPackage.Literals.LOCATION_REFERENCE_DECODING_SERVICE_LISTENER;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void decodeReply(Location location, LocationInfo locationInfo) {
+ // TODO: implement this method
+ // Ensure that you remove @generated or mark it @generated NOT
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void getLanguageReply(String languageCode, String countryCode) {
+ // TODO: implement this method
+ // Ensure that you remove @generated or mark it @generated NOT
+ throw new UnsupportedOperationException();
+ }
+
+} //LocationReferenceDecodingServiceListenerImpl
diff --git a/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/impl/LocationReferenceImpl.java b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/impl/LocationReferenceImpl.java
new file mode 100755
index 0000000..f5f7411
--- /dev/null
+++ b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/impl/LocationReferenceImpl.java
@@ -0,0 +1,292 @@
+/**
+ *
+ * Copyright (C) 2013 TomTom International B.V.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ */
+package org.genivi.locref.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.genivi.locref.LocationReference;
+import org.genivi.locref.locrefPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Location Reference</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.genivi.locref.impl.LocationReferenceImpl#getData <em>Data</em>}</li>
+ * <li>{@link org.genivi.locref.impl.LocationReferenceImpl#getLocationReferenceType <em>Location Reference Type</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class LocationReferenceImpl extends EObjectImpl implements LocationReference {
+ /**
+ * The default value of the '{@link #getData() <em>Data</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getData()
+ * @generated
+ * @ordered
+ */
+ protected static final Object DATA_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getData() <em>Data</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getData()
+ * @generated
+ * @ordered
+ */
+ protected Object data = DATA_EDEFAULT;
+
+ /**
+ * This is true if the Data attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean dataESet;
+
+ /**
+ * The default value of the '{@link #getLocationReferenceType() <em>Location Reference Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocationReferenceType()
+ * @generated
+ * @ordered
+ */
+ protected static final byte LOCATION_REFERENCE_TYPE_EDEFAULT = 0x00;
+
+ /**
+ * The cached value of the '{@link #getLocationReferenceType() <em>Location Reference Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocationReferenceType()
+ * @generated
+ * @ordered
+ */
+ protected byte locationReferenceType = LOCATION_REFERENCE_TYPE_EDEFAULT;
+
+ /**
+ * This is true if the Location Reference Type attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean locationReferenceTypeESet;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected LocationReferenceImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return locrefPackage.Literals.LOCATION_REFERENCE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Object getData() {
+ return data;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setData(Object newData) {
+ Object oldData = data;
+ data = newData;
+ boolean oldDataESet = dataESet;
+ dataESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, locrefPackage.LOCATION_REFERENCE__DATA, oldData, data, !oldDataESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetData() {
+ Object oldData = data;
+ boolean oldDataESet = dataESet;
+ data = DATA_EDEFAULT;
+ dataESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, locrefPackage.LOCATION_REFERENCE__DATA, oldData, DATA_EDEFAULT, oldDataESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetData() {
+ return dataESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public byte getLocationReferenceType() {
+ return locationReferenceType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setLocationReferenceType(byte newLocationReferenceType) {
+ byte oldLocationReferenceType = locationReferenceType;
+ locationReferenceType = newLocationReferenceType;
+ boolean oldLocationReferenceTypeESet = locationReferenceTypeESet;
+ locationReferenceTypeESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, locrefPackage.LOCATION_REFERENCE__LOCATION_REFERENCE_TYPE, oldLocationReferenceType, locationReferenceType, !oldLocationReferenceTypeESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetLocationReferenceType() {
+ byte oldLocationReferenceType = locationReferenceType;
+ boolean oldLocationReferenceTypeESet = locationReferenceTypeESet;
+ locationReferenceType = LOCATION_REFERENCE_TYPE_EDEFAULT;
+ locationReferenceTypeESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, locrefPackage.LOCATION_REFERENCE__LOCATION_REFERENCE_TYPE, oldLocationReferenceType, LOCATION_REFERENCE_TYPE_EDEFAULT, oldLocationReferenceTypeESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetLocationReferenceType() {
+ return locationReferenceTypeESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case locrefPackage.LOCATION_REFERENCE__DATA:
+ return getData();
+ case locrefPackage.LOCATION_REFERENCE__LOCATION_REFERENCE_TYPE:
+ return getLocationReferenceType();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case locrefPackage.LOCATION_REFERENCE__DATA:
+ setData(newValue);
+ return;
+ case locrefPackage.LOCATION_REFERENCE__LOCATION_REFERENCE_TYPE:
+ setLocationReferenceType((Byte)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case locrefPackage.LOCATION_REFERENCE__DATA:
+ unsetData();
+ return;
+ case locrefPackage.LOCATION_REFERENCE__LOCATION_REFERENCE_TYPE:
+ unsetLocationReferenceType();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case locrefPackage.LOCATION_REFERENCE__DATA:
+ return isSetData();
+ case locrefPackage.LOCATION_REFERENCE__LOCATION_REFERENCE_TYPE:
+ return isSetLocationReferenceType();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (data: ");
+ if (dataESet) result.append(data); else result.append("<unset>");
+ result.append(", locationReferenceType: ");
+ if (locationReferenceTypeESet) result.append(locationReferenceType); else result.append("<unset>");
+ result.append(')');
+ return result.toString();
+ }
+
+} //LocationReferenceImpl
diff --git a/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/impl/locrefFactoryImpl.java b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/impl/locrefFactoryImpl.java
new file mode 100755
index 0000000..c4af42f
--- /dev/null
+++ b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/impl/locrefFactoryImpl.java
@@ -0,0 +1,175 @@
+/**
+ *
+ * Copyright (C) 2013 TomTom International B.V.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ */
+package org.genivi.locref.impl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+import org.genivi.locref.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class locrefFactoryImpl extends EFactoryImpl implements locrefFactory {
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static locrefFactory init() {
+ try {
+ locrefFactory thelocrefFactory = (locrefFactory)EPackage.Registry.INSTANCE.getEFactory(locrefPackage.eNS_URI);
+ if (thelocrefFactory != null) {
+ return thelocrefFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new locrefFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public locrefFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case locrefPackage.LOCATION_REFERENCE: return createLocationReference();
+ case locrefPackage.LOCATION_REFERENCE_DECODING_SERVICE: return createLocationReferenceDecodingService();
+ case locrefPackage.LOCATION_REFERENCE_DECODING_SERVICE_LISTENER: return createLocationReferenceDecodingServiceListener();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object createFromString(EDataType eDataType, String initialValue) {
+ switch (eDataType.getClassifierID()) {
+ case locrefPackage.LOCATION_REFERENCE_TYPE:
+ return createLocationReferenceTypeFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String convertToString(EDataType eDataType, Object instanceValue) {
+ switch (eDataType.getClassifierID()) {
+ case locrefPackage.LOCATION_REFERENCE_TYPE:
+ return convertLocationReferenceTypeToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public LocationReference createLocationReference() {
+ LocationReferenceImpl locationReference = new LocationReferenceImpl();
+ return locationReference;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public LocationReferenceDecodingService createLocationReferenceDecodingService() {
+ LocationReferenceDecodingServiceImpl locationReferenceDecodingService = new LocationReferenceDecodingServiceImpl();
+ return locationReferenceDecodingService;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public LocationReferenceDecodingServiceListener createLocationReferenceDecodingServiceListener() {
+ LocationReferenceDecodingServiceListenerImpl locationReferenceDecodingServiceListener = new LocationReferenceDecodingServiceListenerImpl();
+ return locationReferenceDecodingServiceListener;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public LocationReferenceType createLocationReferenceTypeFromString(EDataType eDataType, String initialValue) {
+ LocationReferenceType result = LocationReferenceType.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertLocationReferenceTypeToString(EDataType eDataType, Object instanceValue) {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public locrefPackage getlocrefPackage() {
+ return (locrefPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static locrefPackage getPackage() {
+ return locrefPackage.eINSTANCE;
+ }
+
+} //locrefFactoryImpl
diff --git a/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/impl/locrefPackageImpl.java b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/impl/locrefPackageImpl.java
new file mode 100755
index 0000000..993bf15
--- /dev/null
+++ b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/impl/locrefPackageImpl.java
@@ -0,0 +1,314 @@
+/**
+ *
+ * Copyright (C) 2013 TomTom International B.V.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ */
+package org.genivi.locref.impl;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EOperation;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+import org.genivi.common.CommonPackage;
+
+import org.genivi.location.LocationPackage;
+
+import org.genivi.locref.LocationReference;
+import org.genivi.locref.LocationReferenceDecodingService;
+import org.genivi.locref.LocationReferenceDecodingServiceListener;
+import org.genivi.locref.LocationReferenceType;
+import org.genivi.locref.locrefFactory;
+import org.genivi.locref.locrefPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class locrefPackageImpl extends EPackageImpl implements locrefPackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass locationReferenceEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass locationReferenceDecodingServiceEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass locationReferenceDecodingServiceListenerEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum locationReferenceTypeEEnum = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * package URI value.
+ * <p>Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.genivi.locref.locrefPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private locrefPackageImpl() {
+ super(eNS_URI, locrefFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ *
+ * <p>This method is used to initialize {@link locrefPackage#eINSTANCE} when that field is accessed.
+ * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static locrefPackage init() {
+ if (isInited) return (locrefPackage)EPackage.Registry.INSTANCE.getEPackage(locrefPackage.eNS_URI);
+
+ // Obtain or create and register package
+ locrefPackageImpl thelocrefPackage = (locrefPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof locrefPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new locrefPackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ LocationPackage.eINSTANCE.eClass();
+ CommonPackage.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ thelocrefPackage.createPackageContents();
+
+ // Initialize created meta-data
+ thelocrefPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ thelocrefPackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(locrefPackage.eNS_URI, thelocrefPackage);
+ return thelocrefPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getLocationReference() {
+ return locationReferenceEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getLocationReference_Data() {
+ return (EAttribute)locationReferenceEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getLocationReference_LocationReferenceType() {
+ return (EAttribute)locationReferenceEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getLocationReferenceDecodingService() {
+ return locationReferenceDecodingServiceEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getLocationReferenceDecodingServiceListener() {
+ return locationReferenceDecodingServiceListenerEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getLocationReferenceType() {
+ return locationReferenceTypeEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public locrefFactory getlocrefFactory() {
+ return (locrefFactory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void createPackageContents() {
+ if (isCreated) return;
+ isCreated = true;
+
+ // Create classes and their features
+ locationReferenceEClass = createEClass(LOCATION_REFERENCE);
+ createEAttribute(locationReferenceEClass, LOCATION_REFERENCE__DATA);
+ createEAttribute(locationReferenceEClass, LOCATION_REFERENCE__LOCATION_REFERENCE_TYPE);
+
+ locationReferenceDecodingServiceEClass = createEClass(LOCATION_REFERENCE_DECODING_SERVICE);
+
+ locationReferenceDecodingServiceListenerEClass = createEClass(LOCATION_REFERENCE_DECODING_SERVICE_LISTENER);
+
+ // Create enums
+ locationReferenceTypeEEnum = createEEnum(LOCATION_REFERENCE_TYPE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void initializePackageContents() {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ LocationPackage theLocationPackage = (LocationPackage)EPackage.Registry.INSTANCE.getEPackage(LocationPackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(locationReferenceEClass, LocationReference.class, "LocationReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getLocationReference_Data(), ecorePackage.getEJavaObject(), "data", null, 1, 1, LocationReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLocationReference_LocationReferenceType(), ecorePackage.getEByte(), "locationReferenceType", null, 1, 1, LocationReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(locationReferenceDecodingServiceEClass, LocationReferenceDecodingService.class, "LocationReferenceDecodingService", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ EOperation op = addEOperation(locationReferenceDecodingServiceEClass, null, "decode", 0, 1, IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, this.getLocationReferenceDecodingServiceListener(), "listener", 1, 1, IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, this.getLocationReference(), "locationReference", 1, 1, IS_UNIQUE, IS_ORDERED);
+
+ op = addEOperation(locationReferenceDecodingServiceEClass, null, "setLanguage", 0, 1, IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, ecorePackage.getEString(), "languageCode", 0, 1, IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, ecorePackage.getEString(), "countryCode", 0, 1, IS_UNIQUE, IS_ORDERED);
+
+ op = addEOperation(locationReferenceDecodingServiceEClass, null, "getLanguage", 0, 1, IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, this.getLocationReferenceDecodingServiceListener(), "listener", 0, 1, IS_UNIQUE, IS_ORDERED);
+
+ initEClass(locationReferenceDecodingServiceListenerEClass, LocationReferenceDecodingServiceListener.class, "LocationReferenceDecodingServiceListener", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ op = addEOperation(locationReferenceDecodingServiceListenerEClass, null, "decodeReply", 0, 1, IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theLocationPackage.getLocation(), "location", 1, 1, IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theLocationPackage.getLocationInfo(), "locationInfo", 0, 1, IS_UNIQUE, IS_ORDERED);
+
+ op = addEOperation(locationReferenceDecodingServiceListenerEClass, null, "getLanguageReply", 0, 1, IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, ecorePackage.getEString(), "languageCode", 0, 1, IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, ecorePackage.getEString(), "countryCode", 0, 1, IS_UNIQUE, IS_ORDERED);
+
+ // Initialize enums and add enum literals
+ initEEnum(locationReferenceTypeEEnum, LocationReferenceType.class, "LocationReferenceType");
+ addEEnumLiteral(locationReferenceTypeEEnum, LocationReferenceType.TMC_LOC);
+ addEEnumLiteral(locationReferenceTypeEEnum, LocationReferenceType.OPEN_LR);
+
+ // Create resource
+ createResource(eNS_URI);
+
+ // Create annotations
+ // GenModel
+ createGenModelAnnotations();
+ }
+
+ /**
+ * Initializes the annotations for <b>GenModel</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void createGenModelAnnotations() {
+ String source = "GenModel";
+ addAnnotation
+ (this,
+ source,
+ new String[] {
+ "documentation", "Copyright (C) 2013 TomTom International B.V.\r\n\r\nThis Source Code Form is subject to the terms of the Mozilla Public\r\nLicense, v. 2.0. If a copy of the MPL was not distributed with this\r\nfile, You can obtain one at http://mozilla.org/MPL/2.0/."
+ });
+ }
+
+} //locrefPackageImpl
diff --git a/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/locrefFactory.java b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/locrefFactory.java
new file mode 100755
index 0000000..d473fb6
--- /dev/null
+++ b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/locrefFactory.java
@@ -0,0 +1,67 @@
+/**
+ *
+ * Copyright (C) 2013 TomTom International B.V.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ */
+package org.genivi.locref;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Factory</b> for the model.
+ * It provides a create method for each non-abstract class of the model.
+ * <!-- end-user-doc -->
+ * @see org.genivi.locref.locrefPackage
+ * @generated
+ */
+public interface locrefFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ locrefFactory eINSTANCE = org.genivi.locref.impl.locrefFactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>Location Reference</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Location Reference</em>'.
+ * @generated
+ */
+ LocationReference createLocationReference();
+
+ /**
+ * Returns a new object of class '<em>Location Reference Decoding Service</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Location Reference Decoding Service</em>'.
+ * @generated
+ */
+ LocationReferenceDecodingService createLocationReferenceDecodingService();
+
+ /**
+ * Returns a new object of class '<em>Location Reference Decoding Service Listener</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Location Reference Decoding Service Listener</em>'.
+ * @generated
+ */
+ LocationReferenceDecodingServiceListener createLocationReferenceDecodingServiceListener();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ locrefPackage getlocrefPackage();
+
+} //locrefFactory
diff --git a/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/locrefPackage.java b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/locrefPackage.java
new file mode 100755
index 0000000..16c5e93
--- /dev/null
+++ b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/locrefPackage.java
@@ -0,0 +1,295 @@
+/**
+ *
+ * Copyright (C) 2013 TomTom International B.V.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ */
+package org.genivi.locref;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Package</b> for the model.
+ * It contains accessors for the meta objects to represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @see org.genivi.locref.locrefFactory
+ * @model kind="package"
+ * annotation="GenModel documentation='Copyright (C) 2013 TomTom International B.V.\r\n\r\nThis Source Code Form is subject to the terms of the Mozilla Public\r\nLicense, v. 2.0. If a copy of the MPL was not distributed with this\r\nfile, You can obtain one at http://mozilla.org/MPL/2.0/.'"
+ * @generated
+ */
+public interface locrefPackage extends EPackage {
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "locref";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://org.genivi.locref";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "locref";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ locrefPackage eINSTANCE = org.genivi.locref.impl.locrefPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.genivi.locref.impl.LocationReferenceImpl <em>Location Reference</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.genivi.locref.impl.LocationReferenceImpl
+ * @see org.genivi.locref.impl.locrefPackageImpl#getLocationReference()
+ * @generated
+ */
+ int LOCATION_REFERENCE = 0;
+
+ /**
+ * The feature id for the '<em><b>Data</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int LOCATION_REFERENCE__DATA = 0;
+
+ /**
+ * The feature id for the '<em><b>Location Reference Type</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int LOCATION_REFERENCE__LOCATION_REFERENCE_TYPE = 1;
+
+ /**
+ * The number of structural features of the '<em>Location Reference</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int LOCATION_REFERENCE_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.genivi.locref.impl.LocationReferenceDecodingServiceImpl <em>Location Reference Decoding Service</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.genivi.locref.impl.LocationReferenceDecodingServiceImpl
+ * @see org.genivi.locref.impl.locrefPackageImpl#getLocationReferenceDecodingService()
+ * @generated
+ */
+ int LOCATION_REFERENCE_DECODING_SERVICE = 1;
+
+ /**
+ * The number of structural features of the '<em>Location Reference Decoding Service</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int LOCATION_REFERENCE_DECODING_SERVICE_FEATURE_COUNT = 0;
+
+ /**
+ * The meta object id for the '{@link org.genivi.locref.impl.LocationReferenceDecodingServiceListenerImpl <em>Location Reference Decoding Service Listener</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.genivi.locref.impl.LocationReferenceDecodingServiceListenerImpl
+ * @see org.genivi.locref.impl.locrefPackageImpl#getLocationReferenceDecodingServiceListener()
+ * @generated
+ */
+ int LOCATION_REFERENCE_DECODING_SERVICE_LISTENER = 2;
+
+ /**
+ * The number of structural features of the '<em>Location Reference Decoding Service Listener</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int LOCATION_REFERENCE_DECODING_SERVICE_LISTENER_FEATURE_COUNT = 0;
+
+
+ /**
+ * The meta object id for the '{@link org.genivi.locref.LocationReferenceType <em>Location Reference Type</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.genivi.locref.LocationReferenceType
+ * @see org.genivi.locref.impl.locrefPackageImpl#getLocationReferenceType()
+ * @generated
+ */
+ int LOCATION_REFERENCE_TYPE = 3;
+
+
+ /**
+ * Returns the meta object for class '{@link org.genivi.locref.LocationReference <em>Location Reference</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Location Reference</em>'.
+ * @see org.genivi.locref.LocationReference
+ * @generated
+ */
+ EClass getLocationReference();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.genivi.locref.LocationReference#getData <em>Data</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Data</em>'.
+ * @see org.genivi.locref.LocationReference#getData()
+ * @see #getLocationReference()
+ * @generated
+ */
+ EAttribute getLocationReference_Data();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.genivi.locref.LocationReference#getLocationReferenceType <em>Location Reference Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Location Reference Type</em>'.
+ * @see org.genivi.locref.LocationReference#getLocationReferenceType()
+ * @see #getLocationReference()
+ * @generated
+ */
+ EAttribute getLocationReference_LocationReferenceType();
+
+ /**
+ * Returns the meta object for class '{@link org.genivi.locref.LocationReferenceDecodingService <em>Location Reference Decoding Service</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Location Reference Decoding Service</em>'.
+ * @see org.genivi.locref.LocationReferenceDecodingService
+ * @generated
+ */
+ EClass getLocationReferenceDecodingService();
+
+ /**
+ * Returns the meta object for class '{@link org.genivi.locref.LocationReferenceDecodingServiceListener <em>Location Reference Decoding Service Listener</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Location Reference Decoding Service Listener</em>'.
+ * @see org.genivi.locref.LocationReferenceDecodingServiceListener
+ * @generated
+ */
+ EClass getLocationReferenceDecodingServiceListener();
+
+ /**
+ * Returns the meta object for enum '{@link org.genivi.locref.LocationReferenceType <em>Location Reference Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for enum '<em>Location Reference Type</em>'.
+ * @see org.genivi.locref.LocationReferenceType
+ * @generated
+ */
+ EEnum getLocationReferenceType();
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ locrefFactory getlocrefFactory();
+
+ /**
+ * <!-- begin-user-doc -->
+ * Defines literals for the meta objects that represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ interface Literals {
+ /**
+ * The meta object literal for the '{@link org.genivi.locref.impl.LocationReferenceImpl <em>Location Reference</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.genivi.locref.impl.LocationReferenceImpl
+ * @see org.genivi.locref.impl.locrefPackageImpl#getLocationReference()
+ * @generated
+ */
+ EClass LOCATION_REFERENCE = eINSTANCE.getLocationReference();
+
+ /**
+ * The meta object literal for the '<em><b>Data</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute LOCATION_REFERENCE__DATA = eINSTANCE.getLocationReference_Data();
+
+ /**
+ * The meta object literal for the '<em><b>Location Reference Type</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute LOCATION_REFERENCE__LOCATION_REFERENCE_TYPE = eINSTANCE.getLocationReference_LocationReferenceType();
+
+ /**
+ * The meta object literal for the '{@link org.genivi.locref.impl.LocationReferenceDecodingServiceImpl <em>Location Reference Decoding Service</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.genivi.locref.impl.LocationReferenceDecodingServiceImpl
+ * @see org.genivi.locref.impl.locrefPackageImpl#getLocationReferenceDecodingService()
+ * @generated
+ */
+ EClass LOCATION_REFERENCE_DECODING_SERVICE = eINSTANCE.getLocationReferenceDecodingService();
+
+ /**
+ * The meta object literal for the '{@link org.genivi.locref.impl.LocationReferenceDecodingServiceListenerImpl <em>Location Reference Decoding Service Listener</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.genivi.locref.impl.LocationReferenceDecodingServiceListenerImpl
+ * @see org.genivi.locref.impl.locrefPackageImpl#getLocationReferenceDecodingServiceListener()
+ * @generated
+ */
+ EClass LOCATION_REFERENCE_DECODING_SERVICE_LISTENER = eINSTANCE.getLocationReferenceDecodingServiceListener();
+
+ /**
+ * The meta object literal for the '{@link org.genivi.locref.LocationReferenceType <em>Location Reference Type</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.genivi.locref.LocationReferenceType
+ * @see org.genivi.locref.impl.locrefPackageImpl#getLocationReferenceType()
+ * @generated
+ */
+ EEnum LOCATION_REFERENCE_TYPE = eINSTANCE.getLocationReferenceType();
+
+ }
+
+} //locrefPackage
diff --git a/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/util/locrefAdapterFactory.java b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/util/locrefAdapterFactory.java
new file mode 100755
index 0000000..4c4d30a
--- /dev/null
+++ b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/util/locrefAdapterFactory.java
@@ -0,0 +1,163 @@
+/**
+ *
+ * Copyright (C) 2013 TomTom International B.V.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ */
+package org.genivi.locref.util;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.genivi.locref.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the model.
+ * <!-- end-user-doc -->
+ * @see org.genivi.locref.locrefPackage
+ * @generated
+ */
+public class locrefAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static locrefPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public locrefAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = locrefPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ * <!-- begin-user-doc -->
+ * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
+ * <!-- end-user-doc -->
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the <code>createXXX</code> methods.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected locrefSwitch<Adapter> modelSwitch =
+ new locrefSwitch<Adapter>() {
+ @Override
+ public Adapter caseLocationReference(LocationReference object) {
+ return createLocationReferenceAdapter();
+ }
+ @Override
+ public Adapter caseLocationReferenceDecodingService(LocationReferenceDecodingService object) {
+ return createLocationReferenceDecodingServiceAdapter();
+ }
+ @Override
+ public Adapter caseLocationReferenceDecodingServiceListener(LocationReferenceDecodingServiceListener object) {
+ return createLocationReferenceDecodingServiceListenerAdapter();
+ }
+ @Override
+ public Adapter defaultCase(EObject object) {
+ return createEObjectAdapter();
+ }
+ };
+
+ /**
+ * Creates an adapter for the <code>target</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param target the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.genivi.locref.LocationReference <em>Location Reference</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.genivi.locref.LocationReference
+ * @generated
+ */
+ public Adapter createLocationReferenceAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.genivi.locref.LocationReferenceDecodingService <em>Location Reference Decoding Service</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.genivi.locref.LocationReferenceDecodingService
+ * @generated
+ */
+ public Adapter createLocationReferenceDecodingServiceAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.genivi.locref.LocationReferenceDecodingServiceListener <em>Location Reference Decoding Service Listener</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.genivi.locref.LocationReferenceDecodingServiceListener
+ * @generated
+ */
+ public Adapter createLocationReferenceDecodingServiceListenerAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //locrefAdapterFactory
diff --git a/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/util/locrefSwitch.java b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/util/locrefSwitch.java
new file mode 100755
index 0000000..7bbd7f1
--- /dev/null
+++ b/src/traffic-incidents-service/org.genivi.locref-model/src/org/genivi/locref/util/locrefSwitch.java
@@ -0,0 +1,159 @@
+/**
+ *
+ * Copyright (C) 2013 TomTom International B.V.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ */
+package org.genivi.locref.util;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.util.Switch;
+
+import org.genivi.locref.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ * <!-- end-user-doc -->
+ * @see org.genivi.locref.locrefPackage
+ * @generated
+ */
+public class locrefSwitch<T> extends Switch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static locrefPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public locrefSwitch() {
+ if (modelPackage == null) {
+ modelPackage = locrefPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Checks whether this is a switch for the given package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @parameter ePackage the package in question.
+ * @return whether this is a switch for the given package.
+ * @generated
+ */
+ @Override
+ protected boolean isSwitchFor(EPackage ePackage) {
+ return ePackage == modelPackage;
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ @Override
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case locrefPackage.LOCATION_REFERENCE: {
+ LocationReference locationReference = (LocationReference)theEObject;
+ T result = caseLocationReference(locationReference);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case locrefPackage.LOCATION_REFERENCE_DECODING_SERVICE: {
+ LocationReferenceDecodingService locationReferenceDecodingService = (LocationReferenceDecodingService)theEObject;
+ T result = caseLocationReferenceDecodingService(locationReferenceDecodingService);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case locrefPackage.LOCATION_REFERENCE_DECODING_SERVICE_LISTENER: {
+ LocationReferenceDecodingServiceListener locationReferenceDecodingServiceListener = (LocationReferenceDecodingServiceListener)theEObject;
+ T result = caseLocationReferenceDecodingServiceListener(locationReferenceDecodingServiceListener);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Location Reference</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Location Reference</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLocationReference(LocationReference object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Location Reference Decoding Service</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Location Reference Decoding Service</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLocationReferenceDecodingService(LocationReferenceDecodingService object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Location Reference Decoding Service Listener</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Location Reference Decoding Service Listener</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLocationReferenceDecodingServiceListener(LocationReferenceDecodingServiceListener object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //locrefSwitch