/** * Gets type. * * @return the type */ public String getType() { return type.getFullQualifiedNameAsString(); }
/** * Gets extends container. * * @return the extends container */ public String getExtendsContainer() { if (extendsContainer != null) { return extendsContainer.getFullQualifiedNameAsString(); } return null; }
/** * Sets type. * * @param fqnName the fqn name * @return the type */ public CsdlProperty setType(final FullQualifiedName fqnName) { type = fqnName.getFullQualifiedNameAsString(); return this; }
/** * Returns the full qualified name of the action as string * @return full qualified name */ public String getAction() { return action.getFullQualifiedNameAsString(); }
/** * Gets underlying type. * * @return the underlying type */ public String getUnderlyingType() { if (underlyingType != null) { return underlyingType.getFullQualifiedNameAsString(); } return null; }
@Override public String toString() { if (entityContainer == null) { return targetName; } return entityContainer.getFullQualifiedNameAsString() + "/" + targetName; }
/** * Sets type. * * @param fqnName the fqn name * @return the type */ public CsdlProperty setType(final FullQualifiedName fqnName) { type = fqnName.getFullQualifiedNameAsString(); return this; }
/** * Sets type. * * @param type the type * @return the type */ public CsdlReturnType setType(final FullQualifiedName type) { this.type = type.getFullQualifiedNameAsString(); return this; }
@Override public String toString() { if (entityContainer == null) { return targetName; } return entityContainer.getFullQualifiedNameAsString() + "/" + targetName; }
@Override public String toString() { return getFullQualifiedName().getFullQualifiedNameAsString(); } }
private void putType(ObjectNode node, final String name, final EdmType type) { if (type != null) { node.put(name, type.getFullQualifiedName().getFullQualifiedNameAsString()); } }
/** * Set the derived edm entity type. * @param derivedType the derived edm entity type * @return Builder */ public Builder derived(final EdmEntityType derivedType) { contextURL.derivedEntity = derivedType.getFullQualifiedName().getFullQualifiedNameAsString(); return this; }
@Override public String getSegmentValue() { return type.getFullQualifiedName().getFullQualifiedNameAsString(); } }
@Override public String toString() { return type == null ? "NULL" : type.getFullQualifiedName().getFullQualifiedNameAsString(); } }
@Override public String toString() { return type == null ? "NULL" : type.getFullQualifiedName().getFullQualifiedNameAsString() + getValues(); } }
private String getAliasedFullQualifiedName(final FullQualifiedName fqn, final boolean isCollection) { final String name; if (namespaceToAlias.get(fqn.getNamespace()) != null) { name = namespaceToAlias.get(fqn.getNamespace()) + "." + fqn.getName(); } else { name = fqn.getFullQualifiedNameAsString(); } return isCollection ? "Collection(" + name + ")" : name; }
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 CsdlAnnotations getAnnotationsGroup(FullQualifiedName targetName, String qualifier) throws ODataException { CsdlSchema schema = getSchema(targetName.getNamespace()); if (schema != null) { return schema.getAnnotationGroup(targetName.getFullQualifiedNameAsString(), qualifier); } return null; } }
@Override public String getSegmentValue(final boolean includeFilters) { return includeFilters && typeFilter != null ? getSegmentValue() + "/" + typeFilter.getFullQualifiedName().getFullQualifiedNameAsString() : getSegmentValue(); }
@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; }