/** * Create a {@code PropertyState} from a string. * @param name The name of the property state * @param value The value of the property state * @return The new property state of type {@link Type#STRING} */ public static PropertyState stringProperty( @NotNull String name, @NotNull String value) { return new StringPropertyState(name, value); }
@NotNull @Override public Iterable<? extends PropertyState> getProperties() { return Collections.singleton(new StringPropertyState(ERROR_JSON_KEY, ERROR_JSON_VALUE_PREFIX + message)); }
@NotNull @Override public Iterable<? extends PropertyState> getProperties() { return Collections.singleton(new StringPropertyState(ERROR_JSON_KEY, ERROR_JSON_VALUE_PREFIX + message)); }
/** * Create a {@code PropertyState} from a string. * @param name The name of the property state * @param value The value of the property state * @return The new property state of type {@link Type#STRING} */ public static PropertyState stringProperty( @Nonnull String name, @Nonnull String value) { return new StringPropertyState(name, value); }
new StringPropertyState(FieldNames.NODE_NAME, getName(path)); for (PropertyState property : Iterables.concat(state.getProperties(), Collections.singleton(nodenamePS))) { String pname = property.getName();