/** * @deprecated Use {@link #naryMappingPropertyWithoutRequirement(Label, PropertyScope)} instead. * @param internalName * @param label * @param description * @return */ public BU naryMappingPropertyWithoutRequirement(String internalName, String label, String description) { this.staticProperties.add(new MappingPropertyNary(internalName, label, description)); return me(); }
/** * * @deprecated Use {@link #requiredStream(CollectedStreamRequirements)} instead */ @Deprecated public BU requiredPropertyStream1WithNaryMapping(EventProperty propertyRequirement, String internalName, String label, String description) { this.stream1Properties.add(propertyRequirement); this.staticProperties.add(new MappingPropertyNary(URI.create(propertyRequirement.getElementId()), internalName, label, description)); return me(); }
/** * * @deprecated Use {@link #requiredStream(CollectedStreamRequirements)} instead */ @Deprecated public BU requiredPropertyStream2WithNaryMapping(EventProperty propertyRequirement, String internalName, String label, String description) { this.stream2Properties.add(propertyRequirement); this.staticProperties.add(new MappingPropertyNary(URI.create(propertyRequirement.getElementId()), internalName, label, description)); return me(); }
/** * * @deprecated Use {@link #requiredStream(CollectedStreamRequirements)} instead */ @Deprecated public BU requiredPropertyStream1WithNaryMapping(EventProperty propertyRequirement, Label label, PropertyScope propertyScope) { this.stream1Properties.add(propertyRequirement); MappingPropertyNary mp = new MappingPropertyNary(URI.create(propertyRequirement.getElementId()), label .getInternalId(), label.getLabel(), label.getDescription()); mp.setPropertyScope(propertyScope.name()); this.staticProperties.add(mp); return me(); }
/** * Sets a new property requirement and, in addition, adds a * {@link org.streampipes.model.staticproperty.MappingPropertyNary} static property to the pipeline element * definition. * @param propertyRequirement The property requirement. Use {@link org.streampipes.sdk.helpers.EpRequirements} to * create a new requirement. * @param label The {@link org.streampipes.sdk.helpers.Label} that defines the mapping property. * @param propertyScope The {@link org.streampipes.model.schema.PropertyScope} of the requirement. * @return this */ public StreamRequirementsBuilder requiredPropertyWithNaryMapping(EventProperty propertyRequirement, Label label, PropertyScope propertyScope) { this.eventProperties.add(propertyRequirement); MappingPropertyNary mp = new MappingPropertyNary(URI.create(propertyRequirement.getElementId()), label .getInternalId(), label.getLabel(), label.getDescription()); mp.setPropertyScope(propertyScope.name()); this.mappingProperties.add(mp); return this; }
/** * Adds a new {@link org.streampipes.model.staticproperty.MappingPropertyNary} to the pipeline element definition * which is not linked to a specific input property. * Use this method if you want to present users a selection (in form of a Checkbox Group) of all available input * event properties. * @param label A human-readable label that is displayed to users in the StreamPipes UI. * @param propertyScope Only input event properties that match the * {@link org.streampipes.model.schema.PropertyScope} are displayed. * @return */ public BU naryMappingPropertyWithoutRequirement(Label label, PropertyScope propertyScope) { MappingPropertyNary mp = new MappingPropertyNary(label.getInternalId(), label.getLabel(), label.getDescription()); mp.setPropertyScope(propertyScope.name()); this.staticProperties.add(mp); return me(); }
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); } }