Returns the original raw input string.
Returns the searchable type.
Checks if this is a batch searchable (contains ++).
Checks if this is a compound searchable (multiple key:value pairs).
Checks if this is a simple searchable (plain name).
Splits a batch searchable into individual searchables. Only applicable for batch searchables (containing ++).
An array of Searchable instances, or a single-item array if not a batch.
Returns a JSON representation of the searchable.
Converts the searchable to a normalized string format suitable for API queries. For simple searchables, this adds the "name:" prefix. For compound searchables, returns the original key:value format. For batch searchables, returns the original ++ separated format.
A normalized searchable string.
Converts the searchable to query parameters suitable for the ChRIS API. For batch searchables, this returns a placeholder. Use toBatchSearchables() instead.
A record of key-value pairs.
Returns a string representation of the searchable.
Validates the searchable format. Checks for empty strings and invalid formats.
True if valid, false otherwise.
StaticbatchCreates a batch searchable containing multiple searchables separated by ++. The parsed result is a placeholder; use toBatchSearchables() to get individual items.
Multiple searchables separated by ++.
A Searchable instance.
StaticcompoundCreates a compound searchable from key:value pairs. Parses "name: pl-dircopy, version: 1.3.2" → { name: "pl-dircopy", version: "1.3.2" }
Comma-separated key:value pairs.
A Searchable instance.
StaticfromCreates a Searchable from any input string. Automatically detects the type (simple, compound, or batch).
The searchable string to parse.
A Searchable instance.
StaticsimpleCreates a simple searchable from a plain name. Converts "pl-dircopy" → "name: pl-dircopy"
The resource name.
A Searchable instance.
Represents a searchable string for ChRIS resource queries.
A Searchable encapsulates the logic for parsing, validating, and converting search strings into formats usable by the ChRIS API.
Example
Example
Example