blob: 2519eac1d3d195d6f912f454a292fee3eef5cc1f [file] [log] [blame]
/*******************************************************************************
* 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.client.api.uri;
/**
* URI Segment types.
*/
public enum SegmentType {
/**
* Initial will be the builder state to begin with a service root url
*/
INITIAL,
/**
* When we append entity set state is changed to ENTITYSET
*/
ENTITYSET,
/**
*
*/
ENTITY,
/**
* When we append simple property state is changed to SIMPLEPROPERTY
*/
SIMPLEPROPERTY,
/**
* When there is a key in segment
*/
KEY,
/**
* When we append simple complex state is changed to COMPLEXPROPERTY
*/
COMPLEXPROPERTY,
/**
* When there is navigation to many then the state is NAVIGATION_TO_MANY
*/
NAVIGATION_TO_MANY,
/**
* When there is navigation to many with a key then the state is
* NAVIGATION_TO_MANY_WITH_KEY
*/
NAVIGATION_TO_MANY_WITH_KEY,
/**
* When there is navigation to one then the state is NAVIGATION_TO_ONE
*/
NAVIGATION_TO_ONE,
/**
* When there is count query option
*/
COUNT("$count"),
/**
* When there is a value query option
*/
VALUE("$value"),
/**
* When there is a metadata uri segment
*/
METADATA("$metadata"),
PROPERTY,
NAVIGATION,
FUNCTIONIMPORT,
FUNCTIONIMPORT_WITH_KEY,
FUNCTIONIMPORT_MANY;
private final String value;
private SegmentType() {
this.value = "";
}
private SegmentType(final String value) {
this.value = value;
}
public String getValue() {
return value;
}
}