operation.setTarget(URIUtils.getURI(base, op.getTarget())); operation.setTitle(op.getTitle()); operation.setMetadataAnchor(op.getMetadataAnchor());
operation.setTarget(URIUtils.getURI(base, op.getTarget())); operation.setTitle(op.getTitle()); operation.setMetadataAnchor(op.getMetadataAnchor());
boundOp.setMetadataAnchor(action.getFullQualifiedName().toString()); boundOp.setTitle(boundOp.getMetadataAnchor()); boundOp.setTarget(URI.create(entityURI.toASCIIString() + "/" + (useOperationFQN ? action.getFullQualifiedName().toString() : operation.name()))); boundOp.setMetadataAnchor(func.getFullQualifiedName().toString()); boundOp.setTitle(boundOp.getMetadataAnchor()); boundOp.setTarget(URI.create(entityURI.toASCIIString() + "/" + (useOperationFQN ? func.getFullQualifiedName().toString() : operation.name())));
boundOp.setMetadataAnchor(action.getFullQualifiedName().toString()); boundOp.setTitle(boundOp.getMetadataAnchor()); boundOp.setTarget(URI.create(entityURI.toASCIIString() + "/" + (useOperationFQN ? action.getFullQualifiedName().toString() : operation.name()))); boundOp.setMetadataAnchor(func.getFullQualifiedName().toString()); boundOp.setTitle(boundOp.getMetadataAnchor()); boundOp.setTarget(URI.create(entityURI.toASCIIString() + "/" + (useOperationFQN ? func.getFullQualifiedName().toString() : operation.name())));
@Override public ClientProperty getODataProperty(final ResWrap<Property> resource) { final Property payload = resource.getPayload(); final EdmTypeInfo typeInfo = buildTypeInfo(ContextURLParser.parse(resource.getContextURL()), resource.getMetadataETag(), payload.getName(), payload.getType()); final ClientProperty property = new ClientPropertyImpl(payload.getName(), getODataValue(typeInfo == null ? null : typeInfo.getFullQualifiedName(), payload, resource.getContextURL(), resource.getMetadataETag())); odataAnnotations(payload, property); for (Operation op : resource.getPayload().getOperations()) { ClientOperation operation = new ClientOperation(); operation.setTarget(op.getTarget()); operation.setTitle(op.getTitle()); operation.setMetadataAnchor(op.getMetadataAnchor()); property.getOperations().add(operation); } return property; }
@Override public ClientProperty getODataProperty(final ResWrap<Property> resource) { final Property payload = resource.getPayload(); final EdmTypeInfo typeInfo = buildTypeInfo(ContextURLParser.parse(resource.getContextURL()), resource.getMetadataETag(), payload.getName(), payload.getType()); final ClientProperty property = new ClientPropertyImpl(payload.getName(), getODataValue(typeInfo == null ? null : typeInfo.getFullQualifiedName(), payload, resource.getContextURL(), resource.getMetadataETag())); odataAnnotations(payload, property); for (Operation op : resource.getPayload().getOperations()) { ClientOperation operation = new ClientOperation(); operation.setTarget(op.getTarget()); operation.setTitle(op.getTitle()); operation.setMetadataAnchor(op.getMetadataAnchor()); property.getOperations().add(operation); } return property; }
operation.setTarget(URIUtils.getURI(base, op.getTarget())); operation.setTitle(op.getTitle()); operation.setMetadataAnchor(op.getMetadataAnchor());
operation.setTarget(URIUtils.getURI(base, op.getTarget())); operation.setTitle(op.getTitle()); operation.setMetadataAnchor(op.getMetadataAnchor());