All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.windowsazure.services.table.client.ODataConstants Maven / Gradle / Ivy

There is a newer version: 0.4.6
Show newest version
/**
 * Copyright Microsoft Corporation
 * 
 * Licensed 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.microsoft.windowsazure.services.table.client;

/**
 * Reserved for internal use. A class that holds relevant constants for interacting with OData feeds.
 */
class ODataConstants {
    /**
     * The String representation of the Atom namespace.
     */
    public static final String ATOM_NS = "http://www.w3.org/2005/Atom";

    /**
     * The String representation of the OData Data namespace.
     */
    public static final String DATA_SERVICES_NS = "http://schemas.microsoft.com/ado/2007/08/dataservices";

    /**
     * The String representation of the OData Metadata namespace.
     */
    public static final String DATA_SERVICES_METADATA_NS = "http://schemas.microsoft.com/ado/2007/08/dataservices/metadata";

    /**
     * The String representation of the Atom namespace in brackets.
     */
    public static final String BRACKETED_ATOM_NS = "{" + ATOM_NS + "}"; // default

    /**
     * The String representation of the OData Data namespace in brackets.
     */
    public static final String BRACKETED_DATA_SERVICES_NS = "{" + DATA_SERVICES_NS + "}"; // d:

    /**
     * The String representation of the OData Metadata namespace in brackets.
     */
    public static final String BRACKETED_DATA_SERVICES_METADATA_NS = "{" + DATA_SERVICES_METADATA_NS + "}"; // m:

    /**
     * The String representation of the Atom Entry feed element name.
     */
    public static final String FEED = "feed";

    /**
     * The String representation of the Atom Entry title element name.
     */
    public static final String TITLE = "title";

    /**
     * The String representation of the Atom Entry id element name.
     */
    public static final String ID = "id";

    /**
     * The String representation of the Atom Entry updated element name.
     */
    public static final String UPDATED = "updated";

    /**
     * The String representation of the Atom Entry link element name.
     */
    public static final String LINK = "link";

    /**
     * The String representation of the Atom Entry author element name.
     */
    public static final String AUTHOR = "author";

    /**
     * The String representation of the Atom Entry name element name.
     */
    public static final String NAME = "name";

    /**
     * The String representation of the Atom Entry entry element name.
     */
    public static final String ENTRY = "entry";

    /**
     * The String representation of the Atom Entry category element name.
     */
    public static final String CATEGORY = "category";

    /**
     * The String representation of the Atom Entry content element name.
     */
    public static final String CONTENT = "content";

    /**
     * The String representation of the OData Metadata properties element name.
     */
    public static final String PROPERTIES = "properties";

    /**
     * The String representation of the Atom Entry etag element name.
     */
    public static final String ETAG = "etag";

    /**
     * The String representation of the type attribute name.
     */
    public static final String TYPE = "type";

    /**
     * The String representation of the term element name.
     */
    public static final String TERM = "term";

    /**
     * The String representation of scheme.
     */
    public static final String SCHEME = "scheme";

    /**
     * The String representation of href.
     */
    public static final String HREF = "href";

    /**
     * The String representation of rel.
     */
    public static final String REL = "rel";

    /**
     * The String representation of the null attribute name.
     */
    public static final String NULL = "null";

    /**
     * The String representation of the content type attribute value to send.
     */
    public static final String ODATA_CONTENT_TYPE = "application/xml";

    // Odata edm types

    /**
     * The String representation of the Edm.DateTime metadata type attribute value.
     */
    public static final String EDMTYPE_DATETIME = "Edm.DateTime";

    /**
     * The String representation of the Edm.Binary metadata type attribute value.
     */
    public static final String EDMTYPE_BINARY = "Edm.Binary";

    /**
     * The String representation of the Edm.Boolean metadata type attribute value.
     */
    public static final String EDMTYPE_BOOLEAN = "Edm.Boolean";

    /**
     * The String representation of the Edm.Double metadata type attribute value.
     */
    public static final String EDMTYPE_DOUBLE = "Edm.Double";

    /**
     * The String representation of the Edm.Guid metadata type attribute value.
     */
    public static final String EDMTYPE_GUID = "Edm.Guid";

    /**
     * The String representation of the Edm.Int32 metadata type attribute value.
     */
    public static final String EDMTYPE_INT32 = "Edm.Int32";

    /**
     * The String representation of the Edm.Int64 metadata type attribute value.
     */
    public static final String EDMTYPE_INT64 = "Edm.Int64";
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy