public FreeTextStaticProperty(FreeTextStaticProperty other) { super(other); this.requiredDomainProperty = other.getRequiredDomainProperty(); this.requiredDatatype = other.getRequiredDatatype(); if (other.getValueSpecification() != null) this.valueSpecification = new PropertyValueSpecification(other.getValueSpecification()); this.value = other.getValue(); this.htmlAllowed = other.isHtmlAllowed(); this.multiLine = other.isMultiLine(); this.placeholdersSupported = other.isPlaceholdersSupported(); this.mapsTo = other.getMapsTo(); }
public SupportedProperty(SupportedProperty other) { super(); this.propertyId = other.getPropertyId(); this.valueRequired = other.isValueRequired(); this.value = other.getValue(); }
public MatchingStaticProperty(MatchingStaticProperty other) { super(other); this.matchLeft = other.getMatchLeft(); this.matchRight = other.getMatchRight(); }
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); } }
private EventProperty modifyEventProperty(EventProperty eventProperty, StaticProperty staticProperty, TransformOperationType transformOperationType) { if (staticProperty instanceof SelectionStaticProperty) { return modifyEventProperty(eventProperty, transformOperationType, findSelected(((SelectionStaticProperty) staticProperty).getOptions()).getInternalName()); } else if (staticProperty instanceof FreeTextStaticProperty) { return modifyEventProperty(eventProperty, transformOperationType, ((FreeTextStaticProperty) staticProperty) .getValue ()); } return eventProperty; }
@Override public FormatDescription declareModel() { FormatDescription fd = new FormatDescription(ID, "Csv", "This is the description" + "for csv format"); FreeTextStaticProperty delimiterProperty = new FreeTextStaticProperty("delimiter", "Delimiter", "The delimiter for json. Mostly either , or ;"); AnyStaticProperty offset = new AnyStaticProperty("header", "Header", "Does the CSV file include a header or not"); offset.setOptions(Arrays.asList(new Option("Header","Header"))); // FreeTextStaticProperty offset = new FreeTextStaticProperty("header", // "Includes Header", "Description"); fd.addConfig(delimiterProperty); fd.addConfig(offset); return fd; }
public StaticProperty(StaticProperty other) { super(other); this.description = other.getDescription(); this.internalName = other.getInternalName(); this.valueRequired = other.isValueRequired(); this.staticPropertyType = other.getStaticPropertyType(); this.label = other.getLabel(); this.predefined = other.isPredefined(); }
public Option(Option o) { super(o); this.name = o.getName(); this.selected = o.isSelected(); this.internalName = o.getInternalName(); }
public MappingProperty(MappingProperty other) { super(other); this.mapsFrom = other.getMapsFrom(); this.propertyScope = other.getPropertyScope(); if (other.getMapsFromOptions() != null) { this.mapsFromOptions = new Cloner().properties(other.getMapsFromOptions()); } }
public static FreeTextStaticProperty freeTextProperty(String internalName, String label, String description, URI datatype) { FreeTextStaticProperty fsp = new FreeTextStaticProperty(internalName, label, description); fsp.setRequiredDatatype(datatype); return fsp; }
public FileStaticProperty(FileStaticProperty other) { super(other); this.endpointUrl = other.getEndpointUrl(); this.locationPath = other.getLocationPath(); }
public PropertyValueSpecification(PropertyValueSpecification other) { super(); this.minValue = other.getMinValue(); this.maxValue = other.getMaxValue(); this.step = other.getStep(); }
@Override public ProtocolDescription declareModel() { ProtocolDescription pd = new ProtocolDescription(ID,"File","This is the " + "description for the File protocol"); FreeTextStaticProperty urlProperty = new FreeTextStaticProperty("fileUri", "fileUri", "This property defines the URL for the http request."); pd.setSourceType("SET"); pd.setIconUrl("file.png"); pd.addConfig(urlProperty); return pd; }
public static SupportedProperty from(String uri, boolean valueRequired) { return new SupportedProperty(uri, valueRequired); } }
public MappingPropertyUnary(MappingPropertyUnary other) { super(other); this.mapsTo = other.getMapsTo(); }
public RuntimeResolvableSelectionStaticProperty(RuntimeResolvableSelectionStaticProperty other) { super(other); if (other.getLinkedMappingPropertyId() != null) { this.linkedMappingPropertyId = other.getLinkedMappingPropertyId(); } }
public MappingPropertyNary(MappingPropertyNary other) { super(other); this.mapsTo = other.getMapsTo(); }
private EventProperty modifyEventProperty(EventProperty eventProperty, StaticProperty staticProperty, TransformOperationType transformOperationType) { if (staticProperty instanceof SelectionStaticProperty) { return modifyEventProperty(eventProperty, transformOperationType, findSelected(((SelectionStaticProperty) staticProperty).getOptions()).getInternalName()); } else if (staticProperty instanceof FreeTextStaticProperty) { return modifyEventProperty(eventProperty, transformOperationType, ((FreeTextStaticProperty) staticProperty) .getValue ()); } return eventProperty; }
@Override public FormatDescription declareModel() { FormatDescription fd = new FormatDescription(ID, "Csv", "This is the description" + "for csv format"); FreeTextStaticProperty delimiterProperty = new FreeTextStaticProperty("delimiter", "Delimiter", "The delimiter for json. Mostly either , or ;"); fd.setAppId(ID); AnyStaticProperty offset = new AnyStaticProperty("header", "Header", "Does the CSV file include a header or not"); offset.setOptions(Arrays.asList(new Option("Header","Header"))); // // FreeTextStaticProperty offset = new FreeTextStaticProperty("header", // "Includes Header", "Description"); fd.addConfig(delimiterProperty); fd.addConfig(offset); return fd; }
public static SupportedProperty supportedDomainProperty(String rdfPropertyUri, boolean required) { return new SupportedProperty(rdfPropertyUri, required); } }