public RemoteOneOfStaticProperty(RemoteOneOfStaticProperty other) { super(other); this.remoteUrl = other.getRemoteUrl(); this.valueFieldName = other.getValueFieldName(); this.labelFieldName = other.getLabelFieldName(); this.descriptionFieldName = other.getDescriptionFieldName(); this.options = new Cloner().options(other.getOptions()); }
String label = property.getLabelFieldName(); String description = property.getDescriptionFieldName(); String value = property.getValueFieldName(); String url = property.getRemoteUrl() + "streampipes/models?username=" + username + "&analyticsOperation=" + operation; Response res = Request.Get(url).useExpectContinue().addHeader("Content-Type", "application/json") .version(HttpVersion.HTTP_1_1) property.setOptions(options); } catch (JSONException e) { e.printStackTrace(); throw new RemoteServerNotAccessibleException(e.toString(), property.getRemoteUrl());
public StaticProperty staticProperty(StaticProperty o) { if (o instanceof FreeTextStaticProperty) { return new FreeTextStaticProperty((FreeTextStaticProperty) o); } else if (o instanceof OneOfStaticProperty) { return new OneOfStaticProperty((OneOfStaticProperty) o); } else if (o instanceof RemoteOneOfStaticProperty) { return new RemoteOneOfStaticProperty((RemoteOneOfStaticProperty) o); } else if (o instanceof MappingPropertyNary) { return new MappingPropertyNary((MappingPropertyNary) o); } else if (o instanceof DomainStaticProperty) { return new DomainStaticProperty((DomainStaticProperty) o); } else if (o instanceof AnyStaticProperty) { return new AnyStaticProperty((AnyStaticProperty) o); } else if (o instanceof CollectionStaticProperty) { return new CollectionStaticProperty((CollectionStaticProperty) o); } else if (o instanceof MatchingStaticProperty) { return new MatchingStaticProperty((MatchingStaticProperty) o); } else if (o instanceof RuntimeResolvableOneOfStaticProperty) { return new RuntimeResolvableOneOfStaticProperty((RuntimeResolvableOneOfStaticProperty) o); } else if (o instanceof RuntimeResolvableAnyStaticProperty) { return new RuntimeResolvableAnyStaticProperty((RuntimeResolvableAnyStaticProperty) o); } else { return new MappingPropertyUnary((MappingPropertyUnary) o); } }
String label = property.getLabelFieldName(); String description = property.getDescriptionFieldName(); String value = property.getValueFieldName(); String url = property.getRemoteUrl() + "streampipes/models?username=" + username + "&analyticsOperation=" + operation; Response res = Request.Get(url).useExpectContinue().addHeader("Content-Type", "application/json") .version(HttpVersion.HTTP_1_1) property.setOptions(options); } catch (JSONException e) { e.printStackTrace(); throw new RemoteServerNotAccessibleException(e.toString(), property.getRemoteUrl());