public void setPost(@Nonnull final String post) { attributes.set("post", post); }
public StyleBuilder id(@Nonnull final String id) { styleAttributes.set("id", id); return this; }
public StyleBuilder base(@Nonnull final String baseStyle) { styleAttributes.set("base", baseStyle); return this; }
public void setInherit(@Nonnull final String inherit) { attributes.set("inherit", inherit); }
public void setCustomKey(@Nonnull final String customKey) { attributes.set("customKey", customKey); }
public void setOneShot(@Nonnull final String value) { attributes.set("oneShot", value); }
public void setAlternateEnable(@Nonnull final String alternateEnable) { attributes.set("alternateEnable", alternateEnable); }
public void setStartDelay(@Nonnull final String value) { attributes.set("startDelay", value); }
public void setTimeType(@Nonnull final String value) { attributes.set("timeType", value); }
public void setHoverFalloffType(@Nonnull final String hoverFalloffType) { attributes.set("hoverFalloffType", hoverFalloffType); }
public void set(@Nonnull final String key, @Nonnull final String value) { attributes.set(key, value); }
public void setAttribute(@Nonnull final String name, @Nonnull final String value) { attributes.set(name, value); }
public void setAttribute(@Nonnull final String name, @Nonnull final String value) { attributes.set(name, value); }
public void setWrap(final boolean wrap) { getAttributes().set("wrap", wrap ? "true" : "false"); } }
private void replaceAllIds( @Nonnull final ElementType type, @Nonnull final String oldId, @Nonnull final String newId) { final Collection<ElementType> children = type.getElements(); for (final ElementType child : children) { final String id = child.getAttributes().get("id"); if (id != null) { child.getAttributes().set("id", id.replace(oldId, newId)); } replaceAllIds(child, oldId, newId); } }
private void replaceAllIds( @Nonnull final ElementType type, @Nonnull final String oldId, @Nonnull final String newId) { final Collection<ElementType> children = type.getElements(); for (final ElementType child : children) { final String id = child.getAttributes().get("id"); if (id != null) { child.getAttributes().set("id", id.replace(oldId, newId)); } replaceAllIds(child, oldId, newId); } }
private void applyIdPrefixToElementType(@Nonnull final String prefix, @Nonnull final ElementType type) { type.getAttributes().set("id", prefix + type.getAttributes().get("id")); for (final ElementType child : type.getElements()) { applyIdPrefixToElementType(prefix, child); } }
private void applyIdPrefixToElementType(@Nonnull final String prefix, @Nonnull final ElementType type) { type.getAttributes().set("id", prefix + type.getAttributes().get("id")); for (final ElementType child : type.getElements()) { applyIdPrefixToElementType(prefix, child); } }
@SuppressWarnings("ConstantConditions") public void resolveParameters(@Nonnull final Attributes attributes) { List<Parameter> entrySet = getParameterSet(); for (Parameter entry : entrySet) { String key = entry.getKey(); String value = entry.getValue(); // first check the given attributes and then check our own if (attributes.isSet(key)) { set(value, controlParameter.applyParameter(entry.getOriginalValue(), entry.getKey(), attributes.get(key))); } else if (isSet(key) && !isParameterDefinition(get(key))) { set(value, get(key)); } else { remove(value); } } }