You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by sk...@apache.org on 2014/05/23 12:58:35 UTC

[40/59] [abbrv] [partial] Removing /ODataJClient: merge complete

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v3/XMLLinkCollection.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v3/XMLLinkCollection.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v3/XMLLinkCollection.java
deleted file mode 100644
index ed753ec..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v3/XMLLinkCollection.java
+++ /dev/null
@@ -1,80 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.data.impl.v3;
-
-import com.msopentech.odatajclient.engine.data.LinkCollection;
-import java.net.URI;
-import java.util.ArrayList;
-import java.util.List;
-
-public class XMLLinkCollection implements LinkCollection {
-
-    private final List<URI> links = new ArrayList<URI>();
-
-    private URI next;
-
-    /**
-     * Constructor.
-     */
-    public XMLLinkCollection() {
-    }
-
-    /**
-     * Constructor.
-     *
-     * @param next next page link.
-     */
-    public XMLLinkCollection(final URI next) {
-        this.next = next;
-    }
-
-    /**
-     * {@inheritDoc }
-     */
-    @Override
-    public List<URI> getLinks() {
-        return links;
-    }
-
-    /**
-     * Set Links.
-     *
-     * @param links links.
-     */
-    public void setLinks(final List<URI> links) {
-        this.links.clear();
-        this.links.addAll(links);
-    }
-
-    /**
-     * {@inheritDoc }
-     */
-    @Override
-    public void setNext(final URI next) {
-        this.next = next;
-    }
-
-    /**
-     * {@inheritDoc }
-     */
-    @Override
-    public URI getNext() {
-        return next;
-    }
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v3/XMLODataError.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v3/XMLODataError.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v3/XMLODataError.java
deleted file mode 100644
index 1735986..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v3/XMLODataError.java
+++ /dev/null
@@ -1,234 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.data.impl.v3;
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlText;
-import com.msopentech.odatajclient.engine.data.ODataError;
-import com.msopentech.odatajclient.engine.data.impl.AbstractPayloadObject;
-import java.util.Map;
-
-/**
- * This class represents an OData error returned as JSON.
- */
-public class XMLODataError extends AbstractPayloadObject implements ODataError {
-
-    private static final long serialVersionUID = -3476499168507242932L;
-
-    @JacksonXmlText(false)
-    private String code;
-
-    @JsonProperty
-    private Message message;
-
-    @JsonProperty(required = false)
-    private InnerError innererror;
-
-    /**
-     * {@inheritDoc }
-     */
-    @Override
-    public String getCode() {
-        return code;
-    }
-
-    /**
-     * Sets error code.
-     *
-     * @param code error code.
-     */
-    public void setCode(final String code) {
-        this.code = code;
-    }
-
-    /**
-     * {@inheritDoc }
-     */
-    @JsonIgnore
-    @Override
-    public String getMessageLang() {
-        return this.message == null ? null : this.message.getLang();
-    }
-
-    /**
-     * {@inheritDoc }
-     */
-    @JsonIgnore
-    @Override
-    public String getMessageValue() {
-        return this.message == null ? null : this.message.getValue();
-    }
-
-    /**
-     * Sets the value of the message property.
-     *
-     * @param value
-     * allowed object is
-     * {@link Error.Message }
-     *
-     */
-    public void setMessage(final Message value) {
-        this.message = value;
-    }
-
-    /**
-     * {@inheritDoc }
-     */
-    @JsonIgnore
-    @Override
-    public String getInnerErrorMessage() {
-        return this.innererror == null ? null : this.innererror.getMessage().getValue();
-    }
-
-    /**
-     * {@inheritDoc }
-     */
-    @JsonIgnore
-    @Override
-    public String getInnerErrorType() {
-        return this.innererror == null ? null : this.innererror.getType().getValue();
-    }
-
-    /**
-     * {@inheritDoc }
-     */
-    @JsonIgnore
-    @Override
-    public String getInnerErrorStacktrace() {
-        return this.innererror == null ? null : this.innererror.getStacktrace().getValue();
-    }
-
-    static class TextChildContainer extends AbstractPayloadObject {
-
-        private static final long serialVersionUID = -8908394095210115904L;
-
-        public TextChildContainer() {
-            super();
-        }
-
-        public TextChildContainer(final String value) {
-            super();
-            this.value = value;
-        }
-
-        @JsonCreator
-        public TextChildContainer(final Map<String, Object> props) {
-            super();
-            this.value = (String) props.get("");
-        }
-
-        private String value;
-
-        public String getValue() {
-            return value;
-        }
-
-        public void setValue(final String value) {
-            this.value = value;
-        }
-    }
-
-    /**
-     * Error message.
-     */
-    public static class Message extends TextChildContainer {
-
-        private static final long serialVersionUID = 2577818040815637859L;
-
-        private String lang;
-
-        public Message() {
-            super();
-        }
-
-        @JsonCreator
-        public Message(final Map<String, Object> props) {
-            super(props);
-            this.lang = (String) props.get("lang");
-        }
-
-        /**
-         * Gets language.
-         *
-         * @return language.
-         */
-        public String getLang() {
-            return lang;
-        }
-
-        /**
-         * Sets language.
-         *
-         * @param lang language.
-         */
-        public void setLang(final String lang) {
-            this.lang = lang;
-        }
-    }
-
-    /**
-     * Inner error.
-     */
-    static class InnerError extends AbstractPayloadObject {
-
-        private static final long serialVersionUID = -3920947476143537640L;
-
-        private TextChildContainer message;
-
-        private TextChildContainer type;
-
-        private TextChildContainer stacktrace;
-
-        private InnerError internalexception;
-
-        public TextChildContainer getMessage() {
-            return message;
-        }
-
-        public void setMessage(final TextChildContainer message) {
-            this.message = message;
-        }
-
-        public TextChildContainer getType() {
-            return type;
-        }
-
-        public void setType(final TextChildContainer type) {
-            this.type = type;
-        }
-
-        public TextChildContainer getStacktrace() {
-            return stacktrace;
-        }
-
-        public void setStacktrace(final TextChildContainer stacktrace) {
-            this.stacktrace = stacktrace;
-        }
-
-        public InnerError getInternalexception() {
-            return internalexception;
-        }
-
-        public void setInternalexception(final InnerError internalexception) {
-            this.internalexception = internalexception;
-        }
-    }
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v3/XMLServiceDocument.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v3/XMLServiceDocument.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v3/XMLServiceDocument.java
deleted file mode 100644
index 32a7d43..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v3/XMLServiceDocument.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.data.impl.v3;
-
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.msopentech.odatajclient.engine.data.impl.AbstractServiceDocument;
-import com.msopentech.odatajclient.engine.data.impl.XMLServiceDocumentDeserializer;
-import java.net.URI;
-
-/**
- * Service document, represented via XML.
- */
-@JsonDeserialize(using = XMLServiceDocumentDeserializer.class)
-public class XMLServiceDocument extends AbstractServiceDocument {
-
-    private URI baseURI;
-
-    @Override
-    public URI getBaseURI() {
-        return this.baseURI;
-    }
-
-    /**
-     * Sets base URI.
-     *
-     * @param baseURI base URI.
-     */
-    public void setBaseURI(final URI baseURI) {
-        this.baseURI = baseURI;
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/AbstractServiceDocument.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/AbstractServiceDocument.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/AbstractServiceDocument.java
deleted file mode 100644
index a99f6b4..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/AbstractServiceDocument.java
+++ /dev/null
@@ -1,88 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.data.impl.v4;
-
-import com.msopentech.odatajclient.engine.data.ServiceDocumentElement;
-import java.net.URI;
-import java.util.ArrayList;
-import java.util.List;
-
-public abstract class AbstractServiceDocument
-        extends com.msopentech.odatajclient.engine.data.impl.AbstractServiceDocument {
-
-    private URI baseURI;
-
-    private String metadataContext;
-
-    private String metadataETag;
-
-    private List<ServiceDocumentElement> functionImports = new ArrayList<ServiceDocumentElement>();
-
-    private List<ServiceDocumentElement> singletons = new ArrayList<ServiceDocumentElement>();
-
-    private List<ServiceDocumentElement> relatedServiceDocuments = new ArrayList<ServiceDocumentElement>();
-
-    @Override
-    public URI getBaseURI() {
-        return this.baseURI;
-    }
-
-    /**
-     * Sets base URI.
-     *
-     * @param baseURI base URI.
-     */
-    public void setBaseURI(final URI baseURI) {
-        this.baseURI = baseURI;
-    }
-
-    @Override
-    public String getMetadataContext() {
-        return metadataContext;
-    }
-
-    public void setMetadataContext(final String metadataContext) {
-        this.metadataContext = metadataContext;
-    }
-
-    @Override
-    public String getMetadataETag() {
-        return metadataETag;
-    }
-
-    public void setMetadataETag(final String metadataETag) {
-        this.metadataETag = metadataETag;
-    }
-
-    @Override
-    public List<ServiceDocumentElement> getFunctionImports() {
-        return functionImports;
-    }
-
-    @Override
-    public List<ServiceDocumentElement> getSingletons() {
-        return singletons;
-    }
-
-    @Override
-    public List<ServiceDocumentElement> getRelatedServiceDocuments() {
-        return relatedServiceDocuments;
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/JSONEntry.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/JSONEntry.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/JSONEntry.java
deleted file mode 100644
index f755112..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/JSONEntry.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.data.impl.v4;
-
-import com.msopentech.odatajclient.engine.data.impl.AbstractJSONEntry;
-
-/**
- * A single entry, represented via JSON.
- */
-public class JSONEntry extends AbstractJSONEntry {
-
-    private static final long serialVersionUID = -5275365545400797758L;
-
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataBinderImpl.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataBinderImpl.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataBinderImpl.java
deleted file mode 100644
index c278f8c..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataBinderImpl.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.data.impl.v4;
-
-import com.msopentech.odatajclient.engine.client.ODataV4Client;
-import com.msopentech.odatajclient.engine.data.ODataServiceDocument;
-import com.msopentech.odatajclient.engine.data.ServiceDocument;
-import com.msopentech.odatajclient.engine.data.ServiceDocumentElement;
-import com.msopentech.odatajclient.engine.data.impl.AbstractODataBinder;
-import com.msopentech.odatajclient.engine.metadata.EdmType;
-import com.msopentech.odatajclient.engine.metadata.EdmV4Type;
-import com.msopentech.odatajclient.engine.utils.URIUtils;
-
-public class ODataBinderImpl extends AbstractODataBinder {
-
-    private static final long serialVersionUID = -6371110655960799393L;
-
-    public ODataBinderImpl(final ODataV4Client client) {
-        super(client);
-    }
-
-    @Override
-    protected EdmType newEdmType(final String expression) {
-        return new EdmV4Type(expression);
-    }
-
-    @Override
-    public ODataServiceDocument getODataServiceDocument(final ServiceDocument resource) {
-        final ODataServiceDocument serviceDocument = super.getODataServiceDocument(resource);
-
-        serviceDocument.setMetadataContext(URIUtils.getURI(resource.getBaseURI(), resource.getMetadataContext()));
-        serviceDocument.setMetadataETag(resource.getMetadataETag());
-
-        for (ServiceDocumentElement functionImport : resource.getFunctionImports()) {
-            serviceDocument.getFunctionImports().put(functionImport.getTitle(),
-                    URIUtils.getURI(resource.getBaseURI(), functionImport.getHref()));
-        }
-        for (ServiceDocumentElement singleton : resource.getSingletons()) {
-            serviceDocument.getSingletons().put(singleton.getTitle(),
-                    URIUtils.getURI(resource.getBaseURI(), singleton.getHref()));
-        }
-        for (ServiceDocumentElement sdoc : resource.getRelatedServiceDocuments()) {
-            serviceDocument.getRelatedServiceDocuments().put(sdoc.getTitle(),
-                    URIUtils.getURI(resource.getBaseURI(), sdoc.getHref()));
-        }
-
-        return serviceDocument;
-    }
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataDeserializerImpl.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataDeserializerImpl.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataDeserializerImpl.java
deleted file mode 100644
index 1b957fd..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataDeserializerImpl.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.data.impl.v4;
-
-import com.msopentech.odatajclient.engine.client.ODataClient;
-import com.msopentech.odatajclient.engine.data.impl.AbstractODataDeserializer;
-import com.msopentech.odatajclient.engine.format.ODataFormat;
-import com.msopentech.odatajclient.engine.metadata.edm.v4.Edmx;
-import java.io.IOException;
-import java.io.InputStream;
-
-public class ODataDeserializerImpl extends AbstractODataDeserializer {
-
-    private static final long serialVersionUID = 8593081342440470415L;
-
-    public ODataDeserializerImpl(final ODataClient client) {
-        super(client);
-    }
-
-    @Override
-    public Edmx toMetadata(final InputStream input) {
-        try {
-            return getXmlMapper().readValue(input, Edmx.class);
-        } catch (Exception e) {
-            throw new IllegalArgumentException("Could not parse as Edmx document", e);
-        }
-    }
-
-    @Override
-    public AbstractServiceDocument toServiceDocument(final InputStream input, final ODataFormat format) {
-        try {
-            return format == ODataFormat.XML
-                    ? getXmlMapper().readValue(input, XMLServiceDocument.class)
-                    : null;
-//                    : getObjectMapper().readValue(input, JSONServiceDocument.class);
-        } catch (IOException e) {
-            throw new IllegalArgumentException("Could not parse Service Document", e);
-        }
-    }
-
-    @Override
-    protected JSONEntry toJSONEntry(final InputStream input) {
-        try {
-            return getObjectMapper().readValue(input, JSONEntry.class);
-        } catch (IOException e) {
-            throw new IllegalArgumentException("While deserializing JSON entry", e);
-        }
-    }
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataObjectFactoryImpl.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataObjectFactoryImpl.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataObjectFactoryImpl.java
deleted file mode 100644
index 37d16b8..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataObjectFactoryImpl.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.data.impl.v4;
-
-import com.msopentech.odatajclient.engine.client.ODataClient;
-import com.msopentech.odatajclient.engine.data.AbstractODataObjectFactory;
-
-public class ODataObjectFactoryImpl extends AbstractODataObjectFactory {
-
-    private static final long serialVersionUID = 7535188943833581980L;
-
-    public ODataObjectFactoryImpl(final ODataClient client) {
-        super(client);
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataReaderImpl.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataReaderImpl.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataReaderImpl.java
deleted file mode 100644
index 9226baa..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataReaderImpl.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.data.impl.v4;
-
-import com.msopentech.odatajclient.engine.client.ODataV4Client;
-import com.msopentech.odatajclient.engine.data.ODataServiceDocument;
-import com.msopentech.odatajclient.engine.data.impl.AbstractODataReader;
-import com.msopentech.odatajclient.engine.format.ODataFormat;
-import com.msopentech.odatajclient.engine.metadata.EdmV4Metadata;
-import java.io.InputStream;
-
-public class ODataReaderImpl extends AbstractODataReader {
-
-    private static final long serialVersionUID = -2481293269536406956L;
-
-    public ODataReaderImpl(final ODataV4Client client) {
-        super(client);
-    }
-
-    @Override
-    public EdmV4Metadata readMetadata(final InputStream input) {
-        return new EdmV4Metadata(client, input);
-    }
-
-    @Override
-    public ODataServiceDocument readServiceDocument(final InputStream input, final ODataFormat format) {
-        return ((ODataV4Client) client).getBinder().getODataServiceDocument(
-                ((ODataV4Client) client).getDeserializer().toServiceDocument(input, format));
-    }
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataSerializerImpl.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataSerializerImpl.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataSerializerImpl.java
deleted file mode 100644
index a059ae5..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataSerializerImpl.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.data.impl.v4;
-
-import com.msopentech.odatajclient.engine.client.ODataClient;
-import com.msopentech.odatajclient.engine.data.impl.AbstractODataSerializer;
-
-public class ODataSerializerImpl extends AbstractODataSerializer {
-
-    private static final long serialVersionUID = 7587265188399685309L;
-
-    public ODataSerializerImpl(final ODataClient client) {
-        super(client);
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataWriterImpl.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataWriterImpl.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataWriterImpl.java
deleted file mode 100644
index 2d6aec0..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/ODataWriterImpl.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.data.impl.v4;
-
-import com.msopentech.odatajclient.engine.client.ODataV4Client;
-import com.msopentech.odatajclient.engine.data.impl.AbstractODataWriter;
-
-public class ODataWriterImpl extends AbstractODataWriter {
-
-    private static final long serialVersionUID = 8138759354317377210L;
-
-    public ODataWriterImpl(final ODataV4Client client) {
-        super(client);
-    }
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/XMLServiceDocument.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/XMLServiceDocument.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/XMLServiceDocument.java
deleted file mode 100644
index b5007cd..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/data/impl/v4/XMLServiceDocument.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.data.impl.v4;
-
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.msopentech.odatajclient.engine.data.impl.XMLServiceDocumentDeserializer;
-
-@JsonDeserialize(using = XMLServiceDocumentDeserializer.class)
-public class XMLServiceDocument extends AbstractServiceDocument {
-
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/format/ODataFormat.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/format/ODataFormat.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/format/ODataFormat.java
deleted file mode 100644
index c489d86..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/format/ODataFormat.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.format;
-
-import org.apache.http.entity.ContentType;
-
-/**
- * Available formats to be used in various contexts.
- */
-public enum ODataFormat {
-
-    /**
-     * JSON format with no metadata.
-     */
-    JSON_NO_METADATA(ContentType.APPLICATION_JSON.getMimeType() + ";odata=nometadata"),
-    /**
-     * JSON format with minimal metadata (default).
-     */
-    JSON(ContentType.APPLICATION_JSON.getMimeType() + ";odata=minimalmetadata"),
-    /**
-     * JSON format with no metadata.
-     */
-    JSON_FULL_METADATA(ContentType.APPLICATION_JSON.getMimeType() + ";odata=fullmetadata"),
-    /**
-     * XML format.
-     */
-    XML(ContentType.APPLICATION_XML.getMimeType());
-
-    private final String format;
-
-    ODataFormat(final String format) {
-        this.format = format;
-    }
-
-    /**
-     * Gets format as a string.
-     *
-     * @return format as a string.
-     */
-    @Override
-    public String toString() {
-        return format;
-    }
-
-    /**
-     * Gets OData format from its string representation.
-     *
-     * @param format string representation of the format.
-     * @return OData format.
-     */
-    public static ODataFormat fromString(final String format) {
-        ODataFormat result = null;
-
-        final StringBuffer _format = new StringBuffer();
-
-        final String[] parts = format.split(";");
-        _format.append(parts[0]);
-        if (ContentType.APPLICATION_JSON.getMimeType().equals(parts[0])) {
-            if (parts.length > 1) {
-                _format.append(';').append(parts[1]);
-            } else {
-                result = ODataFormat.JSON;
-            }
-        }
-
-        if (result == null) {
-            final String candidate = _format.toString().replaceAll(" ", "");
-            for (ODataFormat value : values()) {
-                if (candidate.equals(value.toString())) {
-                    result = value;
-                }
-            }
-        }
-
-        if (result == null) {
-            throw new IllegalArgumentException("Unsupported format: " + format);
-        }
-
-        return result;
-    }
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/format/ODataMediaFormat.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/format/ODataMediaFormat.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/format/ODataMediaFormat.java
deleted file mode 100644
index 311d955..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/format/ODataMediaFormat.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.format;
-
-import org.apache.http.entity.ContentType;
-
-/**
- * Available formats for media.
- */
-public enum ODataMediaFormat {
-
-    CHARSET_PARAMETER("charset"),
-    MEDIA_TYPE_WILDCARD("*"),
-    WILDCARD("*/*"),
-    APPLICATION_XML(ContentType.APPLICATION_XML.getMimeType()),
-    APPLICATION_ATOM_XML(ContentType.APPLICATION_ATOM_XML.getMimeType()),
-    APPLICATION_XHTML_XML(ContentType.APPLICATION_XHTML_XML.getMimeType()),
-    APPLICATION_SVG_XML(ContentType.APPLICATION_SVG_XML.getMimeType()),
-    APPLICATION_JSON(ContentType.APPLICATION_JSON.getMimeType()),
-    APPLICATION_FORM_URLENCODED(ContentType.APPLICATION_FORM_URLENCODED.getMimeType()),
-    MULTIPART_FORM_DATA(ContentType.MULTIPART_FORM_DATA.getMimeType()),
-    APPLICATION_OCTET_STREAM(ContentType.APPLICATION_OCTET_STREAM.getMimeType()),
-    TEXT_PLAIN(ContentType.TEXT_PLAIN.getMimeType()),
-    TEXT_XML(ContentType.TEXT_XML.getMimeType()),
-    TEXT_HTML(ContentType.TEXT_HTML.getMimeType());
-
-    private final String format;
-
-    private ODataMediaFormat(final String format) {
-        this.format = format;
-    }
-
-    @Override
-    public String toString() {
-        return format;
-    }
-
-    public static ODataMediaFormat fromFormat(final String format) {
-        final String _format = format.split(";")[0];
-
-        ODataMediaFormat result = null;
-
-        for (ODataMediaFormat value : values()) {
-            if (_format.equals(value.toString())) {
-                result = value;
-            }
-        }
-
-        if (result == null) {
-            throw new IllegalArgumentException("Unsupported format: " + format);
-        }
-
-        return result;
-    }
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/format/ODataPubFormat.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/format/ODataPubFormat.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/format/ODataPubFormat.java
deleted file mode 100644
index 72055be..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/format/ODataPubFormat.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.format;
-
-import org.apache.http.entity.ContentType;
-
-/**
- * Available formats for AtomPub exchange.
- */
-public enum ODataPubFormat {
-
-    /**
-     * JSON format with no metadata.
-     */
-    JSON_NO_METADATA(ContentType.APPLICATION_JSON.getMimeType() + ";odata=nometadata"),
-    /**
-     * JSON format with minimal metadata (default).
-     */
-    JSON(ContentType.APPLICATION_JSON.getMimeType() + ";odata=minimalmetadata"),
-    /**
-     * JSON format with no metadata.
-     */
-    JSON_FULL_METADATA(ContentType.APPLICATION_JSON.getMimeType() + ";odata=fullmetadata"),
-    /**
-     * Atom format.
-     */
-    ATOM(ContentType.APPLICATION_ATOM_XML.getMimeType());
-    
-    private final String format;
-    
-    ODataPubFormat(final String format) {
-        this.format = format;
-    }
-
-    /**
-     * Gets format as a string.
-     *
-     * @return format as a string.
-     */
-    @Override
-    public String toString() {
-        return format;
-    }
-
-    /**
-     * Gets OData format from its string representation.
-     *
-     * @param format string representation of the format.
-     * @return OData format.
-     */
-    public static ODataPubFormat fromString(final String format) {
-        ODataPubFormat result = null;
-        
-        final StringBuffer _format = new StringBuffer();
-        
-        final String[] parts = format.split(";");
-        _format.append(parts[0]);
-        if (ContentType.APPLICATION_JSON.getMimeType().equals(parts[0])) {
-            if (parts.length > 1 && parts[1].startsWith("odata=")) {
-                _format.append(';').append(parts[1]);
-            } else {
-                result = ODataPubFormat.JSON;
-            }
-        }
-        
-        if (result == null) {
-            final String candidate = _format.toString();
-            for (ODataPubFormat value : values()) {
-                if (candidate.equals(value.toString())) {
-                    result = value;
-                }
-            }
-        }
-        
-        if (result == null) {
-            throw new IllegalArgumentException("Unsupported format: " + format);
-        }
-        
-        return result;
-    }
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/format/ODataValueFormat.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/format/ODataValueFormat.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/format/ODataValueFormat.java
deleted file mode 100644
index a442b77..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/format/ODataValueFormat.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.format;
-
-import org.apache.http.entity.ContentType;
-
-/**
- * Available formats for property values.
- */
-public enum ODataValueFormat {
-
-    /**
-     * Application octet stream.
-     */
-    STREAM(ContentType.APPLICATION_OCTET_STREAM.getMimeType()),
-    /**
-     * Plain text format.
-     */
-    TEXT(ContentType.TEXT_PLAIN.getMimeType());
-
-    private final String format;
-
-    ODataValueFormat(final String format) {
-        this.format = format;
-    }
-
-    /**
-     * Gets format as a string.
-     *
-     * @return format as a string.
-     */
-    @Override
-    public String toString() {
-        return format;
-    }
-
-    /**
-     * Gets format from its string representation.
-     *
-     * @param format string representation of the format.
-     * @return OData format.
-     */
-    public static ODataValueFormat fromString(final String format) {
-        final String _format = format.split(";")[0];
-
-        ODataValueFormat result = null;
-
-        for (ODataValueFormat value : values()) {
-            if (_format.equals(value.toString())) {
-                result = value;
-            }
-        }
-
-        if (result == null) {
-            throw new IllegalArgumentException("Unsupported format: " + format);
-        }
-
-        return result;
-    }
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/AbstractEdmMetadata.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/AbstractEdmMetadata.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/AbstractEdmMetadata.java
deleted file mode 100644
index 2ed0882..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/AbstractEdmMetadata.java
+++ /dev/null
@@ -1,136 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.metadata;
-
-import com.msopentech.odatajclient.engine.client.ODataClient;
-import com.msopentech.odatajclient.engine.metadata.edm.AbstractComplexType;
-import com.msopentech.odatajclient.engine.metadata.edm.AbstractDataServices;
-import com.msopentech.odatajclient.engine.metadata.edm.AbstractSchema;
-import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdmx;
-import com.msopentech.odatajclient.engine.metadata.edm.AbstractEntityContainer;
-import com.msopentech.odatajclient.engine.metadata.edm.AbstractEntityType;
-import com.msopentech.odatajclient.engine.metadata.edm.AbstractFunctionImport;
-import java.io.InputStream;
-import java.io.Serializable;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import org.apache.commons.lang3.StringUtils;
-import org.apache.commons.lang3.builder.EqualsBuilder;
-import org.apache.commons.lang3.builder.HashCodeBuilder;
-import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
-import org.apache.commons.lang3.builder.ToStringStyle;
-
-/**
- * Entry point for access information about EDM metadata.
- */
-public abstract class AbstractEdmMetadata<
-        EDMX extends AbstractEdmx<DS, S, EC, E, C, FI>, DS extends AbstractDataServices<
-        S, EC, E, C, FI>, S extends AbstractSchema<EC, E, C, FI>, EC extends AbstractEntityContainer<
-        FI>, E extends AbstractEntityType, C extends AbstractComplexType, FI extends AbstractFunctionImport>
-        implements Serializable {
-
-    private static final long serialVersionUID = -1214173426671503187L;
-
-    protected final EDMX edmx;
-
-    protected final Map<String, S> schemaByNsOrAlias;
-
-    /**
-     * Constructor.
-     *
-     * @param client OData client
-     * @param inputStream source stream.
-     */
-    @SuppressWarnings("unchecked")
-    public AbstractEdmMetadata(final ODataClient client, final InputStream inputStream) {
-        edmx = (EDMX) client.getDeserializer().toMetadata(inputStream);
-
-        this.schemaByNsOrAlias = new HashMap<String, S>();
-        for (S schema : edmx.getDataServices().getSchemas()) {
-            this.schemaByNsOrAlias.put(schema.getNamespace(), schema);
-            if (StringUtils.isNotBlank(schema.getAlias())) {
-                this.schemaByNsOrAlias.put(schema.getAlias(), schema);
-            }
-        }
-    }
-
-    /**
-     * Checks whether the given key is a valid namespace or alias in the EdM metadata document.
-     *
-     * @param key namespace or alias
-     * @return true if key is valid namespace or alias
-     */
-    public boolean isNsOrAlias(final String key) {
-        return this.schemaByNsOrAlias.keySet().contains(key);
-    }
-
-    /**
-     * Returns the Schema at the specified position in the EdM metadata document.
-     *
-     * @param index index of the Schema to return
-     * @return the Schema at the specified position in the EdM metadata document
-     */
-    public S getSchema(final int index) {
-        return this.edmx.getDataServices().getSchemas().get(index);
-    }
-
-    /**
-     * Returns the Schema with the specified key (namespace or alias) in the EdM metadata document.
-     *
-     * @param key namespace or alias
-     * @return the Schema with the specified key in the EdM metadata document
-     */
-    public S getSchema(final String key) {
-        return this.schemaByNsOrAlias.get(key);
-    }
-
-    /**
-     * Returns all Schema objects defined in the EdM metadata document.
-     *
-     * @return all Schema objects defined in the EdM metadata document
-     */
-    public List<S> getSchemas() {
-        return this.edmx.getDataServices().getSchemas();
-    }
-
-    /**
-     * {@inheritDoc }
-     */
-    @Override
-    public boolean equals(final Object obj) {
-        return EqualsBuilder.reflectionEquals(this, obj);
-    }
-
-    /**
-     * {@inheritDoc }
-     */
-    @Override
-    public int hashCode() {
-        return HashCodeBuilder.reflectionHashCode(this);
-    }
-
-    /**
-     * {@inheritDoc }
-     */
-    @Override
-    public String toString() {
-        return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
-    }
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/AbstractEdmType.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/AbstractEdmType.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/AbstractEdmType.java
deleted file mode 100644
index e7746c6..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/AbstractEdmType.java
+++ /dev/null
@@ -1,267 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.metadata;
-
-import com.msopentech.odatajclient.engine.metadata.edm.EdmSimpleType;
-import com.msopentech.odatajclient.engine.metadata.edm.AbstractComplexType;
-import com.msopentech.odatajclient.engine.metadata.edm.AbstractDataServices;
-import com.msopentech.odatajclient.engine.metadata.edm.AbstractEdmx;
-import com.msopentech.odatajclient.engine.metadata.edm.AbstractEntityContainer;
-import com.msopentech.odatajclient.engine.metadata.edm.AbstractEntityType;
-import com.msopentech.odatajclient.engine.metadata.edm.AbstractFunctionImport;
-import com.msopentech.odatajclient.engine.metadata.edm.AbstractEnumType;
-import com.msopentech.odatajclient.engine.metadata.edm.AbstractSchema;
-import org.apache.commons.lang3.StringUtils;
-
-/**
- * Parse type information from metadata into semantic data.
- */
-abstract class AbstractEdmType<META extends AbstractEdmMetadata<
-        EDMX, DS, S, EC, E, C, FI>, EDMX extends AbstractEdmx<DS, S, EC, E, C, FI>, DS extends AbstractDataServices<
-        S, EC, E, C, FI>, S extends AbstractSchema<EC, E, C, FI>, EC extends AbstractEntityContainer<
-        FI>, E extends AbstractEntityType, C extends AbstractComplexType, FI extends AbstractFunctionImport>
-        implements EdmType {
-
-    private final String typeExpression;
-
-    private final String baseType;
-
-    private final String namespaceOrAlias;
-
-    private boolean collection;
-
-    private EdmSimpleType simpleType;
-
-    private AbstractEnumType enumType;
-
-    private C complexType;
-
-    private E entityType;
-
-    /**
-     * Constructor.
-     *
-     * @param typeExpression type expression.
-     */
-    public AbstractEdmType(final String typeExpression) {
-        this(null, typeExpression);
-    }
-
-    /**
-     * Constructor.
-     *
-     * @param metadata metadata.
-     * @param typeExpression type expression.
-     */
-    public AbstractEdmType(final META metadata, final String typeExpression) {
-        this.typeExpression = typeExpression;
-
-        final int collectionStartIdx = typeExpression.indexOf("Collection(");
-        final int collectionEndIdx = typeExpression.lastIndexOf(')');
-        if (collectionStartIdx == -1) {
-            baseType = typeExpression;
-        } else {
-            if (collectionEndIdx == -1) {
-                throw new IllegalArgumentException("Malformed type: " + typeExpression);
-            }
-
-            this.collection = true;
-            baseType = typeExpression.substring(collectionStartIdx + 11, collectionEndIdx);
-        }
-
-        final int lastDotIdx = baseType.lastIndexOf('.');
-        if (lastDotIdx == -1) {
-            throw new IllegalArgumentException("Cannot find namespace or alias in " + typeExpression);
-        }
-        namespaceOrAlias = baseType.substring(0, lastDotIdx);
-        final String typeName = baseType.substring(lastDotIdx + 1);
-        if (StringUtils.isBlank(typeName)) {
-            throw new IllegalArgumentException("Null or empty type name in " + typeExpression);
-        }
-
-        if (namespaceOrAlias.equals(EdmSimpleType.namespace())) {
-            this.simpleType = EdmSimpleType.fromValue(EdmSimpleType.namespace() + "." + typeName);
-        } else if (metadata != null) {
-            if (!metadata.isNsOrAlias(namespaceOrAlias)) {
-                throw new IllegalArgumentException("Illegal namespace or alias: " + namespaceOrAlias);
-            }
-            final S schema = metadata.getSchema(namespaceOrAlias);
-
-            for (AbstractEnumType type : schema.getEnumTypes()) {
-                if (typeName.equals(type.getName())) {
-                    this.enumType = type;
-                }
-            }
-            if (this.enumType == null) {
-                for (C type : schema.getComplexTypes()) {
-                    if (typeName.equals(type.getName())) {
-                        this.complexType = type;
-                    }
-                }
-                if (this.complexType == null) {
-                    for (E type : schema.getEntityTypes()) {
-                        if (typeName.equals(type.getName())) {
-                            this.entityType = type;
-                        }
-                    }
-                }
-            }
-
-            if (!isSimpleType() && !isEnumType() && !isComplexType() && !isEntityType()) {
-                throw new IllegalArgumentException("Could not parse type information out of " + typeExpression);
-            }
-        }
-    }
-
-    /**
-     * Checks if is a collection.
-     *
-     * @return 'TRUE' if is a collection; 'FALSE' otherwise.
-     */
-    @Override
-    public final boolean isCollection() {
-        return this.collection;
-    }
-
-    /**
-     * Checks if is a simple type.
-     *
-     * @return 'TRUE' if is a simple type; 'FALSE' otherwise.
-     */
-    @Override
-    public final boolean isSimpleType() {
-        return this.simpleType != null;
-    }
-
-    /**
-     * Gets type as a simple type.
-     *
-     * @return simple type. An <tt>EdmTypeNotFoundException</tt> will be raised if it is not a simple type.
-     */
-    @Override
-    public final EdmSimpleType getSimpleType() {
-        if (!isSimpleType()) {
-            throw new EdmTypeNotFoundException(EdmSimpleType.class, this.typeExpression);
-        }
-
-        return this.simpleType;
-    }
-
-    /**
-     * Checks if is an enum type.
-     *
-     * @return 'TRUE' if is an enum type; 'FALSE' otherwise.
-     */
-    @Override
-    public final boolean isEnumType() {
-        return this.enumType != null;
-    }
-
-    /**
-     * Gets type as enum type.
-     *
-     * @return enum type. An <tt>EdmTypeNotFoundException</tt> will be raised if it is not an enum type.
-     */
-    @Override
-    public final AbstractEnumType getEnumType() {
-        if (!isEnumType()) {
-            throw new EdmTypeNotFoundException(AbstractEnumType.class, this.typeExpression);
-        }
-
-        return this.enumType;
-    }
-
-    /**
-     * Checks if is a complex type.
-     *
-     * @return 'TRUE' if is a complex type; 'FALSE' otherwise.
-     */
-    @Override
-    public final boolean isComplexType() {
-        return this.complexType != null;
-    }
-
-    /**
-     * Gets type as complex type.
-     *
-     * @return complex type. An <tt>EdmTypeNotFoundException</tt> will be raised if it is not a complex type.
-     */
-    @Override
-    public final C getComplexType() {
-        if (!isComplexType()) {
-            throw new EdmTypeNotFoundException(AbstractComplexType.class, this.typeExpression);
-        }
-
-        return this.complexType;
-    }
-
-    /**
-     * Checks if is an entity type.
-     *
-     * @return 'TRUE' if is an entity type; 'FALSE' otherwise.
-     */
-    @Override
-    public final boolean isEntityType() {
-        return this.entityType != null;
-    }
-
-    /**
-     * Gets type as entity type.
-     *
-     * @return entity type. An <tt>EdmTypeNotFoundException</tt> will be raised if it is not an entity type.
-     */
-    @Override
-    public final E getEntityType() {
-        if (!isEntityType()) {
-            throw new EdmTypeNotFoundException(AbstractEntityType.class, this.typeExpression);
-        }
-
-        return this.entityType;
-    }
-
-    /**
-     * Gets base type.
-     *
-     * @return base type.
-     */
-    @Override
-    public String getBaseType() {
-        return baseType;
-    }
-
-    /**
-     * Gets type expression.
-     *
-     * @return type expression.
-     */
-    @Override
-    public String getTypeExpression() {
-        return typeExpression;
-    }
-
-    /**
-     * Gets namespace or alias retrieved from the provided type expression.
-     *
-     * @return namespace or alias.
-     */
-    @Override
-    public String getNamespaceOrAlias() {
-        return namespaceOrAlias;
-    }
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmContentKind.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmContentKind.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmContentKind.java
deleted file mode 100644
index fa7f946..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmContentKind.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.metadata;
-
-/**
- * Specifies the content type of the value of the property being mapped via a customizable feed mapping.
- */
-public enum EdmContentKind {
-
-    text,
-    html,
-    xhtml;
-
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmType.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmType.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmType.java
deleted file mode 100644
index 1e53e3f..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmType.java
+++ /dev/null
@@ -1,111 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.metadata;
-
-import com.msopentech.odatajclient.engine.metadata.edm.AbstractComplexType;
-import com.msopentech.odatajclient.engine.metadata.edm.AbstractEntityType;
-import com.msopentech.odatajclient.engine.metadata.edm.EdmSimpleType;
-import com.msopentech.odatajclient.engine.metadata.edm.AbstractEnumType;
-
-public interface EdmType {
-
-    /**
-     * Checks if is a collection.
-     *
-     * @return 'TRUE' if is a collection; 'FALSE' otherwise.
-     */
-    boolean isCollection();
-
-    /**
-     * Checks if is a simple type.
-     *
-     * @return 'TRUE' if is a simple type; 'FALSE' otherwise.
-     */
-    boolean isSimpleType();
-
-    /**
-     * Gets type as a simple type.
-     *
-     * @return simple type. An <tt>EdmTypeNotFoundException</tt> will be raised if it is not a simple type.
-     */
-    EdmSimpleType getSimpleType();
-
-    /**
-     * Checks if is an enum type.
-     *
-     * @return 'TRUE' if is an enum type; 'FALSE' otherwise.
-     */
-    boolean isEnumType();
-
-    /**
-     * Gets type as enum type.
-     *
-     * @return enum type. An <tt>EdmTypeNotFoundException</tt> will be raised if it is not an enum type.
-     */
-    AbstractEnumType getEnumType();
-
-    /**
-     * Checks if is a complex type.
-     *
-     * @return 'TRUE' if is a complex type; 'FALSE' otherwise.
-     */
-    boolean isComplexType();
-
-    /**
-     * Gets type as complex type.
-     *
-     * @return complex type. An <tt>EdmTypeNotFoundException</tt> will be raised if it is not a complex type.
-     */
-    AbstractComplexType getComplexType();
-
-    /**
-     * Checks if is an entity type.
-     *
-     * @return 'TRUE' if is an entity type; 'FALSE' otherwise.
-     */
-    boolean isEntityType();
-
-    /**
-     * Gets type as entity type.
-     *
-     * @return entity type. An <tt>EdmTypeNotFoundException</tt> will be raised if it is not an entity type.
-     */
-    AbstractEntityType getEntityType();
-
-    /**
-     * Gets base type.
-     *
-     * @return base type.
-     */
-    String getBaseType();
-
-    /**
-     * Gets type expression.
-     *
-     * @return type expression.
-     */
-    String getTypeExpression();
-
-    /**
-     * Gets namespace or alias retrieved from the provided type expression.
-     *
-     * @return namespace or alias.
-     */
-    String getNamespaceOrAlias();
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmTypeNotFoundException.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmTypeNotFoundException.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmTypeNotFoundException.java
deleted file mode 100644
index 53719ce..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmTypeNotFoundException.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.metadata;
-
-/**
- * This exception indicates that a certain type is not found.
- */
-public class EdmTypeNotFoundException extends RuntimeException {
-
-    private static final long serialVersionUID = 1685118875699966611L;
-
-    /**
-     * Constructor.
-     *
-     * @param type type in object.
-     * @param typeExpression type expression.
-     */
-    public EdmTypeNotFoundException(final Class<?> type, final String typeExpression) {
-        super("No " + type.getSimpleName() + " found in " + typeExpression);
-    }
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmV3Metadata.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmV3Metadata.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmV3Metadata.java
deleted file mode 100644
index 372d7b0..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmV3Metadata.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.metadata;
-
-import com.msopentech.odatajclient.engine.client.ODataClient;
-import com.msopentech.odatajclient.engine.metadata.edm.v3.ComplexType;
-import com.msopentech.odatajclient.engine.metadata.edm.v3.DataServices;
-import com.msopentech.odatajclient.engine.metadata.edm.v3.Edmx;
-import com.msopentech.odatajclient.engine.metadata.edm.v3.EntityContainer;
-import com.msopentech.odatajclient.engine.metadata.edm.v3.EntityType;
-import com.msopentech.odatajclient.engine.metadata.edm.v3.FunctionImport;
-import com.msopentech.odatajclient.engine.metadata.edm.v3.Schema;
-import java.io.InputStream;
-
-public class EdmV3Metadata extends AbstractEdmMetadata<
-        Edmx, DataServices, Schema, EntityContainer, EntityType, ComplexType, FunctionImport> {
-
-    private static final long serialVersionUID = -7765327879691528010L;
-
-    public EdmV3Metadata(final ODataClient client, final InputStream inputStream) {
-        super(client, inputStream);
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmV3Type.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmV3Type.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmV3Type.java
deleted file mode 100644
index e1a294b..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmV3Type.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.metadata;
-
-import com.msopentech.odatajclient.engine.metadata.edm.v3.ComplexType;
-import com.msopentech.odatajclient.engine.metadata.edm.v3.DataServices;
-import com.msopentech.odatajclient.engine.metadata.edm.v3.Edmx;
-import com.msopentech.odatajclient.engine.metadata.edm.v3.EntityContainer;
-import com.msopentech.odatajclient.engine.metadata.edm.v3.EntityType;
-import com.msopentech.odatajclient.engine.metadata.edm.v3.FunctionImport;
-import com.msopentech.odatajclient.engine.metadata.edm.v3.Schema;
-
-public class EdmV3Type extends AbstractEdmType<
-        EdmV3Metadata, Edmx, DataServices, Schema, EntityContainer, EntityType, ComplexType, FunctionImport> {
-
-    public EdmV3Type(final String typeExpression) {
-        super(typeExpression);
-    }
-
-    public EdmV3Type(final EdmV3Metadata metadata, final String typeExpression) {
-        super(metadata, typeExpression);
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmV4Metadata.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmV4Metadata.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmV4Metadata.java
deleted file mode 100644
index 79e77fa..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmV4Metadata.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.metadata;
-
-import com.msopentech.odatajclient.engine.client.ODataClient;
-import com.msopentech.odatajclient.engine.metadata.edm.v4.ComplexType;
-import com.msopentech.odatajclient.engine.metadata.edm.v4.DataServices;
-import com.msopentech.odatajclient.engine.metadata.edm.v4.Edmx;
-import com.msopentech.odatajclient.engine.metadata.edm.v4.EntityContainer;
-import com.msopentech.odatajclient.engine.metadata.edm.v4.EntityType;
-import com.msopentech.odatajclient.engine.metadata.edm.v4.FunctionImport;
-import com.msopentech.odatajclient.engine.metadata.edm.v4.Reference;
-import com.msopentech.odatajclient.engine.metadata.edm.v4.Schema;
-import java.io.InputStream;
-import java.util.List;
-
-public class EdmV4Metadata extends AbstractEdmMetadata<
-        Edmx, DataServices, Schema, EntityContainer, EntityType, ComplexType, FunctionImport> {
-
-    private static final long serialVersionUID = -7765327879691528010L;
-
-    public EdmV4Metadata(final ODataClient client, final InputStream inputStream) {
-        super(client, inputStream);
-    }
-
-    public List<Reference> getReferences() {
-        return this.edmx.getReferences();
-    }
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmV4Type.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmV4Type.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmV4Type.java
deleted file mode 100644
index 4f7dcb2..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/EdmV4Type.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.metadata;
-
-import com.msopentech.odatajclient.engine.metadata.edm.v4.EntityContainer;
-import com.msopentech.odatajclient.engine.metadata.edm.v4.FunctionImport;
-import com.msopentech.odatajclient.engine.metadata.edm.v4.ComplexType;
-import com.msopentech.odatajclient.engine.metadata.edm.v4.DataServices;
-import com.msopentech.odatajclient.engine.metadata.edm.v4.Edmx;
-import com.msopentech.odatajclient.engine.metadata.edm.v4.EntityType;
-import com.msopentech.odatajclient.engine.metadata.edm.v4.Schema;
-
-public class EdmV4Type extends AbstractEdmType<
-        EdmV4Metadata, Edmx, DataServices, Schema, EntityContainer, EntityType, ComplexType, FunctionImport> {
-
-    public EdmV4Type(final String typeExpression) {
-        super(typeExpression);
-    }
-
-    public EdmV4Type(final EdmV4Metadata metadata, final String typeExpression) {
-        super(metadata, typeExpression);
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/AbstractAnnotations.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/AbstractAnnotations.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/AbstractAnnotations.java
deleted file mode 100644
index 1c95708..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/AbstractAnnotations.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.metadata.edm;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-public abstract class AbstractAnnotations extends AbstractEdm {
-
-    private static final long serialVersionUID = 4926640428016042620L;
-
-    @JsonProperty(value = "Target", required = true)
-    private String target;
-
-    @JsonProperty("Qualifier")
-    private String qualifier;
-
-    public String getTarget() {
-        return target;
-    }
-
-    public void setTarget(final String target) {
-        this.target = target;
-    }
-
-    public String getQualifier() {
-        return qualifier;
-    }
-
-    public void setQualifier(final String qualifier) {
-        this.qualifier = qualifier;
-    }
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/AbstractComplexType.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/AbstractComplexType.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/AbstractComplexType.java
deleted file mode 100644
index 8c23921..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/AbstractComplexType.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.metadata.edm;
-
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import java.util.List;
-
-@JsonDeserialize(using = ComplexTypeDeserializer.class)
-public abstract class AbstractComplexType extends AbstractEdm {
-
-    private static final long serialVersionUID = -4765071294433482957L;
-
-    private String name;
-
-    public String getName() {
-        return name;
-    }
-
-    public void setName(final String name) {
-        this.name = name;
-    }
-
-    public abstract List<? extends AbstractProperty> getProperties();
-
-    public abstract AbstractProperty getProperty(String name);
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/AbstractDataServices.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/AbstractDataServices.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/AbstractDataServices.java
deleted file mode 100644
index d34f400..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/AbstractDataServices.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.metadata.edm;
-
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import java.util.List;
-
-@JsonDeserialize(using = DataServicesDeserializer.class)
-public abstract class AbstractDataServices<S extends AbstractSchema<EC, E, C, FI>, EC extends AbstractEntityContainer<
-        FI>, E extends AbstractEntityType, C extends AbstractComplexType, FI extends AbstractFunctionImport>
-        extends AbstractEdm {
-
-    private static final long serialVersionUID = -9126377222393876166L;
-
-    private String dataServiceVersion;
-
-    private String maxDataServiceVersion;
-
-    public String getDataServiceVersion() {
-        return dataServiceVersion;
-    }
-
-    public void setDataServiceVersion(final String dataServiceVersion) {
-        this.dataServiceVersion = dataServiceVersion;
-    }
-
-    public String getMaxDataServiceVersion() {
-        return maxDataServiceVersion;
-    }
-
-    public void setMaxDataServiceVersion(final String maxDataServiceVersion) {
-        this.maxDataServiceVersion = maxDataServiceVersion;
-    }
-
-    public abstract List<S> getSchemas();
-}

http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/19f3792f/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/AbstractEdm.java
----------------------------------------------------------------------
diff --git a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/AbstractEdm.java b/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/AbstractEdm.java
deleted file mode 100644
index ac8144a..0000000
--- a/ODataJClient/engine/src/main/java/com/msopentech/odatajclient/engine/metadata/edm/AbstractEdm.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.msopentech.odatajclient.engine.metadata.edm;
-
-import java.io.Serializable;
-import org.apache.commons.lang3.builder.EqualsBuilder;
-import org.apache.commons.lang3.builder.HashCodeBuilder;
-import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
-import org.apache.commons.lang3.builder.ToStringStyle;
-
-public abstract class AbstractEdm implements Serializable {
-
-    private static final long serialVersionUID = -5980662430186543962L;
-
-    /**
-     * {@inheritDoc }
-     */
-    @Override
-    public boolean equals(final Object obj) {
-        return EqualsBuilder.reflectionEquals(this, obj);
-    }
-
-    /**
-     * {@inheritDoc }
-     */
-    @Override
-    public int hashCode() {
-        return HashCodeBuilder.reflectionHashCode(this);
-    }
-
-    /**
-     * {@inheritDoc }
-     */
-    @Override
-    public String toString() {
-        return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
-    }
-}