private void putType(ObjectNode node, final String name, final EdmType type) { if (type != null) { node.put(name, type.getFullQualifiedName().getFullQualifiedNameAsString()); } }
private void appendType(JsonGenerator json, final String name, final EdmType type) throws IOException { if (type != null) { json.writeStringField(name, type.getFullQualifiedName().getFullQualifiedNameAsString()); } }
@Override public String toString() { return type == null ? "NULL" : type.getFullQualifiedName().getFullQualifiedNameAsString(); } }
/** * Set the edm entity type. * @param type the edm entity type * @return Builder */ public Builder type(final EdmType type) { contextURL.entitySetOrSingletonOrType = type.getFullQualifiedName().toString(); return this; }
/** * Set the edm entity type. * @param type the edm entity type * @return Builder */ public Builder type(final EdmType type) { contextURL.entitySetOrSingletonOrType = type.getFullQualifiedName().toString(); return this; }
@Override public String getSegmentValue() { return type.getFullQualifiedName().getFullQualifiedNameAsString(); } }
@Override public String toString() { return type == null ? "NULL" : type.getFullQualifiedName().getFullQualifiedNameAsString(); } }
private void appendType(JsonGenerator json, final String name, final EdmType type) throws IOException { if (type != null) { json.writeStringField(name, type.getFullQualifiedName().getFullQualifiedNameAsString()); } }
@Override public String getSegmentValue() { return type.getFullQualifiedName().getFullQualifiedNameAsString(); } }
private String getType(final UriResource segment) { final EdmType type = segment instanceof UriResourcePartTyped ? ((UriResourcePartTyped) segment).getType() : null; return type == null ? UNKNOWN_NAME : type.getFullQualifiedName().getFullQualifiedNameAsString(); } }
private String getType(final UriResource segment) { final EdmType type = segment instanceof UriResourcePartTyped ? ((UriResourcePartTyped) segment).getType() : null; return type == null ? UNKNOWN_NAME : type.getFullQualifiedName().getFullQualifiedNameAsString(); } }
private void checkType(final Expression expression, final EdmPrimitiveTypeKind... kinds) throws UriParserException { final EdmType type = getType(expression); if (!isType(type, kinds)) { throw new UriParserSemanticException("Incompatible types.", UriParserSemanticException.MessageKeys.TYPES_NOT_COMPATIBLE, type == null ? "" : type.getFullQualifiedName().getFullQualifiedNameAsString(), Arrays.deepToString(kinds)); } }
private void checkStructuredTypeFilter(final EdmType type, final EdmType filterType) throws UriParserException { if (!(filterType instanceof EdmStructuredType && ((EdmStructuredType) filterType).compatibleTo(type))) { throw new UriParserSemanticException("Incompatible type filter.", UriParserSemanticException.MessageKeys.INCOMPATIBLE_TYPE_FILTER, filterType.getFullQualifiedName().getFullQualifiedNameAsString()); } } }
private void checkType(final Expression expression, final EdmPrimitiveTypeKind... kinds) throws UriParserException { final EdmType type = getType(expression); if (!isType(type, kinds)) { throw new UriParserSemanticException("Incompatible types.", UriParserSemanticException.MessageKeys.TYPES_NOT_COMPATIBLE, type == null ? "" : type.getFullQualifiedName().getFullQualifiedNameAsString(), Arrays.deepToString(kinds)); } }
@Override public String getSegmentValue(final boolean includeFilters) { return includeFilters && typeFilter != null ? getSegmentValue() + "/" + typeFilter.getFullQualifiedName().getFullQualifiedNameAsString() : getSegmentValue(); }
private void checkStructuredTypeFilter(final EdmType type, final EdmType filterType) throws UriParserException { if (!(filterType instanceof EdmStructuredType && ((EdmStructuredType) filterType).compatibleTo(type))) { throw new UriParserSemanticException("Incompatible type filter.", UriParserSemanticException.MessageKeys.INCOMPATIBLE_TYPE_FILTER, filterType.getFullQualifiedName().getFullQualifiedNameAsString()); } } }
@Override public String getSegmentValue(final boolean includeFilters) { return includeFilters && typeFilter != null ? getSegmentValue() + "/" + typeFilter.getFullQualifiedName().getFullQualifiedNameAsString() : getSegmentValue(); }
public static String getUUIDkeyPropertyName(EdmEntitySet entSet) { EdmEntityType entType=entSet.getEntityType(); for(EdmKeyPropertyRef refs:entType.getKeyPropertyRefs()) { if(refs.getProperty().getType().getFullQualifiedName().getName().equalsIgnoreCase("Guid")) { return refs.getName(); } } return null; }
@Override public Object getResult() { if (this.procedureReturn.hasResultSet()) { String type = this.procedureReturn.getReturnType().getType().getFullQualifiedName().getFullQualifiedNameAsString(); return createComplexCollection("result", type, this.complexValues); } return this.returnValue; }
protected ClientProperty getODataProperty(final EdmType type, final Property resource) { final EdmTypeInfo typeInfo = buildTypeInfo(type == null ? null : type.getFullQualifiedName(), resource.getType()); final ClientProperty property = new ClientPropertyImpl(resource.getName(), getODataValue(typeInfo == null ? null : typeInfo.getFullQualifiedName(), resource, null, null)); odataAnnotations(resource, property); return property; }