Class ExpandSelectTreeNodeImpl.ExpandSelectTreeNodeBuilderImpl
java.lang.Object
org.apache.olingo.odata2.api.uri.ExpandSelectTreeNode.ExpandSelectTreeNodeBuilder
org.apache.olingo.odata2.core.uri.ExpandSelectTreeNodeImpl.ExpandSelectTreeNodeBuilderImpl
- Enclosing class:
- ExpandSelectTreeNodeImpl
public class ExpandSelectTreeNodeImpl.ExpandSelectTreeNodeBuilderImpl
extends ExpandSelectTreeNode.ExpandSelectTreeNodeBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Will close this builder and return anExpandSelectTreeNode.customExpandedLink(String navigationPropertyName, ExpandSelectTreeNode expandNode) Sets a link to be expanded with a custom node.entitySet(EdmEntitySet entitySet) Sets the entitySet for this node.expandedLinks(List<String> navigationPropertyNames) A list of expanded links.selectedLinks(List<String> selectedNavigationPropertyNames) A list of selected links.selectedProperties(List<String> selectedPropertyNames) A list of properties which are selected.
-
Constructor Details
-
ExpandSelectTreeNodeBuilderImpl
public ExpandSelectTreeNodeBuilderImpl()
-
-
Method Details
-
entitySet
Description copied from class:ExpandSelectTreeNode.ExpandSelectTreeNodeBuilderSets the entitySet for this node.- Specified by:
entitySetin classExpandSelectTreeNode.ExpandSelectTreeNodeBuilder- Parameters:
entitySet- must not be null- Returns:
ExpandSelectTreeNode.ExpandSelectTreeNodeBuilderfor method chaining.
-
build
Description copied from class:ExpandSelectTreeNode.ExpandSelectTreeNodeBuilderWill close this builder and return anExpandSelectTreeNode. All properties and navigation properties will be validated if they exist for the entity set.- Specified by:
buildin classExpandSelectTreeNode.ExpandSelectTreeNodeBuilder- Returns:
ExpandSelectTreeNode.ExpandSelectTreeNodeBuilderfor method chaining.- Throws:
EdmException- in case property or navigation property validation fails.
-
selectedProperties
public ExpandSelectTreeNode.ExpandSelectTreeNodeBuilder selectedProperties(List<String> selectedPropertyNames) Description copied from class:ExpandSelectTreeNode.ExpandSelectTreeNodeBuilderA list of properties which are selected. Selected means that they appear in the payload during serialization. MUST NOT CONTAIN navigation properties.- Specified by:
selectedPropertiesin classExpandSelectTreeNode.ExpandSelectTreeNodeBuilder- Returns:
ExpandSelectTreeNode.ExpandSelectTreeNodeBuilderfor method chaining.
-
selectedLinks
public ExpandSelectTreeNode.ExpandSelectTreeNodeBuilder selectedLinks(List<String> selectedNavigationPropertyNames) Description copied from class:ExpandSelectTreeNode.ExpandSelectTreeNodeBuilderA list of selected links. Selected means they appear as links in the payload. If a link should be expanded they navigation property does not need to appear here but can. Expanded links will win over selected links.- Specified by:
selectedLinksin classExpandSelectTreeNode.ExpandSelectTreeNodeBuilder- Returns:
ExpandSelectTreeNode.ExpandSelectTreeNodeBuilderfor method chaining.
-
customExpandedLink
public ExpandSelectTreeNode.ExpandSelectTreeNodeBuilder customExpandedLink(String navigationPropertyName, ExpandSelectTreeNode expandNode) Description copied from class:ExpandSelectTreeNode.ExpandSelectTreeNodeBuilderSets a link to be expanded with a custom node. With this the inline content can either also be expanded or selected. Custom nodes for a navigation properties will win over navigation properties which are also specified in the expanded links list. Example: if a link A is set with a custom node and A appears in the expanded link list it will be expanded with the custom node.- Specified by:
customExpandedLinkin classExpandSelectTreeNode.ExpandSelectTreeNodeBuilderexpandNode- must not be null- Returns:
ExpandSelectTreeNode.ExpandSelectTreeNodeBuilderfor method chaining.
-
expandedLinks
public ExpandSelectTreeNode.ExpandSelectTreeNodeBuilder expandedLinks(List<String> navigationPropertyNames) Description copied from class:ExpandSelectTreeNode.ExpandSelectTreeNodeBuilderA list of expanded links. Expanded means their content will be shown as inline entry or feed in the payload but a callback MUST BE registered to get the content for the inline content. The inline content will appear with all properties and links. If this is not needed use the customExpandedLink method to set a custom node for this expanded link. Expanded links will win over selected links. If a custom node was set for a particular link it will win over a link that is specified in this list.- Specified by:
expandedLinksin classExpandSelectTreeNode.ExpandSelectTreeNodeBuilder- Returns:
ExpandSelectTreeNode.ExpandSelectTreeNodeBuilderfor method chaining.
-