specifier: Key-specifier object.

Description Usage Arguments Details

Description

Key specifier serves in the process of building an object query. It provides an interface to define the tag and its value that will be sent to the repository when querying for objects.

print_specifier is an interceptor for the standard set of S3 print methods. We do not want to redefine the print method for arbitrary classes, but at the same time have the ability to handle arbitrary specifier sub-classes (like "time" or "class"), whose names could potentially collide with existing S3 methods.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
new_specifier(query, key)

is_specifier(x)

## S3 method for class 'specifier'
dollar_names(x, pattern = "")

## S3 method for class 'specifier'
dollar_name(x, i)

## S3 method for class 'specifier'
print(x, ...)

print_specifier(x)

## S3 method for class 'specifier'
print_specifier(x)

Arguments

query

query object.

key

Tag name as appears in the search UI.

x

specifier object or an object to be tested.

pattern

regular expression; only matching names are returned.

i

key name.

...

further arguments passed to or from other methods.

Details

Each key specifier must adhere to this rule: if the result of the current query contains multiple objects, return a wrapped query object. However, if there is only one object in the repository that matches user query, return a wrapped single result.


lbartnik/ui documentation built on May 21, 2019, 9:38 a.m.