Class ContextURLHelper
java.lang.Object
org.apache.olingo.server.core.serializer.utils.ContextURLHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildKeyPredicate(List<UriParameter> keys) Builds a key predicate for the ContextURL.static StringbuildSelectList(EdmStructuredType type, ExpandOption expand, SelectOption select) Builds a list of selected Properties for the ContextURL, taking care to preserve the order as defined in the EDM; returns NULL if no selection has taken place.
-
Method Details
-
buildSelectList
public static String buildSelectList(EdmStructuredType type, ExpandOption expand, SelectOption select) throws SerializerException Builds a list of selected Properties for the ContextURL, taking care to preserve the order as defined in the EDM; returns NULL if no selection has taken place.- Parameters:
type- the structured typeexpand- the Expand option (from the URL's $expand query option)select- the Select option (from the URL's $select query option)- Returns:
- a select-list String
- Throws:
SerializerException- if an unsupported feature is used
-
buildKeyPredicate
Builds a key predicate for the ContextURL.- Parameters:
keys- the keys as a list ofUriParameterinstances- Returns:
- a String with the key predicate
- Throws:
SerializerException
-