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

org.apache.olingo.odata2.api.ep.entry.ODataEntry Maven / Gradle / Ivy

There is a newer version: 3.4.1
Show newest version
/*******************************************************************************
 * 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 org.apache.olingo.odata2.api.ep.entry;

import java.util.Map;

import org.apache.olingo.odata2.api.uri.ExpandSelectTreeNode;

/**
 * An {@link ODataEntry} contains all properties (in form of a {@link Map}) and possible metadata
 * (in form of {@link MediaMetadata} and/or {@link EntryMetadata}) for an entry.
 * 
 */
public interface ODataEntry {

  /**
   * Properties of this {@link ODataEntry} in form of a property name to property value map.
   * 
   * @return a property name to property value map.
   */
  public Map getProperties();

  /**
   * Get {@link MediaMetadata} for this {@link ODataEntry} if available.
   * 
   * @return {@link MediaMetadata} for this {@link ODataEntry} if available.
   */
  public MediaMetadata getMediaMetadata();

  /**
   * Get {@link EntryMetadata} for this {@link ODataEntry} if available.
   * 
   * @return {@link EntryMetadata} for this {@link ODataEntry} if available.
   */
  public EntryMetadata getMetadata();

  /**
   * If this {@link ODataEntry} contains properties of an inline navigation property this method
   * returns true.
   * Otherwise if this {@link ODataEntry} only contains it own properties this method
   * returns false.
   * 
   * @return true if inline navigation properties are contained, otherwise false.
   */
  public boolean containsInlineEntry();

  /**
   * Gets the expand select tree data structure which can be used for $expand query option.
   * 
   * @return parsed tree structure representing the $expand
   */
  public ExpandSelectTreeNode getExpandSelectTree();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy