text
stringlengths
3
1.18M
package org.odata4j.expression; public interface LiteralExpression extends CommonExpression { }
package org.odata4j.expression; public interface DayMethodCallExpression extends MethodCallExpression { CommonExpression getTarget(); }
package org.odata4j.expression; public interface IndexOfMethodCallExpression extends MethodCallExpression { CommonExpression getTarget(); CommonExpression getValue(); }
package org.odata4j.expression; public interface AndExpression extends BoolCommonExpression, BinaryBoolCommonExpression { }
package org.odata4j.expression; public interface NeExpression extends BoolCommonExpression, BinaryCommonExpression { }
package org.odata4j.expression; public interface MethodCallExpression extends CommonExpression { }
package org.odata4j.expression; public interface ParenExpression extends CommonExpression { CommonExpression getExpression(); }
package org.odata4j.expression; public interface LeExpression extends BoolCommonExpression, BinaryCommonExpression { }
package org.odata4j.expression; public interface SecondMethodCallExpression extends MethodCallExpression { CommonExpression getTarget(); }
package org.odata4j.expression; public interface LtExpression extends BoolCommonExpression, BinaryCommonExpression { }
package org.odata4j.expression; public interface DivExpression extends CommonExpression, BinaryCommonExpression { }
package org.odata4j.expression; import org.joda.time.LocalTime; public interface TimeLiteral extends LiteralExpression { LocalTime getValue(); }
package org.odata4j.expression; import java.math.BigDecimal; public interface DecimalLiteral extends LiteralExpression { BigDecimal getValue(); }
package org.odata4j.expression; public interface ConcatMethodCallExpression extends MethodCallExpression { CommonExpression getLHS(); CommonExpression getRHS(); }
package org.odata4j.expression; public interface CeilingMethodCallExpression extends MethodCallExpression { CommonExpression getTarget(); }
package org.odata4j.expression; public interface GtExpression extends BoolCommonExpression, BinaryCommonExpression { }
package org.odata4j.expression; public interface BoolParenExpression extends BoolCommonExpression { CommonExpression getExpression(); }
package org.odata4j.expression; public interface BinaryBoolCommonExpression { BoolCommonExpression getLHS(); BoolCommonExpression getRHS(); }
package org.odata4j.expression; public interface MemberExpression extends CommonExpression { }
package org.odata4j.expression; public interface LengthMethodCallExpression extends MethodCallExpression { CommonExpression getTarget(); }
package org.odata4j.expression; public interface SubstringOfMethodCallExpression extends BoolMethodExpression { CommonExpression getValue(); CommonExpression getTarget(); // optional }
package org.odata4j.expression; public interface FloorMethodCallExpression extends MethodCallExpression { CommonExpression getTarget(); }
package org.odata4j.expression; public interface ExpressionVisitor { void beforeDescend(); void afterDescend(); void betweenDescend(); void visit(String type); void visit(OrderByExpression expr); void visit(AddExpression expr); void visit(AndExpression expr); void visit(Boolea...
package org.odata4j.expression; public interface EntitySimpleProperty extends MemberExpression { String getPropertyName(); }
package org.odata4j.expression; import org.odata4j.internal.InternalUtil; import org.odata4j.repack.org.apache.commons.codec.binary.Hex; public class PrintExpressionVisitor implements ExpressionVisitor { private final StringBuilder sb = new StringBuilder(); @Override public String toString() { ...
package org.odata4j.expression; public interface OrExpression extends BoolCommonExpression, BinaryBoolCommonExpression { }
package org.odata4j.expression; public interface SingleLiteral extends LiteralExpression { float getValue(); }
package org.odata4j.expression; import org.odata4j.internal.InternalUtil; import org.odata4j.repack.org.apache.commons.codec.binary.Hex; public class FilterExpressionVisitor implements ExpressionVisitor { // only literals supported, so this suffices for now private String fragment; private void push...
package org.odata4j.expression; public interface BooleanLiteral extends LiteralExpression, BoolCommonExpression { boolean getValue(); }
package org.odata4j.expression; import java.math.BigDecimal; import org.joda.time.DateTime; import org.joda.time.LocalDateTime; import org.joda.time.LocalTime; import org.odata4j.core.Guid; import org.odata4j.core.OProperties; import org.odata4j.core.OProperty; import org.odata4j.edm.EdmSimpleType; publi...
package org.odata4j.expression; public interface GeExpression extends BoolCommonExpression, BinaryCommonExpression { }
package org.odata4j.expression; public interface OrderByExpression extends CommonExpression { CommonExpression getExpression(); boolean isAscending(); }
package org.odata4j.expression; public interface BinaryLiteral extends LiteralExpression { byte[] getValue(); }
package org.odata4j.expression; public interface ModExpression extends CommonExpression, BinaryCommonExpression { }
package org.odata4j.expression; public interface SubExpression extends CommonExpression, BinaryCommonExpression { }
package org.odata4j.expression; public interface BinaryCommonExpression { CommonExpression getLHS(); CommonExpression getRHS(); }
package org.odata4j.expression; public interface TrimMethodCallExpression extends MethodCallExpression { CommonExpression getTarget(); }
package org.odata4j.expression; public interface AddExpression extends CommonExpression, BinaryCommonExpression { }
package org.odata4j.expression; public interface StartsWithMethodCallExpression extends BoolMethodExpression { CommonExpression getTarget(); CommonExpression getValue(); }
package org.odata4j.expression; public interface SubstringMethodCallExpression extends MethodCallExpression { CommonExpression getTarget(); CommonExpression getStart(); // optional CommonExpression getLength(); // optional }
package org.odata4j.expression; public interface IsofExpression extends BoolCommonExpression { CommonExpression getExpression(); // optional String getType(); }
package org.odata4j.expression; import org.joda.time.DateTime; public interface DateTimeOffsetLiteral extends LiteralExpression { DateTime getValue(); }
package org.odata4j.expression; public interface StringLiteral extends LiteralExpression { String getValue(); }
package org.odata4j.expression; public interface NegateExpression extends BoolCommonExpression { CommonExpression getExpression(); }
package org.odata4j.expression; public interface IntegralLiteral extends LiteralExpression { int getValue(); }
package org.odata4j.expression; import org.joda.time.LocalDateTime; public interface DateTimeLiteral extends LiteralExpression { LocalDateTime getValue(); }
package org.odata4j.internal; public class FeedCustomizationMapping { public String titlePropName; public String summaryPropName; }
package org.odata4j.internal; import java.io.Reader; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.util.Collection; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.core4j.Enumerable; import org.core4j.Func1; import org.c...
package org.odata4j.internal; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; public class PlatformUtil { private static boolean RUNNING_ON_ANDROID; static { try { Class.forName("android.app.Activity"); RUNNING_ON_ANDROID = true; } catch (Excepti...
package org.odata4j.internal; import java.io.FilterReader; import java.io.IOException; import java.io.Reader; import java.nio.CharBuffer; public class BOMWorkaroundReader extends FilterReader { private boolean first = true; public BOMWorkaroundReader(Reader arg0) { super(arg0); } @Overri...
package org.odata4j.internal; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.Writer; import java.lang.annotation.Annotation; import java.lang.reflect.Type; import javax.ws.rs.Consumes; im...
package org.odata4j.internal; import org.odata4j.core.OEntityKey; public class EntitySegment { public final String segment; public final OEntityKey key; public EntitySegment(String segment, OEntityKey key) { this.segment = segment; this.key = key; } @Override public String toString...
package org.odata4j.internal; import java.sql.Time; import java.sql.Timestamp; import java.util.Calendar; import java.util.Date; import org.joda.time.DateTimeZone; import org.joda.time.LocalDateTime; import org.joda.time.LocalTime; public class TypeConverter { @SuppressWarnings("unchecked") public...
package org.odata4j.internal; import java.util.List; import org.odata4j.edm.EdmAssociation; import org.odata4j.edm.EdmComplexType; import org.odata4j.edm.EdmDataServices; import org.odata4j.edm.EdmEntitySet; import org.odata4j.edm.EdmEntityType; import org.odata4j.edm.EdmFunctionImport; import org.odata4j.e...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
package org.odata4j.core; import java.math.BigDecimal; import java.util.Calendar; import java.util.Date; import org.joda.time.LocalDateTime; /** * A consumer-side function-request builder. Call {@link #execute()} or simply iterate to issue the request. * * @param <T> the entity representation as a java type */...
package org.odata4j.core; import org.odata4j.edm.EdmType; import org.odata4j.edm.EdmCollectionType; import org.odata4j.edm.EdmComplexType; import org.odata4j.edm.EdmSimpleType; import org.odata4j.expression.CommonExpression; import org.odata4j.expression.Expression; import org.odata4j.expression.ExpressionParser; impo...
package org.odata4j.core; import org.odata4j.consumer.behaviors.AllowSelfSignedCertsBehavior; import org.odata4j.consumer.behaviors.AzureTableBehavior; import org.odata4j.consumer.behaviors.BasicAuthenticationBehavior; import org.odata4j.consumer.behaviors.MethodTunnelingBehavior; /** * A static factory to c...
package org.odata4j.core; /** * The identity of a single OData entity, consisting of an entity-set name and a unique entity-key within that set. */ public interface OEntityId { /** * Gets the entity-set name for this instance. * * @return the entity-set name */ String getEntitySetName...
package org.odata4j.core; import java.util.List; /** * An <code>ORelatedEntitiesLinkInline</code> is an {@link ORelatedEntitiesLink} that also includes the referents inline. * <p>The {@link OLinks} static factory class can be used to create <code>ORelatedEntitiesLink</code> instances.</p> * @see OLinks */...
/** * Core odata4j concepts. */ package org.odata4j.core;
package org.odata4j.core; public interface EntitySetInfo { String getHref(); String getTitle(); }
package org.odata4j.core; import java.util.List; /** * An <code>OLink</code> represents a reference to one or more OData entities. * <p>Relationships to a single entity are represented as {@link ORelatedEntityLink}. * Relationships to multiple entities are represented as {@link ORelatedEntitiesLink}. </p...
package org.odata4j.core; /** * An <code>ORelatedEntityLinkInline</code> is an {@link ORelatedEntityLink} that also includes the referent inline. * <p>The {@link OLinks} static factory class can be used to create <code>ORelatedEntityLinkInline</code> instances.</p> * @see OLinks */ public interface ORelated...
package org.odata4j.core; /** * An <code>ORelatedEntityLink</code> represents a relationship to a single OData entity. * <p>The {@link OLinks} static factory class can be used to create <code>ORelatedEntityLink</code> instances.</p> * @see OLinks */ public interface ORelatedEntityLink extends OLink { }
package org.odata4j.core; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import org.odata4j.core.OCollection.Builder; import org.odata4j.edm.EdmType; public class OCollections { public static <T extends OObject> OCollection.Builder<T> newBuilder(EdmType type) { retu...
package org.odata4j.core; /** * A consumer-side create-request builder. Call {@link #execute()} to issue the request. * * @param <T> the entity representation as a java type */ public interface OCreateRequest<T> { /** * Set properties on the new entity. * * @param props the properties ...
package org.odata4j.core; /** * V1 or V2 */ public enum ODataVersion { // order of definition is important V1("1.0"), V2("2.0"); /** * 1.0 or 2.0 */ public final String asString; private ODataVersion(String asString) { this.asString = asString; } /** * Identify a...
package org.odata4j.core; import org.core4j.Func1; import org.odata4j.edm.EdmEntitySet; import org.odata4j.edm.EdmEntityType; import org.odata4j.edm.EdmProperty; import org.odata4j.edm.EdmType; /** * A static factory to create useful generic function instances. */ public class OFuncs { private OFunc...
package org.odata4j.core; /** * A consumer-side modification-request builder, used for operations such as MERGE and UPDATE. Call {@link #execute()} to issue the request. * * @param <T> the entity representation as a java type */ public interface OModifyRequest<T> { /** * Set properties on the ne...
package org.odata4j.core; import org.core4j.Predicate1; import org.odata4j.edm.EdmNavigationProperty; import org.odata4j.edm.EdmProperty; /** * A static factory to create useful generic predicate instances. */ public class OPredicates { private OPredicates() {} public static Predicate1<OEntity> e...
package org.odata4j.core; import java.util.List; /** * A static factory to create immutable {@link OLink} instances. */ public class OLinks { private OLinks() {} /** * Creates a new {@link OLink} where the link sub-type is unknown or undefined. * * Nobody calls this, seems safe to nuke...
package org.odata4j.core; import java.util.Collections; import java.util.List; import org.core4j.Enumerable; import org.odata4j.edm.EdmType; import org.odata4j.edm.EdmEntitySet; /** * A static factory to create immutable {@link OEntity} instances. */ public class OEntities { private OEntities() {}...
package org.odata4j.core; import org.odata4j.edm.EdmType; import org.odata4j.edm.EdmSimpleType; /** * A static factory to create immutable {@link OSimpleObject} instances. */ public class OSimpleObjects { private OSimpleObjects() {} public static <V> OSimpleObject<V> create(V value, EdmSimpleType type) { ...
package org.odata4j.core; import java.util.List; import org.odata4j.edm.EdmComplexType; /** * An instance of an {@link EdmComplexType}. * * Design Note: * - is there enough similarity with OEntity to factor out a base class? * not sure we need to treat those two polymormphically... */ public interface OCompl...
package org.odata4j.core; import org.odata4j.edm.EdmType; /** * A homogeneous collection of OData objects of a given {@link EdmType}. * T is the type of instances in the collection. */ public interface OCollection<T extends OObject> extends OObject, Iterable<T> { public interface Builder<T extends OOb...
package org.odata4j.core; import org.odata4j.edm.EdmType; /** * An immutable service operation parameter, consisting of a name, a strongly-typed value, and an edm-type. * * @param <T> the java-type of the property * <p>The {@link OFunctionParameters} static factory class can be used to create <code>OFunctionPara...
package org.odata4j.core; import java.util.Comparator; /** * A static factory to create useful {@link Comparator} instances. */ public class OComparators { private OComparators() {} @SuppressWarnings("rawtypes") public static Comparator<NamedValue> namedValueByNameRaw() { return new Compara...
package org.odata4j.core; import java.util.HashSet; import java.util.Map; import java.util.Set; /** * A static factory to create immutable {@link NamedValue} instances. */ public class NamedValues { private NamedValues() {} /** * Create an named-value from a name and a value. * * @par...
package org.odata4j.core; /** * A consumer-side entity-request builder, used for operations on a single entity such as DELETE. Call {@link #execute()} to issue the request. * * @param <T> the java-type of the operation response */ public interface OEntityRequest<T> { /** * Sends the entity-reques...
package org.odata4j.core; import org.core4j.Enumerable; /** * A consumer-side query-request builder. Call {@link #execute()} or simply iterate to issue the request. * * @param <T> the entity representation as a java type */ public interface OQueryRequest<T> extends Iterable<T> { /** * Sends t...
package org.odata4j.core; /** * Additional Atom information. */ public interface AtomInfo { /** * Gets the Atom title. * * @return the Atom title */ String getTitle(); /** * Gets the Atom category term. * * @return the Atom category term */ String getCategoryTer...
package org.odata4j.core; import org.odata4j.consumer.ODataClientRequest; import com.sun.jersey.api.client.config.ClientConfig; import com.sun.jersey.api.client.filter.Filterable; /** * Extension-point for modifying client http requests. * <p>The {@link OClientBehaviors} static factory class can be used t...
package org.odata4j.core; import java.util.ArrayList; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import java.util.SortedSet; import java.util.TreeSet; import org.core4j.Enumerable; import org.core4j.Func1; import org.odata4j.e...
package org.odata4j.core; import java.util.List; import org.odata4j.edm.EdmEntitySet; /** * An immutable OData entity instance, consisting of an identity (an entity-set and a unique entity-key within that set), * properties (typed, named values), and links (references to other entities). * <p>The {@link...
package org.odata4j.core; /** * Useful constants. */ public class ODataConstants { private ODataConstants() {} public static final String APPLICATION_ATOM_XML = "application/atom+xml"; public static final String APPLICATION_ATOM_XML_CHARSET_UTF8 = APPLICATION_ATOM_XML + ";charset=utf-8"; public ...
package org.odata4j.core; import java.util.Collections; import java.util.List; import org.core4j.Enumerable; import org.odata4j.edm.EdmComplexType; /** * A static factory to create immutable {@link OComplexObject} instances. */ public class OComplexObjects { private OComplexObjects() {} public static OComplex...
package org.odata4j.core; /** * A strongly-typed named value. * <p>No behavior or semantics are implied, this is simply a convenient reusable interface.</p> * <p>The {@link NamedValues} static factory class can be used to create <code>NamedValue</code> instances.</p> * * @param <T> the value's java-typ...
package org.odata4j.core; import java.util.UUID; /** * A custom Guid class is necessary to interop with .net Guid strings incompatible with {@link UUID}. * <p>Guids are equal if their string representations are equal.</p> */ public class Guid { private final String value; private Guid(String valu...
package org.odata4j.core; import java.math.BigDecimal; import java.math.BigInteger; import java.util.Calendar; import java.util.Date; import java.util.List; import org.joda.time.LocalDateTime; import org.joda.time.LocalTime; import org.odata4j.edm.EdmType; import org.odata4j.edm.EdmSimpleType; import org....
package org.odata4j.core; import org.odata4j.edm.EdmSimpleType; /** * An instance of an {@link EdmSimpleType}. * * V is the Java class used to represent the simple type (@see OProperties) */ public interface OSimpleObject<V> extends OObject { V getValue(); }