public String singleValue(String internalName) { return (((FreeTextStaticProperty) getStaticPropertyByName(internalName)) .getValue()); }
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 String singleValue(String internalName) { return (((FreeTextStaticProperty) getStaticPropertyByName(internalName)) .getValue()); }
public RosBridgeAdapter(SpecificAdapterStreamDescription adapterDescription) { super(adapterDescription); List<StaticProperty> all = adapterDescription.getConfig(); for (StaticProperty sp : all) { if (sp.getInternalName().equals(ROS_HOST_KEY)) { this.host = ((FreeTextStaticProperty) sp).getValue(); } else { this.topic = ((FreeTextStaticProperty) sp).getValue(); } } this.jsonObjectParser = new JsonObjectParser(); }
public <V> V singleValueParameter(String internalName, Class<V> targetClass) { return typeParser.parse(getStaticPropertyByName(internalName, FreeTextStaticProperty.class) .getValue(), targetClass); }
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; }
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; }