Examples of ExpandSelectTreeNodeImpl


Examples of org.apache.olingo.odata2.core.uri.ExpandSelectTreeNodeImpl

   * @throws EntityProviderException if an unsupported {@link ExpandSelectTreeNode} implementation was found.
   */
  private ExpandSelectTreeNodeImpl getExpandSelectTreeNode(final List<ODataEntry> inlineEntries)
      throws EntityProviderException {
    if (inlineEntries.isEmpty()) {
      return new ExpandSelectTreeNodeImpl();
    } else {
      ExpandSelectTreeNode inlinedEntryEstNode = inlineEntries.get(0).getExpandSelectTree();
      if (inlinedEntryEstNode instanceof ExpandSelectTreeNodeImpl) {
        return (ExpandSelectTreeNodeImpl) inlinedEntryEstNode;
      } else {
View Full Code Here

Examples of org.apache.olingo.odata2.core.uri.ExpandSelectTreeNodeImpl

   */
  private void initialize(final EntityProviderReadProperties readProperties) throws EntityProviderException {
    properties = new HashMap<String, Object>();
    mediaMetadata = new MediaMetadataImpl();
    entryMetadata = new EntryMetadataImpl();
    expandSelectTree = new ExpandSelectTreeNodeImpl();

    readEntryResult = new ODataEntryImpl(properties, mediaMetadata, entryMetadata, expandSelectTree);
    typeMappings = EntityTypeMapping.create(readProperties.getTypeMappings());
  }
View Full Code Here

Examples of org.apache.olingo.odata2.core.uri.ExpandSelectTreeNodeImpl

   * @throws EntityProviderException
   */
  private void updateExpandSelectTree(final String navigationPropertyName, final List<ODataEntry> inlineEntries)
      throws EntityProviderException {
    expandSelectTree.setExpanded();
    ExpandSelectTreeNodeImpl subNode = getExpandSelectTreeNode(inlineEntries);
    expandSelectTree.putLink(navigationPropertyName, subNode);
  }
View Full Code Here

Examples of org.apache.olingo.odata2.core.uri.ExpandSelectTreeNodeImpl

   * @throws EntityProviderException if an unsupported {@link ExpandSelectTreeNode} implementation was found.
   */
  private ExpandSelectTreeNodeImpl getExpandSelectTreeNode(final List<ODataEntry> inlineEntries)
      throws EntityProviderException {
    if (inlineEntries.isEmpty()) {
      return new ExpandSelectTreeNodeImpl();
    } else {
      ExpandSelectTreeNode inlinedEntryEstNode = inlineEntries.get(0).getExpandSelectTree();
      if (inlinedEntryEstNode instanceof ExpandSelectTreeNodeImpl) {
        return (ExpandSelectTreeNodeImpl) inlinedEntryEstNode;
      } else {
View Full Code Here

Examples of org.apache.olingo.odata2.core.uri.ExpandSelectTreeNodeImpl

    if (entries.size() > 0) {
      updateExpandSelectTree(navigationPropertyName, entries.get(0));
    } else {
      expandSelectTree.setExpanded();
      expandSelectTree.setExplicitlySelected();
      expandSelectTree.putLink(navigationPropertyName, new ExpandSelectTreeNodeImpl());
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.