public static EventPropertyList listRequirement() { return new EventPropertyList(); }
/** * Creates a new list-based event property of the parameter type eventProperty * @param label A human-readable label of the property * @param runtimeName The field identifier of the event property at runtime. * @param eventProperty The complex type of data in the list * @return {@link org.streampipes.model.schema.EventPropertyList} */ public static EventPropertyList listEp(Label label, String runtimeName, EventProperty eventProperty) { return getPreparedProperty(label, new EventPropertyList(runtimeName, eventProperty)); }
public static EventPropertyList listRequirement(Datatypes datatype) { return new EventPropertyList("", datatypeReq(datatype)); }
public EventProperty property(EventProperty o) { if (o instanceof EventPropertyPrimitive) { return new EventPropertyPrimitive((EventPropertyPrimitive) o); } else if (o instanceof EventPropertyList) { return new EventPropertyList((EventPropertyList) o); } else { return new EventPropertyNested((EventPropertyNested) o); } }
/** * Creates a new list-based event property of the parameter type eventProperty * @param label A human-readable label of the property * @param runtimeName The field identifier of the event property at runtime. * @param eventProperty The complex type of data in the list * @return {@link org.streampipes.model.schema.EventPropertyList} */ public static EventPropertyList listEp(Label label, String runtimeName, EventProperty eventProperty, String domainProperty) { return getPreparedProperty(label, new EventPropertyList(runtimeName, eventProperty, Utils.createURI (domainProperty))); }
public EventPropertyList listNestedEp(Label label, String runtimeName, EventProperty... nestedProperties) { EventPropertyList list = getPreparedProperty(label, new EventPropertyList()); list.setRuntimeName(runtimeName); EventPropertyNested nested = new EventPropertyNested(); nested.setEventProperties(Arrays.asList(nestedProperties)); list.setEventProperties(Collections.singletonList(nested)); return list; }
resultProperty = new EventPropertyList(); resultProperty.setRuntimeName(key);
resultProperty = new EventPropertyList(); resultProperty.setRuntimeName(key);
public static EventPropertyList listEp(Label label, String runtimeName, Datatypes runtimeType, String domainProperty) { return getPreparedProperty(label, new EventPropertyList(runtimeName, ep(Labels.empty(), runtimeType .toString(), runtimeName, domainProperty))); }
private EventSchema makeList(List<EventProperty> schemaProperties) { EventPropertyList list = new EventPropertyList(); list.setEventProperties(schemaProperties); list.setRuntimeName(propertyName); list.setRdfId(new SupportsRdfId.URIKey(URI.create(schemaProperties.get(0).getRdfId()+"-list"))); EventSchema schema = new EventSchema(); schema.setEventProperties(Utils.createList(list)); return schema; }
private EventSchema makeList(List<EventProperty> schemaProperties) { EventPropertyList list = new EventPropertyList(); list.setEventProperties(schemaProperties); list.setRuntimeName(propertyName); list.setRdfId(new SupportsRdfId.URIKey(URI.create(schemaProperties.get(0).getRdfId()+"-list"))); EventSchema schema = new EventSchema(); schema.setEventProperties(Utils.createList(list)); return schema; }