org.apache.olingo.odata2.api.uri
Class ExpandSelectTreeNode

java.lang.Object
  extended by org.apache.olingo.odata2.api.uri.ExpandSelectTreeNode

public abstract class ExpandSelectTreeNode
extends Object

Expression tree node with information about selected properties and to be expanded links.

Do not implement this interface or derive from class.

Nested Class Summary
static class ExpandSelectTreeNode.ExpandSelectTreeNodeBuilder
          Builder interface
 
Constructor Summary
ExpandSelectTreeNode()
           
 
Method Summary
static ExpandSelectTreeNode.ExpandSelectTreeNodeBuilder entitySet(EdmEntitySet entitySet)
          Creates a builder instance and sets the entitySet for this node.
abstract  Map<String,ExpandSelectTreeNode> getLinks()
          Gets the links that have to be included or expanded.
abstract  List<EdmProperty> getProperties()
          Gets the list of explicitly selected properties.
abstract  boolean isAll()
          Determines whether all properties (including navigation properties) have been selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpandSelectTreeNode

public ExpandSelectTreeNode()
Method Detail

isAll

public abstract boolean isAll()
Determines whether all properties (including navigation properties) have been selected.


getProperties

public abstract List<EdmProperty> getProperties()

Gets the list of explicitly selected properties.

This list does not contain any navigation properties. It is empty if isAll() returns true.

Returns:
List of selected properties

getLinks

public abstract Map<String,ExpandSelectTreeNode> getLinks()
Gets the links that have to be included or expanded.

Returns:
a Map from EdmNavigationProperty Name to its related ExpandSelectTreeNode; if that node is null, a deferred link has been requested, otherwise the link must be expanded with information found in that node

entitySet

public static ExpandSelectTreeNode.ExpandSelectTreeNodeBuilder entitySet(EdmEntitySet entitySet)
Creates a builder instance and sets the entitySet for this node.

Parameters:
entitySet - on which this node is based
Returns:
ExpandSelectTreeNode.ExpandSelectTreeNodeBuilder to build the node


Copyright © 2013-2015 The Apache Software Foundation. All Rights Reserved.