AttributeFactory
AttributeFactory provides methods for creating Attribute and Qualifier values.
Methods
Section titled “Methods”absoluteAttribute()
Section titled “absoluteAttribute()”absoluteAttribute(
id, …names):NamespacedAttribute
AbsoluteAttribute creates an attribute that refers to a top-level variable name.
Parameters
Section titled “Parameters”number
…string[]
Returns
Section titled “Returns”conditionalAttribute()
Section titled “conditionalAttribute()”conditionalAttribute(
id,expr,truthy,falsy):Attribute
conditionalAttribute creates an attribute with truthy and falsy branches selected by an expression.
Parameters
Section titled “Parameters”number
truthy
Section titled “truthy”Returns
Section titled “Returns”maybeAttribute()
Section titled “maybeAttribute()”maybeAttribute(
id,name):Attribute
MaybeAttribute creates an attribute that refers to either a field selection or a namespaced variable name.
Parameters
Section titled “Parameters”number
string
Returns
Section titled “Returns”qualifier()
Section titled “qualifier()”qualifier(
options):Qualifier
Qualifier creates a qualifier on the target object with a given value.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”relativeAttribute()
Section titled “relativeAttribute()”relativeAttribute(
id,operand):Attribute
relativeAttribute creates an attribute whose base value comes from a dynamic expression.
Parameters
Section titled “Parameters”number