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

org.apache.olingo.odata2.api.edm.provider.EntityContainer 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.edm.provider;

import java.util.List;

/**
 * Objects of this class represent an entity container including its child elements
 * 
 */
public class EntityContainer extends EntityContainerInfo {

  private List entitySets;
  private List associationSets;
  private List functionImports;
  private Documentation documentation;

  /**
   * @return List of all entity sets of the entity container
   */
  public List getEntitySets() {
    return entitySets;
  }

  /**
   * Sets the entity sets of this {@link EntityContainer}
   * @param entitySets
   * @return {@link EntityContainerInfo} for method chaining
   */
  public EntityContainer setEntitySets(final List entitySets) {
    this.entitySets = entitySets;
    return this;
  }

  /**
   * @return List of all association sets of the entity container
   */
  public List getAssociationSets() {
    return associationSets;
  }

  /**
   * Sets the association sets of this {@link EntityContainer}
   * @param associationSets
   * @return {@link EntityContainerInfo} for method chaining
   */
  public EntityContainer setAssociationSets(final List associationSets) {
    this.associationSets = associationSets;
    return this;
  }

  /**
   * @return List of all function imports of the entity container
   */
  public List getFunctionImports() {
    return functionImports;
  }

  /**
   * Sets the function imports of this {@link EntityContainer}
   * @param functionImports
   * @return {@link EntityContainerInfo} for method chaining
   */
  public EntityContainer setFunctionImports(final List functionImports) {
    this.functionImports = functionImports;
    return this;
  }

  /**
   * Sets the name of this {@link EntityContainer}
   * @param name
   * @return {@link EntityContainer} for method chaining
   */
  @Override
  public EntityContainer setName(final String name) {
    super.setName(name);
    return this;
  }

  /**
   * Sets the entity container which is the parent of this {@link EntityContainer}
   * @param extendz
   * @return {@link EntityContainer} for method chaining
   */
  @Override
  public EntityContainer setExtendz(final String extendz) {
    super.setExtendz(extendz);
    return this;
  }

  /**
   * Sets if this is the default {@link EntityContainer}
   * @param isDefaultEntityContainer
   * @return {@link EntityContainer} for method chaining
   */
  @Override
  public EntityContainer setDefaultEntityContainer(final boolean isDefaultEntityContainer) {
    super.setDefaultEntityContainer(isDefaultEntityContainer);
    return this;
  }

  /**
   * @return {@link Documentation} documentation
   */
  public Documentation getDocumentation() {
    return documentation;
  }

  /**
   * Sets the {@link Documentation}
   * @param documentation
   * @return {@link EntityContainer} for method chaining
   */
  public EntityContainer setDocumentation(final Documentation documentation) {
    this.documentation = documentation;
    return this;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy