private EdmType getPreviousTypeFilter(final UriResourcePartTyped previousTyped) { if (previousTyped instanceof UriResourceWithKeysImpl) { return ((UriResourceWithKeysImpl) previousTyped).getTypeFilterOnEntry() == null ? ((UriResourceWithKeysImpl) previousTyped).getTypeFilterOnCollection() : ((UriResourceWithKeysImpl) previousTyped).getTypeFilterOnEntry(); } else { return ((UriResourceTypedImpl) previousTyped).getTypeFilter(); } }
private EdmType getPreviousTypeFilter(final UriResourcePartTyped previousTyped) { if (previousTyped instanceof UriResourceWithKeysImpl) { return ((UriResourceWithKeysImpl) previousTyped).getTypeFilterOnEntry() == null ? ((UriResourceWithKeysImpl) previousTyped).getTypeFilterOnCollection() : ((UriResourceWithKeysImpl) previousTyped).getTypeFilterOnEntry(); } else { return ((UriResourceTypedImpl) previousTyped).getTypeFilter(); } }
protected static EdmType getTypeInformation(final UriResourcePartTyped resourcePart) { EdmType type = null; if (resourcePart instanceof UriResourceWithKeysImpl) { final UriResourceWithKeysImpl lastPartWithKeys = (UriResourceWithKeysImpl) resourcePart; if (lastPartWithKeys.getTypeFilterOnEntry() != null) { type = lastPartWithKeys.getTypeFilterOnEntry(); } else if (lastPartWithKeys.getTypeFilterOnCollection() != null) { type = lastPartWithKeys.getTypeFilterOnCollection(); } else { type = lastPartWithKeys.getType(); } } else if (resourcePart instanceof UriResourceTypedImpl) { final UriResourceTypedImpl lastPartTyped = (UriResourceTypedImpl) resourcePart; type = lastPartTyped.getTypeFilter() == null ? lastPartTyped.getType() : lastPartTyped.getTypeFilter(); } else { type = resourcePart.getType(); } return type; }
@Override public EdmType getType() { UriInfoImpl uriInfo = (UriInfoImpl) path; UriResourceImpl lastResourcePart = (UriResourceImpl) uriInfo.getLastResourcePart(); if (lastResourcePart instanceof UriResourceWithKeysImpl) { UriResourceWithKeysImpl lastKeyPred = (UriResourceWithKeysImpl) lastResourcePart; if (lastKeyPred.getTypeFilterOnEntry() != null) { return lastKeyPred.getTypeFilterOnEntry(); } else if (lastKeyPred.getTypeFilterOnCollection() != null) { return lastKeyPred.getTypeFilterOnCollection(); } return lastKeyPred.getType(); } else if (lastResourcePart instanceof UriResourceTypedImpl) { UriResourceTypedImpl lastTyped = (UriResourceTypedImpl) lastResourcePart; EdmType type = lastTyped.getTypeFilter(); if (type != null) { return type; } return lastTyped.getType(); } else if (lastResourcePart instanceof UriResourceActionImpl) { return ((UriResourceActionImpl) lastResourcePart).getType(); } else { return null; } }
protected static EdmType getTypeInformation(final UriResourcePartTyped resourcePart) { EdmType type = null; if (resourcePart instanceof UriResourceWithKeysImpl) { final UriResourceWithKeysImpl lastPartWithKeys = (UriResourceWithKeysImpl) resourcePart; if (lastPartWithKeys.getTypeFilterOnEntry() != null) { type = lastPartWithKeys.getTypeFilterOnEntry(); } else if (lastPartWithKeys.getTypeFilterOnCollection() != null) { type = lastPartWithKeys.getTypeFilterOnCollection(); } else { type = lastPartWithKeys.getType(); } } else if (resourcePart instanceof UriResourceTypedImpl) { final UriResourceTypedImpl lastPartTyped = (UriResourceTypedImpl) resourcePart; type = lastPartTyped.getTypeFilter() == null ? lastPartTyped.getType() : lastPartTyped.getTypeFilter(); } else { type = resourcePart.getType(); } return type; }
@Override public EdmType getType() { UriInfoImpl uriInfo = (UriInfoImpl) path; UriResourceImpl lastResourcePart = (UriResourceImpl) uriInfo.getLastResourcePart(); if (lastResourcePart instanceof UriResourceWithKeysImpl) { UriResourceWithKeysImpl lastKeyPred = (UriResourceWithKeysImpl) lastResourcePart; if (lastKeyPred.getTypeFilterOnEntry() != null) { return lastKeyPred.getTypeFilterOnEntry(); } else if (lastKeyPred.getTypeFilterOnCollection() != null) { return lastKeyPred.getTypeFilterOnCollection(); } return lastKeyPred.getType(); } else if (lastResourcePart instanceof UriResourceTypedImpl) { UriResourceTypedImpl lastTyped = (UriResourceTypedImpl) lastResourcePart; EdmType type = lastTyped.getTypeFilter(); if (type != null) { return type; } return lastTyped.getType(); } else if (lastResourcePart instanceof UriResourceActionImpl) { return ((UriResourceActionImpl) lastResourcePart).getType(); } else { return null; } }
previousTypeFilter = ((UriResourceWithKeysImpl) previousTyped).getTypeFilterOnEntry(); if (previousTypeFilter != null) { throw new UriParserSemanticException("Type filters are not chainable.",
previousTypeFilter = ((UriResourceWithKeysImpl) previousTyped).getTypeFilterOnEntry(); if (previousTypeFilter != null) { throw new UriParserSemanticException("Type filters are not chainable.",